(adsbygoogle = window.adsbygoogle || []).push({});

Mathematica has a command that converts notebook (.nb) format into TeX (.tex) format:

[tex]\text{In[1]:=} \frac{{\left( x + y \right) }^2}{{\sqrt{x\,y}}}[/tex]

[tex]\text{Out[1]:=} \frac{{\left( x + y \right) }^2}{{\sqrt{x\,y}}}[/tex]

[tex]\text{In[2]:= TeXForm[ \% ]}[/tex]

[tex]\text{Out[2] TeXForm=}[/tex] \frac{{\left( x + y \right) }^2}{{\sqrt{x\,y}}}

I noticed that alot of calculus students have problems with interfacing these two forms and generally manually input equations into both programs independently. Also noticed problems with students on a Mathematica platform publishing their equations on this forum in TeX (.tex) format for peer review, however these instruction commands allow for usage for both applications.

Physicsforums TeX interface:

Code (Text):

[tex]\frac{{\left( x + y \right) }^2}{{\sqrt{x\,y}}}[/tex]

Mathematica notebooks provide a sophisticated environment for creating technical documents. But particularly if you want to merge your work with existing material in TeX, you may find it convenient to use TeXForm to convert expressions in Mathematica into a form suitable for input to TeX.

Code (Text):

TeXForm[ expr ] - print expr in TeX input form

[tex]\text{In[3]:= TeXForm} [ \frac{{\left( x + y \right) }^2}{{\sqrt{x\,y}}}][/tex]

[tex]\text{Out[3] TeXForm=}[/tex] \frac{{\left( x + y \right) }^2}{{\sqrt{x\,y}}}

In addition to being able to convert individual expressions to TeX, Mathematica also provides capabilities for translating complete notebooks. These capabilities can usually be accessed from the Save As Special menu in the notebook front end, where various options can be set.

Reference:Code (Text):

TeXSave [" file .tex"] - save your complete notebook in current TeX input form.

TeXSave [" file .tex", "source.nb"] - save a TeX version of the notebook source (.nb)

http://documents.wolfram.com/v5/TheMathematicaBook/APracticalIntroductionToMathematica/FilesAndExternalOperations/1.11.6.html" [Broken]

http://documents.wolfram.com/v5/TheMathematicaBook/APracticalIntroductionToMathematica/FilesAndExternalOperations/NBMLImages/1.11.6/1.11.6_3.gif" [Broken]

http://documents.wolfram.com/v5/TheMathematicaBook/APracticalIntroductionToMathematica/FilesAndExternalOperations/NBMLImages/1.11.6/1.11.6_9.gif" [Broken]

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Mathematica TexForm

Can you offer guidance or do you also need help?

Draft saved
Draft deleted

**Physics Forums | Science Articles, Homework Help, Discussion**