Expand description
LaTeX math → MathNode AST.
LaTeX math → MathNode AST.
Pipeline: preprocess → tokenize → typed parse. Unknown or unsupported
input is ParseError, never a silent partial tree.
Enums§
- Accent
Kind - Accent or decoration applied to a nucleus.
- Atom
Kind - TeX math atom class (Appendix G).
- ColSpec
- One column of an
{array}preamble (l,c,r,|). - Delim
Size \big/\Big/\bigg/\Bigg(andl/r/msiblings).- Delimiter
- A
\left/\rightdelimiter (or.for empty). - EnvRow
- One row of a matrix / alignment environment.
- EqNumber
- Per-row equation number in numbered environments.
- Integral
Kind - Which integral glyph.
- Math
Node - Typed math-mode syntax tree.
- Matrix
Style - Matrix / alignment environment.
- Phantom
Kind \phantom/\vphantom/\hphantom.- Space
Kind - Horizontal skip.
- Text
Style - Font / text style for a run of characters.
- Token
- A single TeX-style math token.
Functions§
- format_
tokens - Format a token stream as a gold-stable string.
- parse
- Parse a LaTeX math string into a
MathNodeusing a fresh color table. - parse_
with_ colors - Parse a math string, returning the AST and the color table after
\definecolor. - preprocess
- Normalize raw math input for the tokenizer.
- tokenize
- Tokenize a LaTeX math string. Whitespace and
%line comments are skipped.