Environment primitives |
The current environment both defines all style parameters which affect the typesetting process and all additional macros provided by the user and the current style. The primitives in this section 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.
<assign|page-medium|paper>
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
<assign|chapter-nr|2>
The operand must be a literal string and is interpreted as a
file name. The content of this file is typeset in place of the
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 is used extensively in style files to modify the typesetter environment. For example to locally set the text font, the paragraph style, or the mode for mathematics.
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 primitive is used extensively in style files to modify the typesetter environment. For example to locally set the text font, the paragraph style, or the mode for mathematics.
This predicate evaluates to true if the environment variable var (string value) is defined, and to false otherwise.
That is useful for modular markup, like the