Optional
level: string | numberA parser configuration.
The last command sequence
Saved stack environments for processing braces
Current position in the string that is parsed.
The scriptlevel of this text-mode material
Counter for recursive macros.
Protected
nodesThe accumulated MmlNodes generated by parsing the text-mode material
The stack for items and created nodes.
The accumulated text material to go into an mtext element
The factory for stack items.
The configuration options.
The string that is currently parsed.
Sets the string that should be parsed.
The new string to parse.
Add mathsize, mathcolor, and mathvariant to token nodes, if they are specified in the environment
The node to adjust
Checks if a token is contained in one of the token mappings of the specified kind.
Configuration name.
The token to parse.
True if the token is contained in the given types of token mapping.
Convert delimiter to character.
The delimiter name.
The corresponding character.
Protected
copyCopy the node list from the text parser to the TeX parser
Convenience method to create nodes with the node factory of the current configuration.
The kind of node to create.
The remaining arguments for the creation method.
The newly created node.
Throw an error
The id for the message string
The English version of the message
Any substitution args for the message
Get and return a TeX argument (either a single character or control sequence, or the contents of the next set of braces).
Name of the current control sequence.
True if no argument is OK.
The next argument.
Get an optional LaTeX argument in brackets.
Name of the current control sequence.
Optional
def: stringThe default value for the optional argument.
True if indernal brackets must match.
The optional argument.
Get the next unicode character in the string
Get and return a control-sequence name
Get the name of a delimiter (check it in the delimiter list).
Name of the current control sequence.
Are braces around the delimiter OK.
The delimiter name.
Get a delimiter or empty argument
Name of the current control sequence.
The delimiter.
Get a dimension (including its units).
Name of the current control sequence.
The dimension string.
Get the next non-space character.
True if a star follows the control sequence name.
Get everything up to the given control sequence (token)
Name of the current control sequence.
The element until where to parse.
The text between the current position and the given token.
Maps a token to its "parse value" if it exists.
Configuration name.
The token to parse.
A boolean, Character, or Macro.
Make sure we only return one element (wrap multiple ones in an mrow or mstyle, as needed).
True if the next character to parse is a space.
Parses the input with the specified kind of map.
Configuration name.
Input to be parsed.
The output of the parsing function.
Process the argument as text with the given environment settings
The macro that is calling for a parameter
The environment to use
The node with the parsed text element
Parses a given string up to a given token in a new parser instance.
Name of the current control sequence.
A Token at which to end parsing.
The parsed node.
Pushes a list of new items onto the stack.
The new items.
Push some math into the node list, adding mathsize and mathcolor if specified in the environment.
The math nodes to push
Creates an mtext element for the saved text and pushes that onto the node list
Subclass of the TexParser but for handling text-mode material