Expand description
Static math-atom classification over the lossless CST.
The generated baseline comes from unicode-math; a deliberately small curated tier supplies LaTeX aliases, primitive class constructors, and the exceptions where a TeX spacing class is not a pairable delimiter. Classification is pure over shipped data and source shape—package scope and user definitions do not participate.
Structs§
- Math
Atom - One virtual math atom and the exact source bytes that produced it.
- Math
Atom Info - Class metadata without a source location.
- Math
Atoms - Iterator returned by
math_atoms.
Enums§
- Delimiter
Role - Whether an atom is a genuinely pairable delimiter, independently of its TeX
spacing class. For example,
\sqrtisOpenbut has no delimiter role. - Math
Class - The useful TeX math-atom class family.
Constants§
- NAMED_
MATH_ OPERATORS - LaTeX and amsmath’s named, upright function operators.
Functions§
- math_
atoms - Virtual atoms for one CST element. A coalesced
WORDyields one atom per Unicode scalar; structural nodes remain one source-spanning atom. - math_
char_ info - Classify a literal Unicode scalar. Unknown characters are ordinary atoms.
- math_
command_ info - Classify a control-sequence name without its leading backslash.