Skip to main content

Module state

Module state 

Source
Expand description

The State of a TeX engine keeps track of scoped (by TeX groups) values.

Modules§

tex_state
Implementation of a plain TeX State.

Structs§

ChangeIter
An iterator over StateChanges to be rolled back when a group ends. Iterated over using ChangeIter::close.
StackLevel
A level of the StateStack, to be rolled back when a group ends
StateStack
A stack of StateChanges, to be rolled back when a group ends

Enums§

GroupType
The type of a group, e.g. {...}, \begingroup...\endgroup, $...$.
StateChange
A change to a State, to be potentially rolled back when a group ends.

Traits§

State
A TeX state; holds all the different parameters, equivalents, registers etc. The canoncial implementation is TeXState.
StateChangeTracker
Convenience trait for tracking state changes in a StateStack and rolling them back if necessary at the end of a group.