TeX Command Reference
This page lists () 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.
| Output | Command | Notes |
|---|---|---|
\alpha \α | ||
\beta \β | ||
\gamma \γ | ||
\Gamma \Γ | ||
\digamma \Gammad \gammad \Ϝ | ||
\delta \δ | ||
\Delta \Δ | ||
\epsilon \ϵ | ||
\varepsilon \epsiv \ε | ||
\zeta \ζ | ||
\eta \η | ||
\theta \θ | ||
\Theta \Θ | ||
\vartheta \thetasym \thetav \ϑ | ||
\iota \ι | ||
\kappa \κ | ||
\varkappa \kappav \ϰ | ||
\lambda \λ | ||
\Lambda \Λ | ||
\mu \μ | ||
\nu \ν | ||
\xi \ξ | ||
\Xi \Ξ | ||
\pi \π | ||
\Pi \Π | ||
\varpi \piv \ϖ | ||
\rho \ρ | ||
\varrho \rhov \ϱ | ||
\sigma \σ | ||
\Sigma \Σ | ||
\varsigma \sigmav \sigmaf \ς | ||
\tau \τ | ||
\upsilon \upsi \υ | ||
\Upsilon \Upsih \upsih \Upsi \Υ | ||
\phi \φ | ||
\Phi \Φ | ||
\varphi \phiv \ϕ | ||
\chi \χ | ||
\psi \ψ | ||
\Psi \Ψ | ||
\omega \ω | ||
\Omega \Ω |
Math Functions
Some recognized commands are not fully supported by Desmos and may render incorrectly.
| Output | Command | Notes |
|---|---|---|
\arg | ||
\deg | ||
\det | ||
\dim | ||
\exp | ||
\gcd | ||
\hom | ||
\inf | ||
\ker | ||
\lg | ||
\lim | ||
\ln | ||
\log | ||
\max | ||
\min | ||
\sup | ||
\limsup | ||
\liminf | ||
\injlim | ||
\projlim | ||
\Pr | ||
\arcsinh | ||
\arsinh | ||
\sinh | ||
\arcsin | ||
\sin | ||
\arccosh | ||
\arcosh | ||
\cosh | ||
\arccos | ||
\cos | ||
\arctanh | ||
\artanh | ||
\tanh | ||
\arctan | ||
\tan | ||
\arcsech | ||
\arsech | ||
\sech | ||
\arcsec | ||
\sec | ||
\arccosech | ||
\arcosech | ||
\cosech | ||
\arccosec | ||
\cosec | ||
\arccsch | ||
\arcsch | ||
\csch | ||
\arccsc | ||
\csc | ||
\arccotanh | ||
\arcotanh | ||
\cotanh | ||
\arccotan | ||
\cotan | ||
\arccoth | ||
\arcoth | ||
\coth | ||
\arccot | ||
\cot | ||
\arcctgh | ||
\arctgh | ||
\ctgh | ||
\arcctg | ||
\ctg | ||
\gcf | ||
\hcf | ||
\lcm | ||
\proj | ||
\span | ||
\operatorname{f} | Used with Desmos functions | |
\f | ||
\sum \summation \∑ | ||
\prod \product \∏ | ||
\coprod \coproduct | ||
\int \integral \∫ | ||
\\frac{1}{2} \\fraction{1}{2} \\dfrac{1}{2} \\cfrac{1}{2} | ||
\over{a}{b} | ||
\ans | Supported in other tools of Desmos | |
\percent \percentof | ||
\sqrt{2} | ||
\sqrt[3]{2} \nthroot{3}{2} \cbrt{3}{2} |
Other Symbols
| Output | Command | Notes |
|---|---|---|
\forall \∀ | ||
\⁰ | Applies to 1 through 9 | |
\¼ | ||
\½ | ||
\¾ | ||
\√ | ||
\+ | ||
\- \– \— \− | ||
\pm \plusmn \plusminus \± | ||
\mp \mnplus \minusplus | ||
\cdot \sdot | ||
\to \→ | ||
\lt \< | ||
\gt \> | ||
\leq \le \≤ | ||
\geq \ge \≥ | ||
\infty \infinity \infin \∞ | ||
\neq \ne \≠ | ||
\= | ||
\times \cross \× | ||
\div \divide \divides \÷ | ||
\sim \~ | ||
\approx \≈ | ||
\bigcirc \◯ | ||
\angle \ang \∠ | ||
\degree \° | ||
\triangle \△ | ||
\cong \≅ | ||
\measuredangle \∡ | ||
| ▱ | \parallelogram \▱ | |
\ncong \≇ | ||
\nsim \≁ | ||
\mathrm{a} | ||
\mathit{a} | ||
\mathbf{a} | ||
\mathsf{a} | ||
\mathtt{a} | ||
\hat{a} | ||
\vec{a} | ||
\tilde{a} | ||
\underline{a} | ||
\bar{a} \overline{a} | ||
\overrightarrow{a} | ||
\overleftarrow{a} | ||
\overleftrightarrow{a} | ||
\overarc{AB} | ||
\dot{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} \subscript{a} | ||
\^{a} \supscript{a} \superscript{a} | ||
\space \(space) | Make some space | |
\. | ||
\prime \' | ||
\dprime \″ | ||
\backslash | ||
\$ | ||
\square \□ | ||
\mid | ||
\@ | ||
\& | ||
\% | ||
\parallel \∥ | ||
\nparallel \∦ | ||
\perp \⟂ | ||
\langle{a} \rangle{a} | ||
\lVert{a} \rVert{a} | ||
\left( \frac12 \right) | ||
\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.
| Output | Command | Notes |
|---|---|---|
\tildeNbsp | It 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} | ||
\editable{a} \MathQuillMathField{a} | ||
\embed{} |