![]() |
Internal primitives | ![]() |
The primitives in this section are merely for internal use by TeXmacs only. They are documented for the sake of completeness, but you should only use them if you really know what you are doing.
This primitive is mainly used for default uninitialized value of environment variables; the main advantage of this tag is to be distinct from the empty string.
This primitive is mainly used for default uninitialized value of environment variables; the main advantage of this tag is to be distinct from the empty string.
This value is less likely to be encountered than uninit
This primitive should never appear in documents. It is provided as aid in tracking down invalid constructs. It is produced at evaluation time by any kind of primitive which is given improper operands.
The collection tag is used to represent hash tables with bindings binding-1 until binding-n. Each binding is of the form <associate|key|value>, with a key and an associated value.
This tag is included for future compatibility with XML. It is used for encoding XML-style attributes by TeXmacs trees. For instance, the fragment
<blah color="blue" emotion="verbose"> Some XML stuff </blah> |
would typically be represented as
<blah|<attr|color|blue|emotion|verbose>|Some XML stuff> |
This built-in macro (defined in
Typeset/Env/env_default.cpp
) adds the label id to the the-tags environment variable while typesetting body. The next <set-binding|value> inside body (typically issued by a numbered environment) then binds id to value, so that id can be referred to using reference.
Used to represent temporarily saved values on a stack.
This primitive is only intended for internal use by the datoms, dlines and dpages primitives.
This internal primitive is used for rewriting an inactive tree into a new tree whose rendering corresponds to the rendering of the inactive tree. The first argument must be a macro argument <arg|x> (with optional indices). The second argument is a literal string which specifies the rewriting mode: once (only the root is shown inactive, as for inactive), recurse (the whole tree is shown inactive, as for inactive*; this is also the default) or error (as for error). The variants once*, recurse* and error* are used for block content. It may be successfully invoked from within a macro.
e.g. <assign|show-inactive|<macro|x|<rewrite-inactive|x|>>>
which might be invoked to show itself or another assigned variable using quasiquote in this manner: <quasiquote|<show-inactive|<unquote|show-inactive>>>
The content of a freeze tag is typeset as usual, but as a decoration, so that it cannot be edited; unfreeze can be used inside frozen content in order to make parts of it editable again.
This tag is returned by the evaluation of set-binding; it is not rendered.
Placeholder for content (of a given kind, such as image or graphics) which is stored elsewhere under the key hash and which has not been loaded yet. It is rendered as a provisional box, whose size may be given by the optional width and height.
The identity macro is built-in into TeXmacs. It should not really be considered as a primitive, but it is not part of any style file either.
In addition to these primitives for internal use only, there are also quite a few obsolete primitives, which are no longer being used by TeXmacs, but whose names should be avoided when creating your own macros. The full list of obsolete primitives is: format, line-sep, split, delay, hold, release, old-matrix, old-table, old-mosaic, old-mosaic-item, set, reset, expand, expand*, hide-expand, apply, begin, end, func, env, authorize, postscript.