Expand description
Nodes allowed in math mode
Structs§
- Delimiter
- Convenience struct for math delimiters, as constructed from a delimiter code
- Math
Atom - The most central kind of node in a math list. Consisting of a nucleus with optional superscript and subscript math lists.
- Math
Char - Convenience struct for characters in math mode
- Math
Font Style - A resolved math font style. This is the state after the math list has been constructed. Has a definite style and font.
- Math
Group - A resolved math group; the result of a math list.
- Math
Style - One of the 8 styles of math formatting; The TeXBook calls these D,T,S,SS,D’,T’,S’ and SS’.
- Resolved
Choice - A resolved
\mathchoicenode. This is the state after the math list has been constructed, at which point it is only a wrapper around a list of nodes. - Unresolved
Math Choice - A
\mathcoicenode, not yet resolved. When the current math list is closed, one of the four choices is picked, depending on the current style. - Unresolved
Math Font Style - Unresolved math font style. This is the state while the math list is being constructed. Carries information about the family if relevant (or 0), to be picked when the math list is resolved.
Enums§
- EqNo
Position - The position of an eqno in a math list, i.e.
\eqno(right) or\leqno(left). - Math
Class - The 7 math classes
- Math
Kernel - The kernel of a
MathNucleus; the actual content of the nucleus. - Math
Node - A math list node. Comes in two forms: an unresolved form, while the list is being
constructed and the various font styles are not fixed yet (e.g. because
an
\atopcomes later that shifts the font style), and a resolved form, where the fonts have been determined and are fixed. The parameterS:MathFontStyleTmakes the distinction between the two forms. ForS=MathFontStyle(the resolved form), this implementsNodeTrait. - Math
Node List - An open list of unresolved math nodes. TODO: rethink this
- Math
Node List Type - Types of open math lists
- Math
Nucleus - The nucleus of a
MathAtom; a cohesive “unit” with optional sub/superscript. - Math
Style Type - The four base math formatting styles
- Unresolved
Markers - Markers inserted by
\displaystyle,\textstyle,\scriptstyleand\scriptscriptstyle. Only meaningful in unresolved mode, while the math list is open. When the list is closed, these are removed and used to determine the font style at that point.
Traits§
- Math
ChoiceT - This trait is implemented for exactly two types that indicate
whether we are in the unresolved
UnresolvedMathFontStyleor resolved (MathFontStyle) state. - Math
Font StyleT - This trait is implemented for exactly two types that indicate
whether we are in the unresolved
UnresolvedMathFontStyleor resolved (MathFontStyle) state.