ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Split extreme tables across tables
@ 2019-07-11  2:31 Thangalin
  2019-07-11  2:32 ` Split extreme tables across pages Thangalin
  0 siblings, 1 reply; 3+ messages in thread
From: Thangalin @ 2019-07-11  2:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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!
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Split extreme tables across pages
  2019-07-11  2:31 Split extreme tables across tables Thangalin
@ 2019-07-11  2:32 ` Thangalin
  2019-07-11  2:41   ` Thangalin
  0 siblings, 1 reply; 3+ messages in thread
From: Thangalin @ 2019-07-11  2:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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!
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Split extreme tables across pages
  2019-07-11  2:32 ` Split extreme tables across pages Thangalin
@ 2019-07-11  2:41   ` Thangalin
  0 siblings, 0 replies; 3+ messages in thread
From: Thangalin @ 2019-07-11  2:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 <thangalin@gmail.com> wrote:
>
> 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!
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2019-07-11  2:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-11  2:31 Split extreme tables across tables Thangalin
2019-07-11  2:32 ` Split extreme tables across pages Thangalin
2019-07-11  2:41   ` Thangalin

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).