| LaTeXML::Core::State(3pm) | User Contributed Perl Documentation | LaTeXML::Core::State(3pm) |
"LaTeXML::Core::State" - stores the current state of processing.
A "LaTeXML::Core::State" object stores the current state of processing. It recording catcodes, variables values, definitions and so forth, as well as mimicking TeX's scoping rules.
The assignment methods, described below, generally take a $scope argument, which determines how the assignment is made. The allowed values and their implications are:
global : global assignment.
local : local assignment, within the current grouping.
undef : global if \global preceded, else local (default)
<name> : stores the assignment in a `scope' which
can be loaded later.
If no scoping is specified, then the assignment will be global if a preceding "\global" has set the global flag, otherwise the value will be assigned within the current grouping.
Values are also used to specify most configuration parameters (which can therefore also be scoped). The recognized configuration parameters are:
VERBOSITY : the level of verbosity for debugging
output, with 0 being default.
STRICT : whether errors (eg. undefined macros)
are fatal.
INCLUDE_COMMENTS : whether to preserve comments in the
source, and to add occasional line
number comments. (Default true).
PRESERVE_NEWLINES : whether newlines in the source should
be preserved (not 100% TeX-like).
By default this is true.
SEARCHPATHS : a list of directories to search for
sources, implementations, etc.
This method is also used to specify whether a given character is active in math mode, by using "math:$char" for the character, and using a value of 1 to specify that it is active.
Named scopes can be used to set variables or redefine control sequences within a scope other than the standard TeX grouping. For example, the LaTeX implementation will automatically activate any definitions that were defined with a named scope of, say "section:4", during the portion of the document that has the section counter equal to 4. Similarly, a scope named "label:foo" will be activated in portions of the document where "\label{foo}" is in effect.
Bruce Miller <bruce.miller@nist.gov>
Public domain software, produced as part of work done by the United States Government & not subject to copyright in the US.
| 2021-05-20 | perl v5.32.1 |