Re: [NTG-context] xtable - what might prevent splitting?

2023-03-28 Thread Wolfgang Schuster via ntg-context

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

___
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
___


Re: [NTG-context] xtable - what might prevent splitting?

2023-03-28 Thread jbf via ntg-context
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}]___
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
___


Re: [NTG-context] xtable - what might prevent splitting?

2023-03-28 Thread Wolfgang Schuster via ntg-context

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

___
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
___


[NTG-context] xtable - what might prevent splitting?

2023-03-28 Thread jbf via ntg-context
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
___
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
___