GNU TeXmacsUser manualReferenceAboutEnglish
Explanations of macros, environment variables, and so on

The main environment which is used for explanations of macros, environment variables, Scheme functions, etc. is inserted using the Explanatory item entry of the Manual\(\rightarrow\)Explain and menus. The environment comes with two arguments: the first argument consists of the concept or concepts to be explained, and the second one contains the actual explanation. A typical example would be the following:

<demo-tag|body>

<demo-tag|extras|body>
(short and long versions of a demo tag)

The demo-tag is used for demonstration purposes and decorates the body argument. An optional argument extras can be given with details on the way to decorate the body.

In this example, we used Manual\(\rightarrow\)Explain\(\rightarrow\)TeXmacs macros twice in order to insert the macros to be described. We also used Manual\(\rightarrow\)Explain\(\rightarrow\)Synopsis in order to give a short description of the tags (in grey). In a similar way, one may use Manual\(\rightarrow\)Explain\(\rightarrow\)Environment variable in order to describe an environment variable. Another example is:

(foo-bar K x)

The function foo-bar computes the foo-bar transform of the operator K and applies it to x.

In this example, we notice that all Scheme code was encapsulated into scm tags (see Insert\(\rightarrow\)Program\(\rightarrow\)Inline code\(\rightarrow\)Scheme) and arguments were tagged using scm-arg.

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