Expand description
The equation tree shared by the parsers, the editor and the renderers.
The model follows the shape of an equation as an author sees it rather than a TeX token
stream: an equation is a Row of items, templates such as fractions or radicals own their
argument slots, and every node exposes a fixed, ordered list of slots. Editing code can
therefore walk and mutate any construct without knowing what the construct is, and layout can
recurse over the same slot list.
Structs§
- Accent
- Accent drawn over or under a base.
- BigOp
- Large operator with optional limits.
- Char
- A character together with the atom class that drives spacing and the font it is set in.
- Fence
- Delimiters around a body.
- Frac
- Fraction, with or without a rule, drawn stacked or inline.
- Limits
- Over/under material that is not an accent.
- Math
- A complete equation together with the size preset it is laid out at.
- Matrix
- Table of cells with optional delimiters.
- Path
- Position in the tree: the sequence of slot indices from the root.
- Scripts
- Subscript and superscript attached to a base.
- Sqrt
- Radical, with an optional index for higher roots.
- Styled
- Style, font or class override applied to a subtree.
- TextRun
- Literal text set upright, optionally in a specific face.
Enums§
- Accent
Kind - Accent shapes.
- Class
- Atom class, used for operator spacing between neighbouring atoms.
- Delim
- Delimiter shape.
- Font
- Typeface a run is set in.
- Frac
Kind - How a fraction is drawn.
- Math
Style - Size preset an equation is laid out at, matching the size classes an author picks from.
- Matrix
Kind - Kind of table, which decides delimiter defaults and column alignment.
- Node
- One item of an equation.
- Side
- Horizontal alignment of over/under material.
- Space
- Explicit horizontal space.
Type Aliases§
- Row
- Horizontal sequence of items.