Organization of style files and packages |
Each standard TeXmacs style file or package is based on a potentially finite number of subpackages. From an abstract point of view, this organization may be represented by a labeled tree. For instance, the tree which corresponds to the article style is represented below:
Figure 1. The tree with the packages from
which the article style
has been built up. In order to save space, we have regrouped the
numerous children of std
and env in vertical
lists.
|
Most of the style packages correspond to a d.t.d. (data type definition) which contains the “abstract interface” of the package, i.e. the exported tags. For instance, the package std-markup corresponds to the d.t.d. std-markup. Sometimes however, several style packages match the same d.t.d.. For instance, both header-article and header-book match the d.t.d. header, since they merely implement different ways to render the same tags.
When building your own style files or packages, you may use the
<use-package|std|env|title-generic|header-article|section-article>
More precisely, the
$TEXMACS_PATH/styles $TEXMACS_PATH/packages
When loading using C-x C-f, these paths are in the standard load path. For instance, if you want to take a look at the std-markup package, then it suffices to type C-x C-f, followed by the file name std-markup.ts and return.