This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
 Documentation / Mathematica / The Mathematica Book / Practical Introduction / Files and External Operations  /

1.11.7 Generating 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.

Mathematica output for TeX.

  • Here is an expression, printed in standard Mathematica form.
  • In[1]:= (x + y)^2 / Sqrt[x y]


  • Here is the expression in TeX input form.
  • In[2]:= TeXForm[%]


    Converting complete notebooks to TeX.

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