Changes

Jump to navigation Jump to search
734 bytes added ,  12:07, 2 September 2017
Example of changing element order
The “layers” (which are used for the “head”, “address” or “reference line”) are configured with <cmd>setupletterlayer</cmd> and <cmd>setupletterframe</cmd> command, the first is used to move the layer to its position on the page with the “x” and “y” keys and you can select one letter elements (which are created with <cmd>defineletterelement</cmd>) with the “alternative” key. With <cmd>setupletterframe</cmd> you can change the “width” and “height” of the element.
 
Thus, for example, the following will produce a small, sans serif header, 10pt from the bottom of the page and centered.
 
<texcode>
\defineletterelement[layer][foot][example]%
{This is my footer.}
\setupletterlayer[foot][alternative=example,style=\tfx\sans,y=10pt]
 
\setupletterframe[foot][align=middle]
</texcode>
 
The “sections” (which are used for the “subject” and “content”) are configured with <cmd>setuplettersection</cmd> which allows you to change the alignment and spacing before and after the element.
* '''(default)''' title, subject, opening, content, closing, appendices
* '''(block style layouts)''' head, date, reference, specialnotation, address
 
=== Changing the order of elements ===
 
The order of elements can be changed using <cmd>setupletterelements</cmd>. For example, to place the subject after the opening (as is standard in Britain), use the following:
 
\setupletterelements
[section]
[title,
opening,
subject,
content,
closing,
appendices]
 
=== \defineletterelement ===
=== Hraban’s complicated logo and address setup ===
 
Same as in [[Invoice]] sample.
\mainlanguage[nl]
1

edit

Navigation menu