![]() |
Global presentation | ![]() |
In the Preferences group of the Document\(\rightarrow\)Source menu, you find several ways to customize the rendering of source trees in your document (in the compressed menu layout, these settings are found in a dialog opened by Document\(\rightarrow\)Source\(\rightarrow\)Preferences). They correspond to the environment variables src-style, src-special, src-compact and src-close. We recommend you to play around with the different possibilities in a document of your own (after enabling Document\(\rightarrow\)Source\(\rightarrow\)Edit source tree) or a standard style package in $TEXMACS_PATH/packages.
First of all, you may choose between the different major styles “angular”, “scheme”, “functional” and “LaTeX” for rendering source trees (in the Document\(\rightarrow\)Source\(\rightarrow\)Style menu), as illustrated in the figure below:
|
|||||||||||||||||||
Secondly, you may wish to reserve a special treatment to certain tags like concat and document. In the menu Document\(\rightarrow\)Source\(\rightarrow\)Special you may specify to which extent you want to treat such tags in a special way:
No tags receive a special treatment.
Only the formatting tags concat and document are represented as usual.
In addition to the formatting tags, a few other tags like compound, value and arg are represented in a special way.
At the moment, this option is not yet implemented. The intention is to allow the user to write his own customizations and to allow for special rendering of basic operations like plus.
These different options are illustrated below:
|
|||||||||||||||||||
Another thing which may be controlled by the user is whether the presentation of tags should be compact or stretched out across several lines. Several levels of compactification may be specified in the Document\(\rightarrow\)Source\(\rightarrow\)Compactification menu:
The tags are all stretched out across several lines.
All non-inline tags are stretched out across several lines.
All inline arguments at the start of the tag are represented in a compact way. As soon as we encounter a block argument, the remainder of the arguments are stretched out across several lines.
All inline arguments are represented in a compact way and only block tags are stretched out across several lines.
All source code is represented in a compact way.
The “normal” and “inline arguments” options rarely differ. The visual effect of the different options is illustrated below:
|
|||||||||||||||||||
Finally, the user may specify the way closing tags should be rendered when the tag is stretched out across several lines (in the Document\(\rightarrow\)Source\(\rightarrow\)Closing style menu). The rendering may either be minimalistic, compact, long, or recall the matching opening tag. The different options are illustrated below:
|
|||||||||||||||||||