Utilities for writing style files |
The std-utils package provides several macros which may be useful when writing style files. First of all, the following macros may be used for rendering purposes:
Low level tags for flushing to the right in the definition of
environments. One usually should use
These tags are used to make the body
span over the entire paragraph width. The text is left-aligned
in the case of
These tags are variants of <
These tags are used to make the body
span over the entire paragraph width and to put a horizontal
rule above and/or below it. The widths of the rules are given by
top-border and bot-border
and the separation between the rules by top-sep
and bot-sep. The standard width and
separation (used by
left
right
|
Wide underlined environments are typically used for page headers. Wide environments which are both overlined and underlined are typically used for abstracts or floating figures and tables.
These tags put the body inside a frame box which spans over the whole paragraph. The user may specify a border-width, horizontal and vertical separations hsep and vsep between the border and the text, and colors border-color and body-color for the border and the background. For instance, <wide-std-framed-colored|brown|pastel green|Hi there!> yields
Hi there!
These environments may be used in order to increase the current left and/or right indentation by the amounts left-amount and/or right-amount.
The following macros may be used in order to set headers and footers:
A macro for permanently changing the header. Notice that certain tags in the style file, like sectional tags, may override such manual changes.
A macro for permanently changing the footer. Again, certain tags in the style file may override such manual changes.
Remove all headers and footers from this page.
Remove the header of this page and set the footer to the current page number (centered). This macro is often called for title pages or at the start of new chapters.
Other macros provided by std-utils are:
This macro should be used in order to “localize” some English text to the current language. For instance, <with|language|french|<localize|Theorem>> yields Théorème.
This macro applies the macro fun to each of the entries in a tuple (or the children of an arbitrary TeXmacs tag) and returns the result as a tuple. For instance, <map|<macro|x|<em|x>>|<tuple|1|2|3>> yields (the quote only appears when rendering the result, not when performing further computations with it).