deplate document is made up of a pre-matter,
a body, and a post-matter each of which is an array of arrays of strings.
In multi-file output, pre-matter and post-matter are the same for all files. The actual body usually beginns, but this depends on the formatter, at position 90 of the pre-matter and ends at position 20 of the post-matter section. I.e. if you want to print some information in every file’s body, put it somewhere in the pre-matter after position 90 or in the post-matter before slot 20.
The default slot for normal text is 50 in the body section. If slot is greater than 50, the element will be moved to the end of the document. If it is smaller, it will be moved to the beginning. The utility of this feature for the user is limited. It can come handy, if you want to put LaTeX-code into the preamble or if you want to customize the output in some more advanced way.
The slots can also be addressed via names:
The names can come handy when selectively filling in content into a template.
Any element can be located at any position in the document. This can be done by adding the option “slot” to an element. The value of “slot” can be a name, a number, or a mix of both like in “css+1” or “body-1”.
The use of numbers is deprecated and will be disabled some time in the future.
In general, you shouldn’t address slots by their number. It’s quite likely that this option will soon disappear.
|2 Getting deplate|
|6 Input Formats|
|7 Output Formats|
|15 Variables and options|
|16.1 Document structure|
|17 Extending deplate|
|About this page|