Changes

Jump to navigation Jump to search
695 bytes removed ,  20:50, 15 May 2022
\bTABLE[split=repeat, option=stretch]
\bTABLEhead
\bTR[style=bold]\dorecurse{85}{\bTH Header Col #1\eTH}\eTR
\eTABLEhead
\bTABLEbody
\dorecurse{50}{\bTR\dorecurse{85}{\bTDRow #1-col ##1\eTD}\eTR}
\eTABLEbody
\eTABLE
\stoptext
 
</texcode>
\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