Split extreme tables across tables
The following document does not split across tables, which is a little surprising: \starttext \startplacetable[title={Average Annual Temperatures}] \startxtable \startxtablehead[head] \startxrow \startxcell[align=middle,width={0.10\textwidth}] Year \stopxcell \startxcell[align=middle,width={0.14\textwidth}] Value \stopxcell \stopxrow \stopxtablehead \startxtablebody[body] \dorecurse{100}{% \startxrow \startxcell[align=middle,width={0.10\textwidth}] 1880 \stopxcell \startxcell[align=middle,width={0.14\textwidth}] 0.1146 \stopxcell \stopxrow} \stopxtablebody \startxtablefoot[foot] \startxrow \startxcell[align=middle,width={0.10\textwidth}] 2018 \stopxcell \startxcell[align=middle,width={0.14\textwidth}] 1.014 \stopxcell \stopxrow \stopxtablefoot \stopxtable \stopplacetable \stoptext I'd have thought the default behaviour would be to split because the alternative is for the table content to scroll into the footer and off the page. A fix is to use: \startplacetable[title={Average Annual Temperatures}, location={split}] However, when the document is generated using pandoc, injecting location={split} is not feasible. It would be convenient if there was a way to use setups to override the location option for \startplacetable. Henri Menke provided a work around: let\oldstartplacetable\startplacetable \unexpanded\def\startplacetable{\dosingleempty\newstartplacetable} \def\newstartplacetable[#1]{\oldstartplacetable[#1,location={split}]} See: https://tex.stackexchange.com/a/499453/2148 This does the job, but it doesn't feel like the ConTeXt way. How would you use setups to enable page splitting on extreme tables? Thank you!
Got it.
\setupfloat[table][default={here,split}]
See: https://wiki.contextgarden.net/Command/setupfloat#Example
On Wed, Jul 10, 2019 at 7:32 PM Thangalin
Sorry! The subject line should be, "Split extreme tables across pages"...
This does the job, but it doesn't feel like the ConTeXt way.
How would you use setups to enable page splitting on extreme tables?
Thank you!
participants (1)
-
Thangalin