Changes

Jump to navigation Jump to search
707 bytes added ,  10:45, 15 May 2022
Added \bTABLEnested example
\stop
</texcode>
 
= Tables in page headers =
 
Sometimes you want to use a table layout in a header, for example to show a company's name and contact information at the top of each page of an invoice. The standard `\bTABLE` command causes issues so use `\bTABLEnested` instead. The parameters are the same.
 
<texcode>
% A setup to define the table's appearance
\startsetups headertable
\setupTABLE[frame=off]
\setupTABLE[column][1][align=flushleft]
\setupTABLE[column][2][align=flushright]
\stopsetups
...
% A setup to define the table's contents
\startsetups headertext
\bTABLEnested[setups=headertable, ...]
...
\eTABLEnested
\stopsetups
...
% Use the table in the header
\setupheadertexts[\setups{headertext}]
 
</texcode>
93

edits

Navigation menu