Evaluation control primitives |
This section describes several primitives for controlling the way
expressions in the style-sheet language are evaluated. The primitives
are analoguous to the
Typeset the result of the evaluation of expr.
This primitive is usually combined with a tag like
Evaluation of the expression <
This tag is a variant of the
<assign|hello|<quasiquote|<macro|name|<unquote|<localize|Hello>> name.>>>
may be used to define a macro
<assign|hello|<macro|name|Bonjour
name.>>
Notice however that it is usually better not to use the
<assign|hello|<macro|name|<localize|Hello> name.>>
the typesetting of <hello|Name> would naturally adapt itself to the current
language, while the above version would always use the language
at the moment of the definition of the macro. Nevertheless, the
first form does have the advantage that the localization of the
word “Hello” only has to be computed once, when the
macro is defined. Therefore, the
This tag is used in combination with
This tag is similar to
<
assign
|
fun
|
<
xmacro
|
x
|
<\quasi|
<tree|dup|<unquote*|<quote-arg|x>>|<unquote*|<quote-arg|x>>>
Then <fun|a|b|c> is typeset as
This tag is a shortcut for <
<assign|new-theorem|<macro|name|text|<quasi|<assign|<unquote|name>|<macro|body|<surround|<no-indent><strong|<unquote|text>. >|<right-flush>|body>>>>>>
may be used in order to define new theorem-like environments.
When retrieving an environment variable var,
one is usually interested in its typesetted value, as given by
<
When retrieving (a subexpression of) a macro argument var,
one is usually interested in its typesetted value, as given by
<