Supported LaTeX commands
The LaTeX commands, environments, symbols and packages NeoMath understands, including chemistry with mhchem and per-part color.
On this page
NeoMath understands everyday LaTeX for books, handouts and exams. This applies in the editor’s LaTeX mode, in paste, on the command line, in the API, in MCP, in NeoScript and in the plugins.
Structures#
| Command | Result |
|---|---|
\frac{a}{b}, \dfrac, \tfrac, \cfrac |
fraction |
a \over b, a \atop b, n \choose k |
TeX-style fraction |
\binom{n}{k}, \dbinom |
binomial coefficient |
\sqrt{x}, \sqrt[n]{x} |
square root and indexed root |
x^{2}, x_{i}, x_i^2 |
superscript and subscript |
\left( … \right), \big, \Big, \bigg, \Bigg (and the l, r, m variants) |
delimiters |
\overline, \bar, \vec, \overrightarrow, \overleftarrow, \overleftrightarrow |
bars and arrows over |
\hat, \widehat, \tilde, \widetilde, \dot, \ddot, \mathring, \overarc |
accents |
\overbrace, \underbrace |
horizontal braces |
\boxed, \fbox, \cancel, \bcancel, \xcancel, \sout |
box and strikethroughs |
\longdiv{d}{q} |
long division |
\xRightarrow, \xLeftarrow, \xleftrightarrow, \xmapsto, \xhookrightarrow |
arrows with labels |
\phantom, \hphantom, \vphantom, \hspace |
spaces |
\tag{1} |
equation label |
Environments#
| Environment | Result |
|---|---|
matrix, pmatrix, bmatrix, Bmatrix, vmatrix, Vmatrix |
matrices with and without delimiters |
cases |
system with a left brace |
array (with l, c, r, ` |
and@{}`) |
aligned, align, align*, alignat, split, flalign, eqnarray |
equations aligned on the equals sign |
Large operators and functions#
\sum,\prod,\coprod,\int,\iint,\iiint,\oint,\bigcup,\bigcap,\bigoplus,\bigotimes,\bigodot,\biguplus,\bigsqcup,\bigvee,\bigwedge,\bigtimes, with limits by_and^.- Functions in upright type:
\sin,\cos,\tan,\log,\ln,\exp,\lim,\max,\min,\sup,\inf,\det,\gcd,\liminf,\limsupand others. \operatorname{name}for any other name;\mod,\bmod,\pmod.
Letters and alphabets#
- Greek:
\alphato\omega, uppercase (\Gamma,\Delta…), variants (\varepsilon,\vartheta,\varphi,\varrho,\varsigma,\varpi,\varkappa,\digamma). - Alphabets:
\mathbf,\boldsymbol,\bm,\mathit,\mathrm,\mathcal,\mathscr,\mathfrak,\mathbb,\mathsf,\mathtt. - Text:
\text,\textrm,\textit,\textbf,\textsf,\texttt,\mbox. - Hebrew and others:
\aleph,\beth,\gimel,\daleth,\hbar,\ell,\Re,\Im,\wp,\imath,\jmath.
Relations, arrows and symbols#
| Group | Examples |
|---|---|
| Relations | \leq, \geq, \neq, \approx, \equiv, \sim, \simeq, \cong, \propto, \ll, \gg, \prec, \succ, \leqslant, \geqslant |
| Negations | \not, \nleq, \ngeq, \nsubseteq, \nparallel, \nmid, \nexists, \nequiv |
| Sets and logic | \in, \notin, \subset, \subseteq, \cup, \cap, \setminus, \emptyset, \forall, \exists, \neg, \wedge, \vee, \vdash, \models |
| Arrows | \to, \gets, \leftrightarrow, \Rightarrow, \iff, \mapsto, \longrightarrow, \Longleftrightarrow, \rightleftharpoons, \hookrightarrow, \nearrow |
| Operators | \pm, \mp, \times, \div, \cdot, \ast, \star, \circ, \bullet, \oplus, \otimes, \odot |
| Dots | \ldots, \cdots, \vdots, \ddots, \iddots |
| Geometry | \angle, \measuredangle, \perp, \parallel, \triangle, \degree, \square |
| Delimiters | \langle, \rangle, \lfloor, \rfloor, \lceil, \rceil, \lvert, \rVert |
| Miscellaneous | \infty, \partial, \nabla, \therefore, \because, \checkmark, \dagger |
Color#
\textcolor{red}{x}
\textcolor[HTML]{1A2B3C}{y}
\textcolor[rgb]{1,0,0}{z}
\textcolor[cmyk]{0,1,1,0}{w}
{\color{blue} a+b}Sizes#
\tiny, \scriptsize, \footnotesize and \small shrink the part.
Packages#
Before reading, the translator converts to plain LaTeX the commands of widely used packages: siunitx, nicematrix, xlop, polynom, physics, mathtools, mhchem and cancel.
Chemistry#
NeoMath draws formulas and reactions written with mhchem and chemmacros:
\ce{2 H2 + O2 -> 2 H2O}
\ce{CaCO3 ->[\Delta] CaO + CO2 ^}
\ce{Fe^{3+} + 3 OH- -> Fe(OH)3 v}
\pu{25 °C}\ce{}, \ch{}, \pu{}, \ox, \enthalpy and the other chemmacros commands are accepted in any generation route. For AI models, the MCP resource neomath://quimica-latex lists them all.