Environment primitives |
A document default initial environment is the typesetter default environment modified by the execution of document style and packages. These primitives are used to access and modify environment variables.
|
||||||||||||||||||||||||||||||||||||
This primitive sets the environment variable named var (string value) to the value of the val expression. This primitive is used to make non-scoped changes to the environment, like defining markup or increasing counters.
This primitive affects the evaluation process
The page-medium is used to enable page
breaking. Since only the initial environment
value for this variable is effective, this assignation
must occur in a style file, not within a document.
|
The following snippet will cause the immediately
following chapter to be number 3. This is useful to get
the the numbering right in book style
when working with projects and
|
This primitive temporarily sets the environment variables var-1 until var-n
(in this order) to the evaluated values of val-1
until val-n and typesets body
in this modified environment. All non-scoped change done with
This primitive evaluates the current value of the environment variable var (literal string). This is useful to display counters and generally to implement environment-sensitive behavior.
This predicate evaluates to true if the environment variable var (string value) is defined, and to false otherwise.