
Am 05.07.2025 um 15:27 schrieb Thomas Meyer:
Am 05.07.25 um 11:13 schrieb Wolfgang Schuster:
Am 05.07.2025 um 10:51 schrieb Thomas Meyer:
Hi folks,
is it possible to use an externalfigure (blabla.jpg) as a repeated header in a table and if yes, how can I use it? \setupTABLE[][][\externalfigure[blabla]] doesn't work.
\setupexternalfigures[location=default]
\starttext
\bTABLE[split=repeat] \bTABLEhead \bTR \bTD[strut=no,align=middle] \dontleavehmode\externalfigure[hacker][height=4ex] \eTD \eTR \eTABLEhead \bTABLEbody \dorecurse{100}{\bTR \bTD table cell \eTD \eTR} \eTABLEbody \eTABLE
\stoptext
Thank you Wolfgang,
but I wrote some pretty rubbish.
In a table, I need a text that repeats on all pages as a table header consisting of two lines. I use the table format with \setupTABLE, \startTABLE, \NC, \NR and so on.
The \setupTABLE command is used to control the layout of natural tables I used in my example. \startTABLE is a wrapper for natural tables to save a few keys strokes (less markup) for less text heavy content.
I also need an image in the header on each page.
You can \setupheadertexts to place the image in the header area or use a layer to place it wherever you want.
Unfortunately, I am at a loss at the moment and have no idea about either
\setupexternalfigures[location=default] \setupheadertexts[{\externalfigure[hacker][height=\headerheight]}] \starttext \startTABLE[split=repeat] \startTABLEhead \NC First line\\Second line \NC\NR \stopTABLEhead \startTABLEbody \dorecurse{100}{\NC row #1 \NC\NR} \stopTABLEbody \stopTABLE \stoptext Wolfgang