GNU TeXmacsUser manualReferenceAboutEnglishยทDeutsch
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.

<uninit>
(unknown content or uninitialized data)

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.

<unknown>
(unknown content or uninitialized data)

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

<error|message>
(error messages)

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.

<collection|binding-1|\(\cdots\)|binding-n>

<associate|key|value>
(collections of bindings)

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.

<attr|key-1|val-1|\(\cdots\)|key-n|val-n>
(XML-like attributes)

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>

<tag|id|body>
(attach a label to some content)

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.

<backup|save|stack>
(save values on stack)

Used to represent temporarily saved values on a stack.

<dbox>
(marker for decorations)

This primitive is only intended for internal use by the datoms, dlines and dpages primitives.

<rewrite-inactive|t|var>
(internal primitive for rendering inactive markup)

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>>>

<freeze|content>

<unfreeze|content>
(frozen content)

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.

<hidden-binding|keys|value>
(result of set-binding)

This tag is returned by the evaluation of set-binding; it is not rendered.

<cache-ref|hash|kind>

<cache-ref|hash|kind|width|height>
(placeholder for cached content)

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.

<identity|markup>
(identity macro)

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.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".