prints as a TeX version of expr.


  • TeXForm produces AMS-LaTeXcompatible TeX output.
  • TeXForm acts as a "wrapper", which affects printing, but not evaluation.
  • TeXForm translates standard mathematical functions and operations.
  • TeXForm[expr] is equivalent to TeXForm[TraditionalForm[expr]]. TeXForm[StandardForm[expr]] can be used to get StandardForm TeX output. »
  • Symbols with names like alpha and ALPHA that correspond to TeX symbols are translated into their corresponding TeX symbols. »
  • Following standard mathematical conventions, singlecharacter symbol names are given in italic font, while multiple character names are given in roman font.
  • Wolfram Language special characters are translated whenever possible to their TeX equivalents.


open allclose all

Basic Examples  (1)

A polynomial:

A typeset expression:

A special character:

Scope  (9)

Subscripts and superscripts:

Overscripts and underscripts:

List structures:

A matrix:

Algebra and logic operations:

Calculus operations:

Elementary functions:

Special functions:

Named symbols are translated:

Generalizations & Extensions  (1)

TeXForm gives the TeX representation of the TraditionalForm expression:

Obtain the TeX representation of the expression in StandardForm:

Properties & Relations  (5)

Convert an expression to TeX:

Use ToExpression to convert TeX back to Wolfram Language syntax:

Use ToExpression to convert from TeX to the Wolfram Language:

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:

Neat Examples  (1)

A continued fraction:

Introduced in 1988
Updated in 1996