Table floats split in odd places, independent of top/page/here location. There’s always a first part, then some not-float text, then the other parts. Even if the table would fit on two pages (with location=page), it always gets split into three. Can I influence this anyhow? Hraban \usemodule[visual] \starttext \samplefile{tufte} \startplacetable[location={top,split},title=table split test] \bTABLE%[setups=twoparamstable] \bTABLEhead \bTR\bTH One \eTH\bTH Two\eTH\bTH Three \eTH\eTR \eTABLEhead \bTABLEbody \dorecurse{60}{% \bTR\bTD #1\eTD\bTD \fakewords{1}{10}\eTD\bTD \fakewords{1}{10}\eTD\eTR } \eTABLEbody \eTABLE \stopplacetable \samplefile{knuth} \stoptext
This is a long-time open issue. Am I the only one affected by this? Also, \bTABLEfoot doesn’t repeat – I’d like to use it e.g for a line (rule). Also, is it possible to have different captions in first and other parts? Hraban Am 17.06.24 um 18:36 schrieb Henning Hraban Ramm:
Table floats split in odd places, independent of top/page/here location.
There’s always a first part, then some not-float text, then the other parts.
Even if the table would fit on two pages (with location=page), it always gets split into three.
Can I influence this anyhow?
Hraban
\usemodule[visual]
\starttext
\samplefile{tufte}
\startplacetable[location={top,split},title=table split test] \bTABLE%[setups=twoparamstable] \bTABLEhead \bTR\bTH One \eTH\bTH Two\eTH\bTH Three \eTH\eTR \eTABLEhead \bTABLEbody \dorecurse{60}{% \bTR\bTD #1\eTD\bTD \fakewords{1}{10}\eTD\bTD \fakewords{1}{10}\eTD\eTR } \eTABLEbody \eTABLE \stopplacetable
\samplefile{knuth}
\stoptext
On 7 Jul 2024, at 10:51, Henning Hraban Ramm
wrote: Also, is it possible to have different captions in first and other parts?
This previous thread might help. https://www.mail-archive.com/ntg-context@ntg.nl/msg102641.html — Bruce Horrocks Hampshire, UK
Am 07.07.24 um 20:22 schrieb Bruce Horrocks:
On 7 Jul 2024, at 10:51, Henning Hraban Ramm
wrote: Also, is it possible to have different captions in first and other parts?
This previous thread might help. https://www.mail-archive.com/ntg-context@ntg.nl/msg102641.html
Thank you, but that doesn’t fit my use case: In my ConTeXt book, there are many long tables of parameters. The caption says “Parameters of \setupsomething”, but I’d also give hints like “You can also use the parameters of \setupframed, see p.123.”. I’d like to have these hints only in the first caption, and they’re different for each table. It’s not that important, I can move the text somewhere else, but often enough in ConTeXt there are obscure features for advanced stuff. Hraban
On 7 Jul 2024, at 19:34, Henning Hraban Ramm
wrote: Am 07.07.24 um 20:22 schrieb Bruce Horrocks:
On 7 Jul 2024, at 10:51, Henning Hraban Ramm
wrote: Also, is it possible to have different captions in first and other parts? This previous thread might help. https://www.mail-archive.com/ntg-context@ntg.nl/msg102641.html
Thank you, but that doesn’t fit my use case: In my ConTeXt book, there are many long tables of parameters. The caption says “Parameters of \setupsomething”, but I’d also give hints like “You can also use the parameters of \setupframed, see p.123.”. I’d like to have these hints only in the first caption, and they’re different for each table.
It’s not that important, I can move the text somewhere else, but often enough in ConTeXt there are obscure features for advanced stuff.
If I understand you correctly then this does what you want. It's a bit of a hack though. \defineselector [caption] [max=2] \starttext \setupfloatsplitting [inbetween={\setupselector[caption][n=2]}] \setupselector[caption][n=1] \placetable[split] {\select{caption} {Parameters of \type{\setupsomething}. You can also use the parameters of \type{\setupframes}, see page. 123} {Parameters of \type{\setupsomething}.} } {\bTABLE \dorecurse{100}{ \bTR \bTD One \eTD \bTD two \eTD \eTR \bTR \bTD One \eTD \bTD two \eTD \eTR } \eTABLE} \stoptext — Bruce Horrocks Hampshire, UK
On 08/07/2024 14:39, Bruce Horrocks wrote:
\defineselector [caption] [max=2]
\starttext
\setupfloatsplitting [inbetween={\setupselector[caption][n=2]}]
\setupselector[caption][n=1] \placetable[split] {\select{caption} {Parameters of \type{\setupsomething}. You can also use the parameters of \type{\setupframes}, see page. 123} {Parameters of \type{\setupsomething}.} } {\bTABLE \dorecurse{100}{ \bTR \bTD One \eTD \bTD two \eTD \eTR \bTR \bTD One \eTD \bTD two \eTD \eTR } \eTABLE}
\stoptext
There is a reason that the \recurselevel do not work in this context; all \recurselevel show up as zero {\bTABLE \dorecurse{100}{ \bTR \bTD \recurselevel \eTD \bTD one \eTD \eTR \bTR \bTD two \eTD \bTD \recurselevel \eTD \eTR } \eTABLE} Any hint?
Am 08.07.24 um 15:48 schrieb vm via ntg-context:
There is a reason that the \recurselevel do not work in this context; all \recurselevel show up as zero
{\bTABLE \dorecurse{100}{ \bTR \bTD \recurselevel \eTD \bTD one \eTD \eTR \bTR \bTD two \eTD \bTD \recurselevel \eTD \eTR } \eTABLE}
Any hint?
Something about expansion and maybe buffers. Try #1, it often works where \recurselevel fails. Hraban
Am 08.07.24 um 14:39 schrieb Bruce Horrocks:
On 7 Jul 2024, at 19:34, Henning Hraban Ramm
wrote: Am 07.07.24 um 20:22 schrieb Bruce Horrocks:
On 7 Jul 2024, at 10:51, Henning Hraban Ramm
wrote: Also, is it possible to have different captions in first and other parts? This previous thread might help. https://www.mail-archive.com/ntg-context@ntg.nl/msg102641.html
Thank you, but that doesn’t fit my use case: In my ConTeXt book, there are many long tables of parameters. The caption says “Parameters of \setupsomething”, but I’d also give hints like “You can also use the parameters of \setupframed, see p.123.”. I’d like to have these hints only in the first caption, and they’re different for each table.
It’s not that important, I can move the text somewhere else, but often enough in ConTeXt there are obscure features for advanced stuff.
If I understand you correctly then this does what you want. It's a bit of a hack though.
\defineselector [caption] [max=2]
\starttext
\setupfloatsplitting [inbetween={\setupselector[caption][n=2]}]
\setupselector[caption][n=1] \placetable[split] {\select{caption} {Parameters of \type{\setupsomething}. You can also use the parameters of \type{\setupframes}, see page. 123} {Parameters of \type{\setupsomething}.} } {\bTABLE \dorecurse{100}{ \bTR \bTD One \eTD \bTD two \eTD \eTR \bTR \bTD One \eTD \bTD two \eTD \eTR } \eTABLE}
\stoptext
Thank you, that’s a good idea. (Another mechanism in ConTeXt that I didn’t know and need to document…) Hraban
Am 17.06.24 um 18:36 schrieb Henning Hraban Ramm:
Table floats split in odd places, independent of top/page/here location.
There’s always a first part, then some not-float text, then the other parts.
Even if the table would fit on two pages (with location=page), it always gets split into three.
Can I influence this anyhow?
Hans explained in today’s online meeting: The float location "split" cannot be combined with other locations (here, top, bottom, page). "split" alone is like "here"; for "page", use \startpostponing \startplacetable[location=split] \bTABLE % long table \eTABLE \stopplacetable \stoppostponing Hraban
participants (3)
-
Bruce Horrocks
-
Henning Hraban Ramm
-
vm