TeXForm
✖
TeXForm
Details

- TeXForm produces AMS-La
‐compatible
output.
- When an input evaluates to TeXForm[expr], TeXForm does not appear in the output. »
- TeXForm translates standard mathematical functions and operations.
- TeXForm[expr] is equivalent to TeXForm[TraditionalForm[expr]]. TeXForm[StandardForm[expr]] can be used to get StandardForm
output. »
- Symbols with names like alpha and ALPHA that correspond to
symbols are translated into their corresponding
symbols. »
- Following standard mathematical conventions, single‐character 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
equivalents.
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
Scope (9)Survey of the scope of standard use cases

https://wolfram.com/xid/0bdpcg4xu-jmqn9f


https://wolfram.com/xid/0bdpcg4xu-iac1nz


https://wolfram.com/xid/0bdpcg4xu-ggzsrp


https://wolfram.com/xid/0bdpcg4xu-cksubw


https://wolfram.com/xid/0bdpcg4xu-ty0av


https://wolfram.com/xid/0bdpcg4xu-jstykl


https://wolfram.com/xid/0bdpcg4xu-1utza


https://wolfram.com/xid/0bdpcg4xu-bj0cq


https://wolfram.com/xid/0bdpcg4xu-jvyry2


https://wolfram.com/xid/0bdpcg4xu-hu9hq


https://wolfram.com/xid/0bdpcg4xu-kovd37


https://wolfram.com/xid/0bdpcg4xu-ctuj68


https://wolfram.com/xid/0bdpcg4xu-dll2tr


https://wolfram.com/xid/0bdpcg4xu-gn9d75


https://wolfram.com/xid/0bdpcg4xu-f2aetm

Generalizations & Extensions (1)Generalized and extended use cases
TeXForm gives the representation of the TraditionalForm expression:

https://wolfram.com/xid/0bdpcg4xu-sh9k2


https://wolfram.com/xid/0bdpcg4xu-ly89jh

Obtain the representation of the expression in StandardForm:

https://wolfram.com/xid/0bdpcg4xu-evjap

Properties & Relations (5)Properties of the function, and connections to other functions

https://wolfram.com/xid/0bdpcg4xu-ewbvn4

Use ToExpression to convert back to Wolfram Language syntax:

https://wolfram.com/xid/0bdpcg4xu-fostgv

Use ToExpression to convert from to the Wolfram Language:

https://wolfram.com/xid/0bdpcg4xu-nu6k5y

The following expression will evaluate:

https://wolfram.com/xid/0bdpcg4xu-8hs6z


https://wolfram.com/xid/0bdpcg4xu-e5basa

Use HoldForm to convert unevaluated expressions:

https://wolfram.com/xid/0bdpcg4xu-b0r0h5

Add formatting via Format:

https://wolfram.com/xid/0bdpcg4xu-cycfzl


https://wolfram.com/xid/0bdpcg4xu-mfc89b

https://wolfram.com/xid/0bdpcg4xu-bqs8xs

Use Export to generate a compilable document:

https://wolfram.com/xid/0bdpcg4xu-fv9r88

When an input evaluates to TeXForm[expr], TeXForm does not appear in the output:

https://wolfram.com/xid/0bdpcg4xu-j36ynu

Out is assigned the value x2, not TeXForm[x^2]:

https://wolfram.com/xid/0bdpcg4xu-9otlww

Possible Issues (1)Common pitfalls and unexpected behavior
Even when an output omits TeXForm from the top level, it is not stripped from subexpressions:

https://wolfram.com/xid/0bdpcg4xu-51zmg4

The output does not have TeXForm in it:

https://wolfram.com/xid/0bdpcg4xu-ojprv5

However, the variable e does have TeXForm in it, which may affect subsequent evaluations:

https://wolfram.com/xid/0bdpcg4xu-1pubiy

The product is not evaluated due to the intervening TeXForm:

https://wolfram.com/xid/0bdpcg4xu-m84urw

Assign variables first and then apply TeXForm to the result to maintain computability:

https://wolfram.com/xid/0bdpcg4xu-zonjwa


https://wolfram.com/xid/0bdpcg4xu-q4jxbz

Wolfram Research (1988), TeXForm, Wolfram Language function, https://reference.wolfram.com/language/ref/TeXForm.html (updated 2004).
Text
Wolfram Research (1988), TeXForm, Wolfram Language function, https://reference.wolfram.com/language/ref/TeXForm.html (updated 2004).
Wolfram Research (1988), TeXForm, Wolfram Language function, https://reference.wolfram.com/language/ref/TeXForm.html (updated 2004).
CMS
Wolfram Language. 1988. "TeXForm." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2004. https://reference.wolfram.com/language/ref/TeXForm.html.
Wolfram Language. 1988. "TeXForm." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2004. https://reference.wolfram.com/language/ref/TeXForm.html.
APA
Wolfram Language. (1988). TeXForm. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TeXForm.html
Wolfram Language. (1988). TeXForm. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TeXForm.html
BibTeX
@misc{reference.wolfram_2025_texform, author="Wolfram Research", title="{TeXForm}", year="2004", howpublished="\url{https://reference.wolfram.com/language/ref/TeXForm.html}", note=[Accessed: 20-July-2025
]}
BibLaTeX
@online{reference.wolfram_2025_texform, organization={Wolfram Research}, title={TeXForm}, year={2004}, url={https://reference.wolfram.com/language/ref/TeXForm.html}, note=[Accessed: 20-July-2025
]}