GNU TeXmacsUser manualReferenceAboutEnglish·Français·Español·Português
Look at an example

Before writing your own style file, it may be useful to take a look at some standard style files. For instance, you may open

book.ts

using File\(\rightarrow\)Open; it can be found in the directory $TEXMACS_PATH/styles. Alternatively, when editing a document whose style is book, you may use Document\(\rightarrow\)Style\(\rightarrow\)Edit style. Style files are shown in source mode, so that all macro and environment declarations are visible.

The file

book.ts

itself is very short: it essentially loads the packages std, env, title-book, header-book and section-book and sets a few style parameters. Most declarations are contained in these packages and in the packages on which they are based in their turn. For instance, std loads std-markup, std-list, std-math, std-automatic and several other packages (in $TEXMACS_PATH/packages/standard), which respectively contain basic markup, itemize-like environments, mathematical markup, automatically generated content (tables of contents, bibliographies, etc.), and so on. Similarly, env loads env-base, env-math, env-theorem, env-float and env-program (in $TEXMACS_PATH/packages/environment), which contain theorem-like, mathematical, floating and programming environments. Sectional commands are defined in section-base and customized in section-book.

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