Vertically stretched split table
Dear list, if I specify "option=height" with an xtable, a single-page table is stretched vertically to fill the whole textheight. However, I need this feature with a multipage table. In the following example, the table on the first page should be stretched, but isn't: \showframe \starttext \startxtable [option=height, split=yes] \startxrow \startxcell \input knuth \stopxcell \startxcell \input ward \stopxcell \stopxrow \startxrow \startxcell \input zapf \stopxcell \startxcell \input ward \stopxcell \stopxrow \startxrow \startxcell \input knuth \stopxcell \startxcell \input ward \stopxcell \stopxrow \stopxtable \stoptext The table parts on all the pages but the last page should be stretched vertically. If this isn't possible with xtable, is it possible in another way? I hope it is possible without splitting the table by hand, because it is a big project with several hundred table pages, and splitting by hand would make changes (additional rows) really hard. Thanks for your help and kind regards, Joshua Krämer
On 4/7/2014 2:56 PM, Joshua Krämer wrote:
Dear list,
if I specify "option=height" with an xtable, a single-page table is stretched vertically to fill the whole textheight. However, I need this feature with a multipage table. In the following example, the table on the first page should be stretched, but isn't:
\showframe \starttext \startxtable [option=height, split=yes] \startxrow \startxcell \input knuth \stopxcell \startxcell \input ward \stopxcell \stopxrow \startxrow \startxcell \input zapf \stopxcell \startxcell \input ward \stopxcell \stopxrow \startxrow \startxcell \input knuth \stopxcell \startxcell \input ward \stopxcell \stopxrow \stopxtable \stoptext
The table parts on all the pages but the last page should be stretched vertically. If this isn't possible with xtable, is it possible in another way? I hope it is possible without splitting the table by
the height stretch is a special case and not interfaced with the splitter (would demand multipass whihc in turn could lead to oscillation)
hand, because it is a big project with several hundred table pages, and splitting by hand would make changes (additional rows) really hard.
just do that in the final version only ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 2014-04-07, 23:18, Hans Hagen wrote:
the height stretch is a special case and not interfaced with the splitter (would demand multipass whihc in turn could lead to oscillation)
Thanks for the information, I've already feared it would be like that. I have thus created a custom solution using frames, hrules and vfills in between. So far, it works well. (A small problem is wrong hrule spacing at the beginning of the page, and start/stoplinecorrection leads to wrong vfill-spacing. If I can't sort it out, I'll write another message.) Kind regards Joshua Krämer
Dear list, at first, I thought the following code (simplified) with frames, hrules and vfills between them would work to typeset my table. However, I have now realized that sometimes a pagebreak occurs before the final (invisible) hrule, and then there's no vfill at the bottom of the page. See this example: \setuplayout [backspace=10mm, width=middle, topspace=10mm, height=middle, header=0mm, headerdistance=0mm, footer=1mm, footerdistance=0mm] \setupframed[frame=on,framecolor=green,location=middle,align=right] \define [2] \Tabline { \hrule \page[no] \vfill \dontleavehmode\framed[width=60mm]{#1}\framed[width=100mm]{#2} \vfill \hrule height 0pt \par\page[bigpreference] } \setupbackgrounds[footer][text][topframe=on] \starttext \Tabline{\dorecurse{100}{word }}{\dorecurse{150}{word }} \Tabline{\dorecurse{170}{word }}{\dorecurse{100}{word }} \stoptext How can I make sure a pagebreak occurs only between the Tablines? The Tabline on the 1st page should appear centered, too. "\page[no]" before "\hrule height 0pt" has no effect. Thank you and kind regards Joshua Krämer
Dear list, if somebody cares, the following solution works for me: \hrule \penalty10000 \vfill \penalty10000 \dontleavehmode\framed{...} \penalty10000 \vfill \penalty10000 \hrule height 0pt \par\penalty-5000 Joshua
participants (2)
-
Hans Hagen
-
Joshua Krämer