[NTG-context] Changing the caption on a split table

Bruce Horrocks ntg at scorecrow.com
Sat Aug 13 10:35:54 CEST 2022



> On 3 Aug 2022, at 00:26, Bruce Horrocks via ntg-context <ntg-context at 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



More information about the ntg-context mailing list