diff options
author | Hans Hagen <pragma@wxs.nl> | 2020-05-18 17:33:44 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2020-05-18 17:33:44 +0200 |
commit | f7049c2619684d6bfe6688d3a669455a6ecb6713 (patch) | |
tree | dce9906ecba09f11b73930d696ca9b7973eda887 /doc/context/sources/general/manuals/luametatex/luametatex-enhancements.tex | |
parent | d7b2b626996a97ebb9911c972b920f8eace34d4f (diff) | |
download | context-f7049c2619684d6bfe6688d3a669455a6ecb6713.tar.gz |
2020-05-18 16:49:00
Diffstat (limited to 'doc/context/sources/general/manuals/luametatex/luametatex-enhancements.tex')
-rw-r--r-- | doc/context/sources/general/manuals/luametatex/luametatex-enhancements.tex | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/doc/context/sources/general/manuals/luametatex/luametatex-enhancements.tex b/doc/context/sources/general/manuals/luametatex/luametatex-enhancements.tex index d199239b1..73c62fc89 100644 --- a/doc/context/sources/general/manuals/luametatex/luametatex-enhancements.tex +++ b/doc/context/sources/general/manuals/luametatex/luametatex-enhancements.tex @@ -1091,6 +1091,35 @@ or more than zero. \stopsubsection +\startsubsection[title={\lpr {ifmathstyle} and \lpr {ifmathparameter}}] + +These two are variants on \prm {ifcase} where the first one operates with values +in ranging from zero (display style) to seven (cramped script script style) and +the second one can have three values: a parameter is zero, has a value or is +unset. The \type {\ifmathparameter} primitive takes a proper parameter name and a +valid style identifier (a primitive identifier or number). The \type +{\ifmathstyle} primitive is equivalent to \type {\ifcase \mathstyle}. + +\stopsubsection + +\stopsubsection + +\startsubsection[title={\lpr {ifempty}}] + +This primitive tests for the following token (control sequence) having no +content. Assuming that \type {\empty} is indeed empty, the following two are +equivalent: + +\starttyping +\ifempty\whatever +\ifx\whatever\empty +\stoptyping + +There is no real performance gain here, it's more one of these extensions that +lead to less clutter in tracing. + +\stopsubsection + \startsubsection[title={\lpr {ifboolean}}] This primitive tests for non|-|zero, so the next variants are similar |