Hi Stefan,
I'll try to illustrate using a monospaced font:
+------+ Company Name | | | Logo | | | +------+
------------------------------------------------+------------ Type of document | Page Report of something | 2 (10) -----------------------------------+------------+------------ Name of document | Issue | Date My document name | 1 | 2008-04-22 -----------------------------------+------------+------------ Issuer (dept, name, email) | Appendix dept, name, email | Appendix ------------------------------------------------+------------
This is the full header. A reduced header is used on the rest of the pages where the last row is excluded.
(I am trying to convert a MS-Word template...)
\setvariables [document] [type={Report of something}, name={My document name}, issue={1}, date=\currentdate, issue={dept, name, email}, appendices={Appendix}] \definelayer [head:table] [width=\paperwidth, height=\paperheight, state=start] \definelayer [head:picture] [width=\paperwidth, height=\paperheight, state=repeat] \startsetups head:table \setlayer [head:table] [hoffset=\backspace, voffset=5cm] {\ifnum\pagenumber=\plusone \setups{head:table:first}% \else \setups{head:table:next}% \fi} \stopsetups \startsetups head:table:first \bTABLE[textwidth=\textwidth,option=stretch,align=right] \bTR \bTD[nx=2] Type of document\\\getvariable{document}{type} \eTD \bTD Page\\\pagenumber\space(\lastpagenumber) \eTD \eTR \bTR \bTD Name of document\\\getvariable{document}{name} \eTD \bTD Issue\\\getvariable{document}{issue} \eTD \bTD Date\\\getvariable{document}{date} \eTD \eTR \bTR \bTD[nx=2] Issuer (dept, name, email)\\\getvariable{document}{issue} \eTD \bTD Appendix\\\getvariable{document}{appendices} \eTD \eTR \eTABLE \stopsetups \startsetups head:table:next \bTABLE[textwidth=\textwidth,option=stretch,align=right] \bTR \bTD[nx=2] Type of document\\\getvariable{document}{type} \eTD \bTD Page\\\pagenumber\space(\lastpagenumber) \eTD \eTR \bTR \bTD Name of document\\\getvariable{document}{name} \eTD \bTD Issue\\\getvariable{document}{issue} \eTD \bTD Date\\\getvariable{document}{date} \eTD \eTR \eTABLE \stopsetups \setlayer [head:picture] [hoffset=\backspace, voffset=\topspace] {\externalfigure[Logo][width=3cm]} \setlayer [head:picture] [preset=righttop, hoffset=\cutspace, voffset=\topspace] {Company Name} \setupbackgrounds[page][setups={head:table},background={head:table,head:picture}] \starttext \dorecurse{3}{\page[empty]} \stoptext Greetings, Wolfgang