Expand description
TeX Nodes that end up in the final document.
Split into three types: vertical, horizontal and math
nodes, each with a corresponding NodeList type.
Modules§
- boxes
TeXBoxes- horizontal
- Nodes allowed in horizontal lists.
- math
- Nodes allowed in math mode
- vertical
- Nodes allowed in vertical lists.
Structs§
- BoxTarget
- Once a box is closed, something is supposed to happen to it; most commonly, it is just added to the parent
node list; but occasionally, something else should happen to it - e.g.
\setbox5\hbox{...}implies that after the node list of the box is closed, it should be put into the box register with index 5 instead. This struct abstracts over that by carrying a continuation function to be called when the box is closed. - Display
Node - Helper struct that implements
Displayand usesNodeTrait::display_fmtto yield a human-readable string. - Leaders
- A
\leadersnode, as produced by\leaders,\cleadersor\xleaders. - List
Target - Once a node list is closed, something is supposed to happen to it; most commonly, it is a box-list;
but occasionally, something else should happen to it - e.g.
\vadjust{...}adds the list’s contents as a vertical adjustment,a^{...}adds it to the superscript-field of thea.character etc. This struct abstracts over that by carrying a continuation function to be called when the list is closed. - Whatsit
Node - A Whatsit node, essentially representing a callback to the engine to be executed
at shipout, as produced by e.g.
\specialor\write.
Enums§
- Leader
Body - The body of a
Leadersnode; either a box or a rule. - Leader
Skip - The skip length along which a
Leadersnode should be repeated. - Leader
Type - The type of a
Leadersnode (i.e. whether it was produced by\leaders,\cleadersor\xleaders). - Node
List - A node list, i.e. an open list of
Nodes currently being built. - Node
Type - The type of a
Node, as returned by\lastnodetype
Traits§
- Custom
Node Trait - Trait to implement for engine-specific new node types. Needs to implement
NodeTraitandInto<ET::CustomNode>. Is implemented by()for engines that do not have additional node types beyond the default ones. - Node
Trait - Common trait for all nodes that end up in the final document.
Functions§
- display_
do_ indent - Produces a
\nfollowed byindent-many spaces - i.e. does the indentation forcrate::tex::nodes::NodeTrait::display_fmt.