pub enum NodeType {
Show 58 variants
Array,
OrdGroup,
SupSub,
Genfrac,
LeftRight,
LeftRightRight,
Sqrt,
Atom,
MathOrd,
Op,
Spacing,
Text,
Styling,
Font,
Color,
Accent,
Overline,
Underline,
Phantom,
Hphantom,
Vphantom,
Rule,
CdLabel,
CdLabelParent,
ColorToken,
Raw,
Size,
Tag,
Url,
Verb,
TextOrd,
AccentToken,
OpToken,
AccentUnder,
Cr,
Delimsizing,
Enclose,
Environment,
Hbox,
HorizBrace,
Href,
Html,
HtmlMathMl,
Includegraphics,
Infix,
Internal,
Kern,
Lap,
MathChoice,
Middle,
Mclass,
OperatorName,
Pmb,
Raisebox,
Sizing,
Smash,
Vcenter,
XArrow,
}
Expand description
Discriminant type for runtime type checking of parse nodes
Variants§
Array
§Structural Nodes
Array/matrix environments with rows and columns
OrdGroup
Ordered groups of expressions (parentheses, etc.)
SupSub
Superscript/subscript combinations
Genfrac
Generalized fractions (fractions, binomials)
LeftRight
Left-right delimiter pairs
LeftRightRight
Right delimiters in left-right delimiter pairs (\left…\right).
Sqrt
Square roots and nth roots
Atom
§Symbol Nodes
Atomic symbols with specific mathematical meaning
MathOrd
Ordinary mathematical symbols
Op
Mathematical operators
Spacing
Explicit spacing elements
Text
§Text and Styling
Text content within math
Styling
Style changes (bold, italic, etc.)
Font
Font family changes
Color
Color specifications
Accent
§Functions and Commands
Accents over symbols (hats, bars, etc.)
Overline
Horizontal lines on top of expressions
Underline
Horizontal lines below expressions
Phantom
Invisible content for spacing or alignment
Hphantom
Horizontal phantom content for spacing (\hphantom{…}).
Vphantom
Vertical phantom content for spacing (\vphantom{…}).
Rule
Horizontal/vertical rules
CdLabel
§Miscellaneous Nodes
Labels for arrows in commutative diagram environments (\begin{CD}…\end{CD}).
CdLabelParent
Parent containers for CD labels in commutative diagrams.
ColorToken
Color tokens for setting current color context (\color{name}).
Raw
Raw content passed through without mathematical processing.
Size
Size specifications for spacing and dimensions (\rule, spacing commands).
Tag
Tagged equations with labels (\tag{label} or automatic numbering).
Url
Hyperlinks in mathematical expressions (\url{…}).
Verb
Verbatim text preserving exact formatting (\verb|text| or \begin{verbatim}…\end{verbatim}).
TextOrd
Ordinary text symbols in math mode (letters, punctuation).
AccentToken
Accent symbols for diacritical marks (\hat, \bar, \tilde, etc.).
OpToken
Operator symbols with special positioning (\sum, \int, \lim, etc.).
AccentUnder
Accent marks placed below expressions (\underline, \underbar, etc.).
Cr
Carriage returns and line breaks (\, \newline).
Delimsizing
Delimiter sizing for proper enclosure (\big, \Big, \bigg, etc.).
Enclose
Enclosed expressions with styling (\boxed, \colorbox, etc.).
Environment
Custom mathematical environments (\begin{env}…\end{env}).
Hbox
Horizontal boxes for grouping content (\hbox{…}).
HorizBrace
Horizontal braces above/below expressions (\overbrace, \underbrace).
Href
Hyperlinks with custom text (\href{url}{text}).
Html
Embedded HTML content within math expressions.
HtmlMathMl
Content renderable in both HTML and MathML formats.
Includegraphics
Included graphics/images (\includegraphics{…}).
Infix
Custom infix operators between operands.
Internal
Internal parser nodes for implementation details.
Kern
Explicit kerning/spacing adjustments (\kern, \mkern).
Lap
Overlapping content for annotations (\rlap, \llap, \clap).
MathChoice
Different renderings for display/text/script modes (\mathchoice{…}{…}{…}{…}).
Middle
Middle delimiters in expressions (\middle|).
Mclass
Math class specifications for spacing and rendering (mord, mbin, mrel, etc.).
OperatorName
Operator names with special formatting (\operatorname{…}).
Pmb
Poor man’s bold text formatting (\pmb{…}).
Raisebox
Raised or lowered content (\raisebox{…}{…}).
Sizing
Size changes for expressions (\scriptsize, \large, etc.).
Smash
Smashed content ignoring height/depth (\smash{…}).
Vcenter
Vertically centered content (\vcenter{…}).
XArrow
Extensible arrows with labels (\xleftarrow{…}, \xrightarrow{…}).