This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

TeXForm

TeXForm[expr]
prints as a TeX version of expr.
  • TeXForm produces AMS-LaTeX-compatible TeX output.
  • TeXForm acts as a "wrapper", which affects printing, but not evaluation.
  • TeXForm translates standard mathematical functions and operations.
  • Symbols with names like and that correspond to TeX symbols are translated into their corresponding TeX symbols. »
  • Following standard mathematical conventions, single-character symbol names are given in italic font, while multiple character names are given in roman font.
  • Mathematica special characters are translated whenever possible to their TeX equivalents.
A polynomial:
A typeset expression:
A special character:
A polynomial:
In[1]:=
Click for copyable input
Out[1]//TeXForm=
A typeset expression:
In[2]:=
Click for copyable input
Out[2]//TeXForm=
A special character:
In[3]:=
Click for copyable input
Out[3]//TeXForm=
Subscripts and superscripts:
Overscripts and underscripts:
List structures:
A matrix:
Algebra and logic operations:
Calculus operations:
Elementary functions:
Special functions:
Named symbols are translated:
TeXForm gives the TeX representation of the TraditionalForm expression:
Obtain the TeX representation of the expression in StandardForm:
Convert an expression to TeX:
Use ToExpression to convert TeX back to Mathematica syntax:
Use ToExpression to convert from TeX to Mathematica:
The following expression will evaluate:
Use HoldForm to convert unevaluated expressions:
Add formatting via Format:
Use Export to generate a compilable TeX document:
Splice can be used to convert expressions in a file:
The following TeX file contains the unevaluated integral:
Splice inserts the result of the integral:
This is the resulting output file:
A continued fraction:
New in 1 | Last modified in 5.1