ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Changing the caption on a split table
@ 2022-08-02 23:26 Bruce Horrocks via ntg-context
  2022-08-13  8:35 ` Bruce Horrocks via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Bruce Horrocks via ntg-context @ 2022-08-02 23:26 UTC (permalink / raw)
  To: ntg-context mailing list; +Cc: Bruce Horrocks

I have a 5-page table placed using

\setupcaption [table] [way=bytext,prefixsegments=none]
\placetable[split]{My long table}{...}

The caption for the first table page is "Table 1a  My Long table"; for the second table page it is "Table 1b  My long table" and so on. I'd like to change these to be "Table 1  My Long table" then "Table 1 (cont'd) My long table" for the remaining pages.

I've tried \setupcaption[table][suffix={(cont'd)] but that affects all the pages. How can I set it for the second and subsequent pages only, please?

—
Bruce Horrocks
Hampshire, UK

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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Changing the caption on a split table
  2022-08-02 23:26 Changing the caption on a split table Bruce Horrocks via ntg-context
@ 2022-08-13  8:35 ` Bruce Horrocks via ntg-context
  2022-08-13  8:45   ` Wolfgang Schuster via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Bruce Horrocks via ntg-context @ 2022-08-13  8:35 UTC (permalink / raw)
  To: ntg-context mailing list; +Cc: Bruce Horrocks



> On 3 Aug 2022, at 00:26, Bruce Horrocks via ntg-context <ntg-context@ntg.nl> wrote:
> 
> I have a 5-page table placed using
> 
> \setupcaption [table] [way=bytext,prefixsegments=none]
> \placetable[split]{My long table}{...}
> 
> The caption for the first table page is "Table 1a  My Long table"; for the second table page it is "Table 1b  My long table" and so on. I'd like to change these to be "Table 1  My Long table" then "Table 1 (cont'd) My long table" for the remaining pages.
> 
> I've tried \setupcaption[table][suffix={(cont'd)] but that affects all the pages. How can I set it for the second and subsequent pages only, please?

The solution turned out to be really simple (for small tables at least - less fun if you have hundreds of pages!). Just use:

\defineconversion[Contd][~,{ (cont’d)},{ (cont’d)},{ (cont’d)},{ (cont’d)},{ (cont’d)},
						   { (cont’d)},{ (cont’d)},{ (cont’d)},{ (cont’d)},{ (cont’d)},
						   { (cont’d)},{ (cont’d)},{ (cont’d)},{ (cont’d)},{ (cont’d)},
						   { (cont’d)},{ (cont’d)},{ (cont’d)},{ (cont’d)},{ (cont’d)} ]
\setupfloatsplitting[conversion=Contd]

This results in "Table 1 My Long table", "Table 1 (cont’d) My Long table" and so on.

—
Bruce Horrocks
Hampshire, UK

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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Changing the caption on a split table
  2022-08-13  8:35 ` Bruce Horrocks via ntg-context
@ 2022-08-13  8:45   ` Wolfgang Schuster via ntg-context
  0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2022-08-13  8:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Wolfgang Schuster

Bruce Horrocks via ntg-context schrieb am 13.08.2022 um 10:35:
>> On 3 Aug 2022, at 00:26, Bruce Horrocks via ntg-context <ntg-context@ntg.nl> wrote:
>>
>> I have a 5-page table placed using
>>
>> \setupcaption [table] [way=bytext,prefixsegments=none]
>> \placetable[split]{My long table}{...}
>>
>> The caption for the first table page is "Table 1a  My Long table"; for the second table page it is "Table 1b  My long table" and so on. I'd like to change these to be "Table 1  My Long table" then "Table 1 (cont'd) My long table" for the remaining pages.
>>
>> I've tried \setupcaption[table][suffix={(cont'd)] but that affects all the pages. How can I set it for the second and subsequent pages only, please?
> The solution turned out to be really simple (for small tables at least - less fun if you have hundreds of pages!). Just use:
>
> \defineconversion[Contd][~,{ (cont’d)},{ (cont’d)},{ (cont’d)},{ (cont’d)},{ (cont’d)},
> 						   { (cont’d)},{ (cont’d)},{ (cont’d)},{ (cont’d)},{ (cont’d)},
> 						   { (cont’d)},{ (cont’d)},{ (cont’d)},{ (cont’d)},{ (cont’d)},
> 						   { (cont’d)},{ (cont’d)},{ (cont’d)},{ (cont’d)},{ (cont’d)} ]
> \setupfloatsplitting[conversion=Contd]
>
> This results in "Table 1 My Long table", "Table 1 (cont’d) My Long table" and so on.

There is already a conversion for this numbering style.

\setuplabeltext [en] [continued={ (cont’d)}]

\setupfloatsplitting [conversion=continued]

Wolfgang

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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-08-13  8:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-02 23:26 Changing the caption on a split table Bruce Horrocks via ntg-context
2022-08-13  8:35 ` Bruce Horrocks via ntg-context
2022-08-13  8:45   ` Wolfgang Schuster via ntg-context

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).