I cannot understand why my xtable setup does not split to the next page. As far as I can see I have it set up correctly... though obviously not! What might be wrong? Below is a sample. In the real case the number of rows would demand a second page. \setupxtable[width=4cm,option={stretch,width}] \setupxtable[split=yes] \starttext \placetable[here]{} \startxtable \startxrow \startxcell cell one \stopxcell \startxcell cell two \stopxcell \startxcell cell three\stopxcell \stopxrow ... and so on and so forth for twenty or so rows, but certainly enough to require a second page \stopxtable \stoptext Julian
jbf via ntg-context schrieb am 28.03.2023 um 10:27:
I cannot understand why my xtable setup does not split to the next page. As far as I can see I have it set up correctly... though obviously not! What might be wrong? Below is a sample. In the real case the number of rows would demand a second page.
\setupxtable[width=4cm,option={stretch,width}]
\setupxtable[split=yes]
\starttext
\placetable[here]{}
\startxtable
\startxrow
\startxcell cell one \stopxcell
\startxcell cell two \stopxcell
\startxcell cell three\stopxcell
\stopxrow
... and so on and so forth for twenty or so rows, but certainly enough to require a second page
\stopxtable
\stoptext
You have to pass the "split" keyword to the float command, e.g. \startplacetable [location={here,split}] \startxtable ... \stopxtable \stopplacetable Wolfgang
Got it! But I would not have picked that up from reading http://www.pragma-ade.nl/general/manuals/xtables-mkiv.pdf, which was my guide for this particular exercise. It certainly says \placetable[here,split] but there is no mention of the \start...stop version of that. Anyway, I now understand what I need to do, so thank you. Julian On 28/3/23 19:37, Wolfgang Schuster wrote:
\startplacetable [location={here,split}]
jbf schrieb am 28.03.2023 um 10:43:
Got it! But I would not have picked that up from reading http://www.pragma-ade.nl/general/manuals/xtables-mkiv.pdf, which was my guide for this particular exercise. It certainly says \placetable[here,split] but there is no mention of the \start...stop version of that.
Anyway, I now understand what I need to do, so thank you.
Julian
On 28/3/23 19:37, Wolfgang Schuster wrote:
\startplacetable [location={here,split}]
When you use the old \place... commands you have to write \placetable [here,split} {...} {...} BTW: \placetable expects either {...} or \bgoup ...\egroup as second mandatory argument, in your case you has been lucky because \startxtable has an \bgroup in its definition but you shouldn't rely on this. Wolfgang
participants (2)
-
jbf
-
Wolfgang Schuster