ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* xtable - what might prevent splitting?
@ 2023-03-28  8:27 jbf via ntg-context
  2023-03-28  8:37 ` Wolfgang Schuster via ntg-context
  0 siblings, 1 reply; 4+ messages in thread
From: jbf via ntg-context @ 2023-03-28  8:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: jbf


[-- Attachment #1.1: Type: text/plain, Size: 625 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 3453 bytes --]

[-- Attachment #2: Type: text/plain, Size: 496 bytes --]

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: xtable - what might prevent splitting?
  2023-03-28  8:27 xtable - what might prevent splitting? jbf via ntg-context
@ 2023-03-28  8:37 ` Wolfgang Schuster via ntg-context
  2023-03-28  8:43   ` jbf via ntg-context
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2023-03-28  8:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users, jbf via ntg-context; +Cc: Wolfgang Schuster


[-- Attachment #1.1: Type: text/plain, Size: 909 bytes --]

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


[-- Attachment #1.2: Type: text/html, Size: 3698 bytes --]

[-- Attachment #2: Type: text/plain, Size: 496 bytes --]

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: xtable - what might prevent splitting?
  2023-03-28  8:37 ` Wolfgang Schuster via ntg-context
@ 2023-03-28  8:43   ` jbf via ntg-context
  2023-03-28  8:58     ` Wolfgang Schuster via ntg-context
  0 siblings, 1 reply; 4+ messages in thread
From: jbf via ntg-context @ 2023-03-28  8:43 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: jbf, mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 426 bytes --]

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}]

[-- Attachment #1.2: Type: text/html, Size: 1511 bytes --]

[-- Attachment #2: Type: text/plain, Size: 496 bytes --]

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: xtable - what might prevent splitting?
  2023-03-28  8:43   ` jbf via ntg-context
@ 2023-03-28  8:58     ` Wolfgang Schuster via ntg-context
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2023-03-28  8:58 UTC (permalink / raw)
  To: jbf; +Cc: Wolfgang Schuster, mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 803 bytes --]

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


[-- Attachment #1.2: Type: text/html, Size: 2142 bytes --]

[-- Attachment #2: Type: text/plain, Size: 496 bytes --]

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-03-28  8:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-28  8:27 xtable - what might prevent splitting? jbf via ntg-context
2023-03-28  8:37 ` Wolfgang Schuster via ntg-context
2023-03-28  8:43   ` jbf via ntg-context
2023-03-28  8:58     ` Wolfgang Schuster via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).