This class contains the rendering context of the current parse level.
It also holds information about the parent context to handle scaling adjustments.
When a new scope is entered, a clone of the context is created with
so that any further changes remain local to the scope.
A scope is defined for example by:
- an explicit group enclosed in braces
- a semi-simple group enclosed in
- an environment delimited by
'text' (aka 'inline'),
generateID: boolean | object
If true, unique IDs should be
generated for each span so they can be mapped back to an atom.
Can also be an object with a
seed field to generate a specific range of
IDs. Optionally, if a
groupNumbers property is set to true, an additional
span will enclose strings of digits. This is used by read aloud to properly
pronounce (and highlight) numbers in expressions.
A macros dictionary
Change the mathstyle of this context
'auto' to indicate that the mathstyle should in
fact not be changed. This is used when specifying the mathstyle for some