Skip to main content

Module math

Module math 

Source
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§

MathAtom
One virtual math atom and the exact source bytes that produced it.
MathAtomInfo
Class metadata without a source location.
MathAtoms
Iterator returned by math_atoms.

Enums§

DelimiterRole
Whether an atom is a genuinely pairable delimiter, independently of its TeX spacing class. For example, \sqrt is Open but has no delimiter role.
MathClass
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 WORD yields 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.