Supported TeX/LaTeX commands
This is a long list of the TeX macros supported by MathJax. If the macro is defined in an extension, the name of the extension follows the macro name. If the extension is in brackets, the extension will be loaded automatically when the macro or environment is first used.
More complete details about how to use these macros, with examples and explanations, is available at Carol Fisher’s TeX Commands Available in MathJax page. (These were written for MathJax v2, but most of the information is still correct for v3.)
In the following tables, the first column lists the macro (or
character, or environment), and the second column indicates which
package(s) defines the macro. If none is listed, then it is in the
base package. If the package name is in bold, then it is preloaded by
the components that include the TeX input jax (except for
input/tex-base
, which only includes the base package). If the
package name is in italics, then the package is not autoloaded by
the autoload extension.
Note that most macros are not processed inside text-mode material
(such as that within \text{}
and other similar macros). The
textmacros extension makes additional macros available in
text mode, as listed in the documentation for that extension.
Symbols
|
|
|
|
|
|
|
|
|
|
|
base, physics |
|
|
|
base, physics |
|
|
|
|
|
amscd |
|
|
|
|
|
|
|
|
|
|
|
base, mathtools |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
base, braket |
|
|
|
base, cases |
|
|
|
|
|
|
|
|
|
|
|
base, braket, physics |
|
A
|
|
|
|
|
mathtools |
|
physics |
|
physics |
|
physics |
|
physics |
|
physics |
|
physics |
|
physics |
|
physics |
|
physics |
|
|
|
mathtools |
|
physics |
|
|
|
|
|
bussproofs |
|
bussproofs |
|
bussproofs |
|
bussproofs |
|
bussproofs |
|
bussproofs |
|
|
|
|
|
|
|
physics |
|
physics |
|
|
|
ams |
|
base, physics |
|
physics |
|
physics |
|
physics |
|
physics |
|
physics |
|
physics |
|
physics |
|
base, physics |
|
physics |
|
base, physics |
|
physics |
|
|
|
|
|
mathtools |
|
|
|
|
|
physics |
|
physics |
|
physics |
|
physics |
|
|
|
|
|
physics |
|
physics |
|
|
|
|
|
bussproofs |
|
bussproofs |
|
bussproofs |
B
|
ams |
|
ams |
|
ams |
|
ams |
|
|
|
|
|
ams |
|
|
|
ams |
|
|
|
bbox |
|
cancel |
|
ams |
|
|
|
|
|
ams |
|
ams |
|
|
|
bussproofs |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ams |
|
mathtools |
|
|
|
|
|
|
|
|
|
|
|
bussproofs |
|
bussproofs |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
|
|
physics |
|
boldsymbol |
|
|
|
|
|
ams |
|
ams |
|
base, ams |
|
ams |
|
ams |
|
ams |
|
physics |
|
physics |
|
braket, physics |
|
braket |
|
|
|
|
|
|
|
braket, physics |
|
braket |
|
|
|
|
|
|
|
ams |
|
ams |
C
|
|
|
cancel |
|
cancel |
|
|
|
ams |
|
|
|
|
|
|
|
|
|
mhchem |
|
colortbl |
|
gensymb |
|
mathtools |
|
ams |
|
centernot |
|
centernot |
|
ams |
|
|
|
ams |
|
|
|
|
|
|
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
mathtools |
|
html |
|
|
|
|
|
mathtools |
|
mathtools |
|
mathtools |
|
mathtools |
|
mathtools |
|
mathtools |
|
mathtools |
|
mathtools |
|
color, colorv2 |
|
color |
|
colortbl |
|
physics |
|
physics |
|
ams |
|
|
|
|
|
base, physics |
|
physics |
|
base, physics |
|
physics |
|
base, physics |
|
physics |
|
base, physics |
|
physics |
|
|
|
mathtools |
|
mathtools |
|
mathtools |
|
mathtools |
|
mathtools |
|
physics |
|
physics |
|
base, physics |
|
physics |
|
html |
|
|
|
ams |
|
physics |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
D
|
|
|
ams |
|
bussproofs |
|
ams |
|
ams |
|
|
|
ams |
|
mathtools |
|
physics |
|
|
|
ams |
|
ams |
|
|
|
|
|
ams |
|
mathtools |
|
mathtools |
|
mathtools |
|
newcommand |
|
color |
|
|
|
gensymb |
|
|
|
|
|
physics |
|
base, physics |
|
physics |
|
ams |
|
ams |
|
physics |
|
ams |
|
|
|
ams |
|
|
|
physics |
|
physics |
|
ams |
|
|
|
|
|
|
|
base, physics |
|
physics |
|
ams |
|
|
|
physics |
|
|
|
|
|
ams |
|
ams |
|
ams |
|
physics |
|
|
|
|
|
|
|
|
|
|
|
|
|
ams |
|
ams |
|
ams |
|
|
|
|
|
ams |
|
ams |
|
ams |
|
physics |
|
physics |
E
|
|
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
empheq |
|
|
|
enclose |
|
|
|
|
|
|
|
|
|
|
|
ams |
|
mathtools |
|
mathtools |
|
mathtools |
|
mathtools |
|
ams |
|
ams |
|
ams |
|
ams |
|
|
|
physics |
|
|
|
ams |
|
physics |
|
physics |
|
physics |
|
|
|
base, physics |
|
physics |
|
physics |
|
physics |
F
|
ams |
|
|
|
bussproofs |
|
color |
|
physics |
|
physics |
|
ams |
|
|
|
physics |
|
|
|
base, ams |
|
|
|
|
|
|
|
physics |
G
|
ams |
|
|
|
|
|
|
|
|
|
ams |
|
|
|
ams |
|
ams |
|
|
|
|
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
physics |
|
physics |
|
physics |
|
|
|
|
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
H
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
html |
|
|
|
ams |
|
|
|
|
|
|
|
physics |
|
physics |
|
physics |
|
physics |
|
physics |
|
physics |
I
|
physics |
|
ams |
|
|
|
ams |
|
|
|
|
|
base, physics |
|
physics |
|
physics |
|
|
|
ams |
|
ams |
|
|
|
|
|
|
|
ams |
|
physics |
|
|
|
ams |
|
|
|
|
|
physics |
|
J
|
|
|
ams |
K
|
|
|
|
|
|
|
braket, physics |
|
braket |
|
braket, physics |
|
braket |
L
|
|
|
|
|
|
|
|
|
|
|
physics |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ams |
|
|
|
|
|
|
|
ams |
|
|
|
|
|
bussproofs |
|
ams |
|
|
|
|
|
ams |
|
ams |
|
ams |
|
|
|
ams |
|
|
|
|
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
newcommand |
|
|
|
|
|
|
|
ams |
|
|
|
|
|
|
|
|
|
|
|
bussproofs |
|
|
|
ams |
|
ams |
|
ams |
|
ams |
|
|
|
base, physics |
|
ams |
|
ams |
|
ams |
|
|
|
ams |
|
base, physics |
|
physics |
|
|
|
|
|
|
|
|
|
mhchem |
|
mhchem |
|
|
|
|
|
|
|
mhchem |
|
mhchem |
|
ams |
|
ams |
|
|
|
|
|
ams |
|
mathtools |
|
ams |
|
ams |
|
|
|
ams |
|
ams |
|
ams |
|
ams |
M
|
ams |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mathtools |
|
|
|
|
|
|
|
|
|
mathtools |
|
mathtools |
|
mathtools |
|
|
|
|
|
|
|
|
|
|
|
|
|
ams |
|
mathtools |
|
|
|
|
|
|
|
|
|
|
|
|
|
action |
|
mathtools |
|
|
|
|
|
|
|
physics |
|
physics |
|
physics |
|
physics |
|
|
|
|
|
physics |
|
ams |
|
physics |
|
ams |
|
gensymb |
|
|
|
|
|
|
|
amscd |
|
amscd |
|
|
|
|
|
|
|
|
|
|
|
mathtools |
|
|
|
|
|
|
|
physics |
|
|
|
|
|
mathtools |
|
mathtools |
|
mathtools |
|
|
|
ams |
N
|
|
|
|
|
physics |
|
ams |
|
mathtools |
|
|
|
|
|
|
|
ams |
|
ams |
|
|
|
|
|
newcommand |
|
newcommand |
|
extpfeil |
|
|
|
mathtools |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
|
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
|
|
bussproofs |
|
|
|
|
|
physics |
|
|
|
|
|
ams |
|
|
|
|
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
|
|
mathtools |
|
ams |
|
ams |
|
ams |
|
ams |
|
O
|
|
|
gensymb |
|
|
|
|
|
|
|
|
|
|
|
|
|
physics |
|
ams |
|
|
|
physics |
|
mathtools |
|
|
|
|
|
physics |
|
|
|
|
|
mathtools |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
P
|
|
|
|
|
physics |
|
physics |
|
physics |
|
physics |
|
physics |
|
|
|
gensymb |
|
|
|
|
|
|
|
|
|
|
|
ams |
|
|
|
physics |
|
|
|
|
|
|
|
physics |
|
physics |
|
|
|
physics |
|
physics |
|
base, physics |
|
|
|
ams |
|
ams |
|
|
|
ams |
|
ams |
|
ams |
|
ams |
|
mathtools |
|
|
|
physics |
|
physics |
|
|
|
ams |
|
|
|
|
|
|
|
mhchem |
|
physics |
|
physics |
Q
|
physics |
|
physics |
|
physics |
|
physics |
|
physics |
|
physics |
|
physics |
|
physics |
|
physics |
|
physics |
|
physics |
|
physics |
|
physics |
|
physics |
|
physics |
|
physics |
|
physics |
|
physics |
|
physics |
|
physics |
|
|
|
physics |
|
physics |
|
physics |
|
|
|
physics |
|
bussproofs |
|
bussproofs |
|
bussproofs |
|
bussproofs |
|
physics |
|
physics |
R
|
|
|
|
|
physics |
|
|
|
|
|
|
|
base, physics |
|
physics |
|
|
|
mathtools |
|
newcommand |
|
newcommand |
|
mathtools |
|
physics |
|
physics |
|
ams |
|
|
|
|
|
ams |
|
|
|
|
|
|
|
|
|
ams |
|
|
|
|
|
bussproofs |
|
ams |
|
base, ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
bussproofs |
|
|
|
|
|
|
|
|
|
bussproofs |
|
bussproofs |
|
colortbl |
|
mathtools |
|
ams |
|
ams |
|
ams |
|
|
|
|
|
ams |
|
ams |
S
|
|
|
physics |
|
|
|
|
|
|
|
|
|
|
|
base, physics |
|
physics |
|
physics |
|
braket |
|
braket |
|
|
|
|
|
|
|
ams |
|
ams |
|
mathtools |
|
ams, mathtools |
|
ams, mathtools |
|
ams |
|
|
|
|
|
|
|
|
|
base, physics |
|
physics |
|
bussproofs |
|
base, physics |
|
|
|
ams |
|
|
|
ams |
|
|
|
physics |
|
ams |
|
ams |
|
|
|
physics |
|
|
|
physics |
|
bussproofs |
|
|
|
|
|
|
|
ams |
|
mathtools |
|
mathtools |
|
physics |
|
physics |
|
|
|
|
|
|
|
ams |
|
|
|
ams |
|
|
|
ams |
|
|
|
|
|
|
|
|
|
html |
|
|
|
ams |
|
|
|
ams |
|
ams |
|
ams |
|
ams |
|
|
|
ams |
|
ams |
|
|
|
ams |
|
ams |
|
ams |
|
ams |
|
|
|
|
|
|
|
ams |
|
|
|
ams |
|
ams |
|
ams |
|
|
|
physics |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
T
|
ams |
|
base, physics |
|
physics |
|
base, physics |
|
|
|
ams |
|
|
|
|
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
|
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
mathtools |
|
textcomp |
|
color |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
|
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
mathtools |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
|
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
mathtools |
|
|
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
|
|
textcomp |
|
textcomp |
|
|
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
action |
|
textcomp |
|
|
|
textcomp |
|
textcomp |
|
textcomp |
|
|
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
textcomp |
|
ams |
|
ams |
|
|
|
|
|
ams |
|
ams |
|
|
|
bussproofs |
|
|
|
|
|
|
|
|
|
|
|
action |
|
|
|
physics |
|
physics |
|
physics |
|
physics |
|
|
|
ams |
|
|
|
ams |
|
ams |
|
|
|
ams |
|
bussproofs |
|
bussproofs |
|
mhchem |
|
|
|
ams |
|
ams |
U
|
bussproofs |
|
ams |
|
bussproofs |
|
bussproofs |
|
|
|
mathtools |
|
|
|
|
|
|
|
|
|
|
|
|
|
unicode |
|
ams |
|
ams |
|
upgreek |
|
|
|
|
|
upgreek |
|
upgreek |
|
upgreek |
|
upgreek |
|
|
|
|
|
upgreek |
|
upgreek |
|
upgreek |
|
upgreek |
|
ams |
|
ams |
|
upgreek |
|
upgreek |
|
upgreek |
|
upgreek |
|
|
|
upgreek |
|
upgreek |
|
upgreek |
|
upgreek |
|
upgreek |
|
upgreek |
|
upgreek |
|
upgreek |
|
upgreek |
|
upgreek |
|
upgreek |
|
upgreek |
|
|
|
upgreek |
|
upgreek |
|
|
|
|
|
upgreek |
|
upgreek |
|
upgreek |
|
ams |
|
upgreek |
|
upgreek |
|
upgreek |
|
upgreek |
|
upgreek |
|
upgreek |
|
upgreek |
|
upgreek |
|
upgreek |
|
upgreek |
|
upgreek |
|
ams |
|
mathtools |
V
|
physics |
|
physics |
|
ams |
|
|
|
ams |
|
physics |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
|
|
ams |
|
|
|
ams |
|
ams |
|
ams |
|
ams |
|
|
|
|
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
|
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
physics |
|
|
|
|
|
ams |
|
ams |
|
physics |
|
|
|
mathtools |
|
|
|
physics |
|
physics |
|
physics |
|
|
|
ams |
|
verb |
|
|
|
|
|
physics |
|
physics |
|
|
|
physics |
|
physics |
|
ams |
W
|
|
|
|
|
|
|
|
|
X
|
cancel |
|
mathtools |
|
mathtools |
|
|
|
|
|
ams |
|
mathtools |
|
mathtools |
|
mathtools |
|
mathtools, mhchem |
|
mathtools |
|
mathtools |
|
mhchem |
|
extpfeil |
|
extpfeil, mathtools |
|
physics |
|
mathtools |
|
physics |
|
ams |
|
mathtools |
|
mathtools |
|
mathtools |
|
mathtools, mhchem |
|
mhchem |
|
extpfeil |
|
extpfeil |
|
extpfeil |
Y
|
ams |
Z
|
physics |
|
|
|
physics |
Environments
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
|
|
ams |
|
ams |
|
mathtools |
|
mathtools |
|
mathtools |
|
mathtools |
|
mathtools |
|
mathtools |
|
ams |
|
mathtools |
|
amscd |
|
mathtools |
|
mathtools |
|
mathtools |
|
mathtools |
|
mathtools |
|
empheq |
|
|
|
ams |
|
|
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
ams |
|
mathtools |
|
ams |
|
mathtools |
|
ams |
|
ams |
|
mathtools |
|
cases |
|
ams |
|
mathtools |
|
bussproofs |
|
mathtools |
|
mathtools |
|
mathtools |
|
mathtools |
|
mathtools |
|
ams, physics |
|
mathtools |
|
ams |
|
mathtools |
|
ams |
|
cases |
|
ams |
|
ams |
|
mathtools |
|
mathtools |
|
mathtools |
|
mathtools |
|
mathtools |
|
mathtools |
|
ams |
|
ams |
|
ams |