![]() |
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:
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.