ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Denis Maier <denismaier@mailbox.org>
To: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>,
	mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Split Table, don't repeat caption
Date: Thu, 8 Oct 2020 13:28:59 +0200	[thread overview]
Message-ID: <2a01f910-2b25-bc9f-a5d0-9d8e3de1080a@mailbox.org> (raw)
In-Reply-To: <7ebc9788-a28e-4129-2fef-5a969a983959@mailbox.org>



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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2020-10-08 11:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-07 15:39 Denis Maier
2020-10-07 15:46 ` Wolfgang Schuster
2020-10-07 16:00   ` Denis Maier
2020-10-08 11:28     ` Denis Maier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2a01f910-2b25-bc9f-a5d0-9d8e3de1080a@mailbox.org \
    --to=denismaier@mailbox.org \
    --cc=ntg-context@ntg.nl \
    --cc=wolfgang.schuster.lists@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).