Skip to main content

TeX Command Reference

This page lists TeX\TeX (LaTeX\LaTeX) commands recognized in Desmos labels and expressions. Most standard commands work, although some are not fully supported inside expressions.

To use TeX in a label, enclose the TeX section in backticks. See Points, Labels, and Vectors for details.

Greek Letters​

These commands work in expressions and can be used as variables.

OutputCommandNotes
α\alpha\alpha \α
β\beta\beta \β
γ\gamma\gamma \γ
Γ\Gamma\Gamma \Γ
ϝ\digamma\digamma \Gammad \gammad \Ϝ
δ\delta\delta \δ
Δ\Delta\Delta \Δ
ϵ\epsilon\epsilon \ϵ
ε\varepsilon\varepsilon \epsiv \ε
ζ\zeta\zeta \ζ
η\eta\eta \η
θ\theta\theta \θ
Θ\Theta\Theta \Θ
ϑ\vartheta\vartheta \thetasym \thetav \ϑ
ι\iota\iota \ι
κ\kappa\kappa \κ
ϰ\varkappa\varkappa \kappav \ϰ
λ\lambda\lambda \λ
Λ\Lambda\Lambda \Λ
μ\mu\mu \μ
ν\nu\nu \ν
ξ\xi\xi \ξ
Ξ\Xi\Xi \Ξ
π\pi\pi \π
Π\Pi\Pi \Π
ϖ\varpi\varpi \piv \ϖ
ρ\rho\rho \ρ
ϱ\varrho\varrho \rhov \ϱ
σ\sigma\sigma \σ
Σ\Sigma\Sigma \Σ
ς\varsigma\varsigma \sigmav \sigmaf \ς
τ\tau\tau \τ
υ\upsilon\upsilon \upsi \υ
Υ\Upsilon\Upsilon \Upsih \upsih \Upsi \Υ
ϕ\phi\phi \φ
Φ\Phi\Phi \Φ
φ\varphi\varphi \phiv \ϕ
χ\chi\chi \χ
ψ\psi\psi \ψ
Ψ\Psi\Psi \Ψ
ω\omega\omega \ω
Ω\Omega\Omega \Ω

Math Functions​

Some recognized commands are not fully supported by Desmos and may render incorrectly.

OutputCommandNotes
arg⁡\arg\arg
degdeg\deg
det⁡\det\det
dimdim\dim
exp⁡\exp\exp
gcd⁡\gcd\gcd
homhom\hom
infinf\inf
kerker\ker
lglg\lg
limlim\lim
ln⁡\ln\ln
log⁡\log\log
max⁡\max\max
min⁡\min\min
supsup\sup
limsuplimsup\limsup
limin⁡fli\min f\liminf
injliminjlim\injlim
projlimprojlim\projlim
PrPr\Pr
arcsinh\mathrm{arcsinh}\arcsinh
arsinh\mathrm{arsinh}\arsinh
sinh⁡\sinh\sinh
arcsin⁡\arcsin\arcsin
sin⁡\sin\sin
arccosh\mathrm{arccosh}\arccosh
arcosh\mathrm{arcosh}\arcosh
cosh⁡\cosh\cosh
arccos⁡\arccos\arccos
cos⁡\cos\cos
arctanh\mathrm{arctanh}\arctanh
artanh\mathrm{artanh}\artanh
tanh⁡\tanh\tanh
arctan⁡\arctan\arctan
tan⁡\tan\tan
arcsech\mathrm{arcsech}\arcsech
arsech\mathrm{arsech}\arsech
sech\mathrm{sech}\sech
arcsec\mathrm{arcsec}\arcsec
sec\mathrm{sec}\sec
arccos ech\mathrm{arccos}\,ech\arccosech
ar cos echar\,\mathrm{cos}\,ech\arcosech
cos ech\mathrm{cos}\,ech\cosech
arccos ec\mathrm{arccos}\,ec\arccosec
cos ec\mathrm{cos}\,ec\cosec
arccsch\mathrm{arccsch}\arccsch
arcsch\mathrm{arcsch}\arcsch
csch\mathrm{csch}\csch
arccsc\mathrm{arccsc}\arccsc
csc\mathrm{csc}\csc
arccot anh\mathrm{arccot}\,anh\arccotanh
ar cot anhar\,\mathrm{cot}\,anh\arcotanh
cot anh\mathrm{cot}\,anh\cotanh
arccot an\mathrm{arccot}\,an\arccotan
cot an\mathrm{cot}\,an\cotan
arccoth\mathrm{arccoth}\arccoth
arcoth\mathrm{arcoth}\arcoth
coth\mathrm{coth}\coth
arccot\mathrm{arccot}\arccot
cot\mathrm{cot}\cot
arcctgharcctgh\arcctgh
arctgharctgh\arctgh
ctghctgh\ctgh
arcctgarcctg\arcctg
ctgctg\ctg
gcf\mathrm{gcf}\gcf
hcfhcf\hcf
lcm\mathrm{lcm}\lcm
projproj\proj
spanspan\span
ff\operatorname{f}Used with Desmos functions
ff\f
∑\displaystyle\sum\sum \summation \∑
∏\displaystyle\prod\prod \product \∏
∐\displaystyle\coprod\coprod \coproduct
∫\displaystyle\int\int \integral \∫
12\dfrac12\\frac{1}{2} \\fraction{1}{2} \\dfrac{1}{2} \\cfrac{1}{2}
aba\over b\over{a}{b}
ans\mathrm{ans}\ansSupported in other tools of Desmos
% of\%\ \mathrm{of}\percent \percentof
2\sqrt2\sqrt{2}
23\sqrt[3]{2}\sqrt[3]{2} \nthroot{3}{2} \cbrt{3}{2}

Other Symbols​

OutputCommandNotes
∀\forall\forall \∀
0{}^0\⁰Applies to 1 through 9
14\dfrac14\¼
12\dfrac12\½
34\dfrac34\¾
\sqrt{\quad}\√
++\+
−-\- \– \— \−
±\pm\pm \plusmn \plusminus \±
∓\mp\mp \mnplus \minusplus
⋅\cdot\cdot \sdot
→\to\to \→
<\lt\lt \<
>\gt\gt \>
≤\leq\leq \le \≤
≥\geq\geq \ge \≥
∞\infty\infty \infinity \infin \∞
≠\neq\neq \ne \≠
==\=
×\times\times \cross \×
÷\div\div \divide \divides \÷
∼\sim\sim \~
≈\approx\approx \≈
◯\bigcirc\bigcirc \◯
∠\angle\angle \ang \∠
°\degree\degree \°
△\triangle\triangle \△
≅\cong\cong \≅
∡\measuredangle\measuredangle \∡
▱\parallelogram \▱
≆\ncong\ncong \≇
≁\nsim\nsim \≁
a\mathrm{a}\mathrm{a}
a\mathit a\mathit{a}
a\mathbf a\mathbf{a}
a\mathsf a\mathsf{a}
a\mathtt a\mathtt{a}
a^\hat{a}\hat{a}
a⃗\vec a\vec{a}
a~\tilde a\tilde{a}
a‾\underline a\underline{a}
aˉ\bar a\bar{a} \overline{a}
a→\overrightarrow a\overrightarrow{a}
a←\overleftarrow a\overleftarrow{a}
a↔\overleftrightarrow a\overleftrightarrow{a}
AB⏠\overgroup{AB}\overarc{AB}
a˙\dot a\dot{a}
a\textcolor{red}{a}\textcolor{red}{a}RGB values like #ff0000 are also supported.
Some special characters cannot be used, but the CSS color property can be specified.
a{}_a\_{a} \subscript{a}
a{}^a\^{a} \supscript{a} \superscript{a}
 \space\space \(space)Make some space
..\.
′'\prime \'
′′''\dprime \″
\\backslash\backslash
$\text{\textdollar}\$
□\square\square \□
∣\mid\mid
@@\@
&\&\&
%\%\%
∥\parallel\parallel \∥
∦\nparallel\nparallel \∦
⊥\perp\perp \⟂
⟨a⟩\langle a \rangle\langle{a} \rangle{a}
∥a∥\lVert a\rVert\lVert{a} \rVert{a}
(12)\left(\dfrac12 \right)\left( \frac12 \right)
(ab)\dbinom ab\binom{a}{b} \binomial{a}{b} \choose{a}{b}
Notes on left and right

Use these commands as a pair to size delimiters around their contents. Add the opening delimiter after left and the closing delimiter after right.

Special Commands​

These appear to be intended for internal processing and are not recommended for ordinary graphs or articles.

OutputCommandNotes
\tildeNbspIt seems that a non-breaking space   is inserted. Is it recognized as \sim?
\class{class name}{a}You can wrap content in a span tag with any class name.
Nesting is also possible, so with the right class names, you can technically apply CSS styles.
\token{number}
aa\editable{a} \MathQuillMathField{a}
\embed{}