[NTG-context] Split Table, don't repeat caption
Denis Maier
denismaier at mailbox.org
Thu Oct 8 13:28:59 CEST 2020
Am 07.10.2020 um 18:00 schrieb Denis Maier:
> Am 07.10.2020 um 17:46 schrieb Wolfgang Schuster:
>> Denis Maier schrieb am 07.10.2020 um 17:39:
>>> Hi,
>>>
>>> is there a way not to repeat the caption of a multipage natural
>>> table? I've searched the list archive and it looks the question came
>>> up a couple of times, but I couldn't find an answer.
>>
>> If this doesn't help you have to provide a example.
>> [...]
>>
>
> Ok:
>
> =========================
> \setupcaption[table]
> [location=top]
> \starttext
>
> \startplacetable[location=split,title={Title\footnote{footnote}}]
> \bTABLE[split=yes]
> \bTABLEhead
> \bTR \bTD Header 1 \eTD \bTD Header 2 \eTD \eTR
> \eTABLEhead
> \bTABLEbody
> \dorecurse{100}{\bTR \bTD Column 1 \eTD \bTD Column 2 \eTD \eTR}
> \eTABLEbody
> \eTABLE
> \stopplacetable
> \stoptext
> ========================
>
> So, the caption appears on each page, and the footnote is attached to
> the last caption. Ideally, the footnote should be attached to the
> first caption. (And, actually, I want the caption only once.)
Ok, I've found a solution:
```
\setupcaption[table][location=top]
\starttext
\startplacetable[location={none,split}]
\startalignment[middle]
\placefloatcaption[table][title={Title\footnote{footnote}}]
\stopalignment
\bTABLE[split=yes]
\bTABLEhead
\bTR \bTD Header 1 \eTD \bTD Header 2 \eTD \eTR
\eTABLEhead
\bTABLEbody
\dorecurse{100}{\bTR \bTD Column 1 \eTD \bTD Column 2 \eTD \eTR}
\eTABLEbody
\eTABLE
\stopplacetable
\stoptext
```
That works, but isn't there an easier solution yet? An
automatic/parameter-based solution would be great. Something like:
=========================
\setupcaption[table]
[location=top]
\starttext
\startplacetable[location={split,captiononcefirst},title={Title\footnote{footnote}}]
[...]
\stopplacetable
\stoptext
========================
Best,
Denis
More information about the ntg-context
mailing list