Bug: Messy results when using "table" in head and multi-page "tables" in text
Dear ConTeXt experts, I have setup a page layout where I use "table" in the page-head for formatting quite a bit of stuff. (The example below is just a simple as can be basic idea, to show the overall effect) Now - as I can't prevent later users of this layout environment - to not use \starttables ... \stoptables I naturally would like for this to work in the text region as well. This works fine and as advertised (well mostly, see below) as long as the table does not spill over to the next page. In which case, things start to look very messy, indeed. From my (simple) point of view it looks like ConTeXt gets confused about which format to use for which table and tries to do them all at the same place or something. Any chance to get this fixed ? Thanks in advance Carsten P.S.: There is an additional bug (also concerning the single page version and not related to having a "table" in the pagehead), which puts in an extra (empty) gap in between the end of the tablebody and the tablefoot when the tablefoot starts with \HL (and there is no \HL at the end of tablebody). Things work when putting the \HL at the end of the tablebody, but then no \HL will be put on top of the foot for any intermediate pages of the table, which is certainly not what one would usually want in this case. Anyway, here a simple version of this to demonstrate the effect(s) \setuppagenumbering[location=] \setupheadertexts[\setups{pagehead}][][\setups{pagehead}][] \startsetups[pagehead] \SetTableToWidth{\makeupwidth} \starttable[|p(40mm)|p(60mm)|p(40mm)|] \HL \VL \leftaligned{left} \VL \midaligned{middle} \VL \rightaligned{right} \VL\SR \HL \stoptable \stopsetups \starttext \start \SetTableToWidth{\makeupwidth} \setuptables[split=repeat] \starttablehead \HL \VL Head \VL\SR \HL \stoptablehead \starttabletail \HL % This results in an additional bug, % i.e. an extra / unwanted gap \VL Foot \VL\SR \HL \stoptabletail \starttables[|p(.95\textwidth)|] \VL \input knuth \VL\FR %\dorecurse{1}{\VL \input tufte \VL\MR} \dorecurse{10}{\VL \input tufte \VL\MR} \VL \input knuth \VL\LR % \HL % putting \HL here does not introduce % that unwanted gap ...?!? \stoptables \stop \stoptext
On Sun, 20 Jan 2008 12:37:13 +0100
Carsten Fechtmann
Dear ConTeXt experts,
I have setup a page layout where I use "table" in the page-head for formatting quite a bit of stuff. (The example below is just a simple as can be basic idea, to show the overall effect) Now - as I can't prevent later users of this layout environment - to not use \starttables ... \stoptables I naturally would like for this to work in the text region as well. This works fine and as advertised (well mostly, see below) as long as the table does not spill over to the next page. In which case, things start to look very messy, indeed.
From my (simple) point of view it looks like ConTeXt gets confused about which format to use for which table and tries to do them all at the same place or something.
Any chance to get this fixed ?
Use the following setup for the header, it use natural tables. \startsetups pagehead \bTABLE[option=stretch,strut=no,offset=.5em] \bTR \bTD[align={right,lohi},width=4cm] left \eTD \bTD[align={middle,lohi},width=6cm] middle \eTD \bTD[align={left,lohi},width=4cm] right \eTD \eTR \eTABLE \stopsetups
Thanks in advance Carsten
P.S.: There is an additional bug (also concerning the single page version and not related to having a "table" in the pagehead), which puts in an extra (empty) gap in between the end of the tablebody and the tablefoot when the tablefoot starts with \HL (and there is no \HL at the end of tablebody). Things work when putting the \HL at the end of the tablebody, but then no \HL will be put on top of the foot for any intermediate pages of the table, which is certainly not what one would usually want in this case.
I have no solution for this.
Anyway, here a simple version of this to demonstrate the effect(s)
\setuppagenumbering[location=] \setupheadertexts[\setups{pagehead}][][\setups{pagehead}][] \startsetups[pagehead] \SetTableToWidth{\makeupwidth} \starttable[|p(40mm)|p(60mm)|p(40mm)|] \HL \VL \leftaligned{left} \VL \midaligned{middle} \VL \rightaligned{right} \VL\SR \HL \stoptable \stopsetups
\starttext
\start \SetTableToWidth{\makeupwidth} \setuptables[split=repeat] \starttablehead \HL \VL Head \VL\SR \HL \stoptablehead \starttabletail \HL % This results in an additional bug, % i.e. an extra / unwanted gap \VL Foot \VL\SR \HL \stoptabletail \starttables[|p(.95\textwidth)|] \VL \input knuth \VL\FR %\dorecurse{1}{\VL \input tufte \VL\MR} \dorecurse{10}{\VL \input tufte \VL\MR} \VL \input knuth \VL\LR % \HL % putting \HL here does not introduce % that unwanted gap ...?!? \stoptables \stop
\stoptext
Wolfgang
Dear Wolfgang, I tried that too already, but unfortunately I run into the same problem: That is, if I use the natural tables in the header, I can't use them for multi-page tables in the text, as again the results ain't pretty, to say the least. Here the ConTeXt to show what happens in that case (and using your suggestion for the page-head with natural tables) \setuppagenumbering[location=] \setupheadertexts[\setups{pagehead}][][\setups{pagehead}][] \startsetups[pagehead] \bTABLE[option=stretch,strut=no,offset=.5em] \bTR \bTD[align={right,lohi},width=4cm] left \eTD \bTD[align={middle,lohi},width=6cm] middle \eTD \bTD[align={left,lohi},width=4cm] right \eTD \eTR \eTABLE \stopsetups \starttext \bTABLE[split=repeat,option=stretch,strut=no,offset=.5em] \bTABLEhead[rulethickness=1pt] \bTR \bTH[align={middle,lohi},width=6cm] head \eTH \eTR \eTABLEhead \bTABLEbody% %\dorecurse{1}{ % works \dorecurse{10}{ % works NOT \bTR \bTD {\input knuth \par} \eTD \eTR } \eTABLEbody \bTABLEfoot \bTR \bTH footer \eTH \eTR \eTABLEfoot \eTABLE \stoptext The thing is, I rather tell the users of this page-layout NOT to use the \starttables ... \stoptables for multi-page tables, but rely on the natural tables for those (which work nicely, even though I _really_ would like to have a dedicated footer for each page here and not just one for the last page! Which by the way is something one doesn't need a dedicated command for, as one could _always_ just place that part at the end of the body part, as that will be then at the end of the table, i.e. the right place, no matter how many pages the table has.) However, given, that \starttables ... \stoptables doesn't give me the correct footer in my case anyway, I rather have one type of table that is quite a bit easier for me and my colleagues to use and adapt for the multi-page tables, i.e. the 'natural' ones, and therefore keep using table in the header. But yes, thanks for the suggestion, unfortunately, TABLE seems to rely on the same sort of buffer / storage / whatever mechanism, to do it's multi-page magic.... And that just doesn't work with having the same table-type in the header, too. (This is probably also true in case of the footer...) Overall, things do work, as long as one does use the other type of table or tables / TABLE in either header or text, but it works NOT when you use the same in both... Not quite sure, what's the reason for that or (and more importantly) what can be done about it With best regards Carsten P.S.: What is interesting is that on the last pages of a multi-page table things do become sorted out again in either case and everything looks more or less as it should (i.e. like in the single-page table) Am 20.01.2008 um 14:10 schrieb Wolfgang Schuster:
On Sun, 20 Jan 2008 12:37:13 +0100 Carsten Fechtmann
wrote: Dear ConTeXt experts,
I have setup a page layout where I use "table" in the page-head for formatting quite a bit of stuff. (The example below is just a simple as can be basic idea, to show the overall effect) Now - as I can't prevent later users of this layout environment - to not use \starttables ... \stoptables I naturally would like for this to work in the text region as well. This works fine and as advertised (well mostly, see below) as long as the table does not spill over to the next page. In which case, things start to look very messy, indeed.
From my (simple) point of view it looks like ConTeXt gets confused about which format to use for which table and tries to do them all at the same place or something.
Any chance to get this fixed ?
Use the following setup for the header, it use natural tables.
\startsetups pagehead
\bTABLE[option=stretch,strut=no,offset=.5em] \bTR \bTD[align={right,lohi},width=4cm] left \eTD \bTD[align={middle,lohi},width=6cm] middle \eTD \bTD[align={left,lohi},width=4cm] right \eTD \eTR \eTABLE
\stopsetups
Thanks in advance Carsten
P.S.: There is an additional bug (also concerning the single page version and not related to having a "table" in the pagehead), which puts in an extra (empty) gap in between the end of the tablebody and the tablefoot when the tablefoot starts with \HL (and there is no \HL at the end of tablebody). Things work when putting the \HL at the end of the tablebody, but then no \HL will be put on top of the foot for any intermediate pages of the table, which is certainly not what one would usually want in this case.
I have no solution for this.
Anyway, here a simple version of this to demonstrate the effect(s)
\setuppagenumbering[location=] \setupheadertexts[\setups{pagehead}][][\setups{pagehead}][] \startsetups[pagehead] \SetTableToWidth{\makeupwidth} \starttable[|p(40mm)|p(60mm)|p(40mm)|] \HL \VL \leftaligned{left} \VL \midaligned{middle} \VL \rightaligned{right} \VL\SR \HL \stoptable \stopsetups
\starttext
\start \SetTableToWidth{\makeupwidth} \setuptables[split=repeat] \starttablehead \HL \VL Head \VL\SR \HL \stoptablehead \starttabletail \HL % This results in an additional bug, % i.e. an extra / unwanted gap \VL Foot \VL\SR \HL \stoptabletail \starttables[|p(.95\textwidth)|] \VL \input knuth \VL\FR %\dorecurse{1}{\VL \input tufte \VL\MR} \dorecurse{10}{\VL \input tufte \VL\MR} \VL \input knuth \VL\LR % \HL % putting \HL here does not introduce % that unwanted gap ...?!? \stoptables \stop
\stoptext
Wolfgang ___________________________________________________________________________________ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
On Sun, 20 Jan 2008 16:22:10 +0100
Carsten Fechtmann
Dear Wolfgang,
I tried that too already, but unfortunately I run into the same problem: That is, if I use the natural tables in the header, I can't use them for multi-page tables in the text, as again the results ain't pretty, to say the least.
Here the ConTeXt to show what happens in that case (and using your suggestion for the page-head with natural tables)
\setuppagenumbering[location=] \setupheadertexts[\setups{pagehead}][][\setups{pagehead}][] \startsetups[pagehead] \bTABLE[option=stretch,strut=no,offset=.5em] \bTR \bTD[align={right,lohi},width=4cm] left \eTD \bTD[align={middle,lohi},width=6cm] middle \eTD \bTD[align={left,lohi},width=4cm] right \eTD \eTR \eTABLE \stopsetups
next solution, framed: \startsetups[pagehead] \setupframed[strut=no,offset=.5em,height=1cm] \dontleavehmode \framed[align={right,lohi},width=\dimexpr(\textwidth/7)*2+\linewidth \relax]{left} \hskip-\linewidth \framed[align={middle,lohi},width=\dimexpr(\textwidth/7)*3\relax] {middle} \hskip-\linewidth \framed[align={left,lohi},width=\dimexpr(\textwidth/7)*2+\linewidth \relax]{right} \stopsetups
\starttext
\bTABLE[split=repeat,option=stretch,strut=no,offset=.5em] \bTABLEhead[rulethickness=1pt] \bTR \bTH[align={middle,lohi},width=6cm] head \eTH \eTR \eTABLEhead \bTABLEbody% %\dorecurse{1}{ % works \dorecurse{10}{ % works NOT \bTR \bTD {\input knuth \par} \eTD \eTR } \eTABLEbody \bTABLEfoot \bTR \bTH footer \eTH \eTR \eTABLEfoot \eTABLE
\stoptext
The thing is, I rather tell the users of this page-layout NOT to use the \starttables ... \stoptables for multi-page tables, but rely on the natural tables for those (which work nicely, even though I _really_ would like to have a dedicated footer for each page here and not just one for the last page! Which by the way is something one doesn't need a dedicated command for, as one could _always_ just place that part at the end of the body part, as that will be then at the end of the table, i.e. the right place, no matter how many pages the table has.) However, given, that \starttables ... \stoptables doesn't give me the correct footer in my case anyway, I rather have one type of table that is quite a bit easier for me and my colleagues to use and adapt for the multi-page tables, i.e. the 'natural' ones, and therefore keep using table in the header.
This is the wishlist from us users since a few years.
But yes, thanks for the suggestion, unfortunately, TABLE seems to rely on the same sort of buffer / storage / whatever mechanism, to do it's multi-page magic....
The mchism works with \vsplit
And that just doesn't work with having the same table-type in the header, too. (This is probably also true in case of the footer...)
Overall, things do work, as long as one does use the other type of table or tables / TABLE in either header or text, but it works NOT when you use the same in both...
Not quite sure, what's the reason for that or (and more importantly) what can be done about it
With best regards Carsten
P.S.: What is interesting is that on the last pages of a multi-page table things do become sorted out again in either case and everything looks more or less as it should (i.e. like in the single-page table)
Wolfgang
Dear Wolfgang, first, I _really_ appreciate your effort. Unfortunately, for me \framed is not likely to do the job, as the header is a bit more complicated in real-life (I told you so ;-). And yes, actually, using framed had been my very first approach as the original LaTeX layout had been using \begin{picture} ... \end{picture}. Therefore, I thought at that time going the \framed route should do the trick.... Here is an (still simplified) example why I don't think it would \setuplayout[% width=160mm, topspace=10mm, header=35mm, headerdistance=5mm, ] \setuppagenumbering[location=] \setupheadertexts[\setups{pagehead}][][\setups{pagehead}][] \startsetups[pagehead] \setupframed[offset=3pt] \setupcombinations[distance=-\linewidth,width=160mm,align=no] \dontleavehmode \startcombination[3] {\framed[align={right,lohi},height=27mm,width=35mm\relax] { LOGO } } {\framed[align={right,lohi},width=35mm\relax] {left} } {\framed[align={middle,lohi},height=27mm,width=80mm\relax] {titel } } {\framed[align={middle,lohi},width=80mm\relax] {middle} } {\framed[align={right,lohi},height=27mm,width=45mm\relax] {other stuff} } {\framed[align={middle,lohi},width=45mm\relax] {Page:~\pagenumber\ of \lastpage}} \stopcombination \stopsetups \starttext \input knuth \stoptext Again, as I am still new to ConTeXt, there might be a way to get rid of the spaces between the frames, somehow. But I still would -- in the real version -- also need some extra alignments within some cells and in short this gets just more ugly with every further step. I also had been thinking about going the "metafun" route. However, I do need a simple, out of the box solution that even the greenest TeX newbie could use and setup on all sorts of OS's ... In short, I fear that is also not going to be a choice at the moment. Open to suggestions Yours Carsten Am 20.01.2008 um 17:18 schrieb Wolfgang Schuster:
next solution, framed:
\startsetups[pagehead] \setupframed[strut=no,offset=.5em,height=1cm] \dontleavehmode \framed[align={right,lohi},width=\dimexpr(\textwidth/7)*2+\linewidth \relax]{left} \hskip-\linewidth \framed[align={middle,lohi},width=\dimexpr(\textwidth/7)*3\relax] {middle} \hskip-\linewidth \framed[align={left,lohi},width=\dimexpr(\textwidth/7)*2+\linewidth \relax]{right} \stopsetups
On Jan 20, 2008 8:07 PM, Carsten Fechtmann
Dear Wolfgang,
first, I _really_ appreciate your effort. Unfortunately, for me \framed is not likely to do the job, as the header is a bit more complicated in real-life (I told you so ;-). And yes, actually, using framed had been my very first approach as the original LaTeX layout had been using \begin{picture} ... \end{picture}. Therefore, I thought at that time going the \framed route should do the trick....
Here is an (still simplified) example why I don't think it would
\setuplayout[% width=160mm, topspace=10mm, header=35mm, headerdistance=5mm, ] \setuppagenumbering[location=] \setupheadertexts[\setups{pagehead}][][\setups{pagehead}][]
\startsetups[pagehead] \setupframed[offset=3pt] \setupcombinations[distance=-\linewidth,width=160mm,align=no] \dontleavehmode \startcombination[3] {\framed[align={right,lohi},height=27mm,width=35mm\relax] { LOGO } } {\framed[align={right,lohi},width=35mm\relax] {left} } {\framed[align={middle,lohi},height=27mm,width=80mm\relax] {titel } } {\framed[align={middle,lohi},width=80mm\relax] {middle} } {\framed[align={right,lohi},height=27mm,width=45mm\relax] {other stuff} } {\framed[align={middle,lohi},width=45mm\relax] {Page:~\pagenumber\ of \lastpage}} \stopcombination \stopsetups
\starttext \input knuth \stoptext
Again, as I am still new to ConTeXt, there might be a way to get rid of the spaces between the frames, somehow. But I still would -- in the real version -- also need some extra alignments within some cells and in short this gets just more ugly with every further step.
I also had been thinking about going the "metafun" route. However, I do need a simple, out of the box solution that even the greenest TeX newbie could use and setup on all sorts of OS's ... In short, I fear that is also not going to be a choice at the moment.
Hi Carsten, I have another solution for you, you could use a layer to place the header on every page. \setuppagenumbering[location=] \startsetups[pagehead] \bTABLE[offset=3pt] \bTR \bTD[align={right,lohi},height=27mm,width=35mm] LOGO \eTD \bTD[align={middle,lohi},height=27mm,width=80mm] titel \eTD \bTD[align={right,lohi},height=27mm,width=45mm] other stuff \eTD \eTR \bTR \bTD[align={right,lohi},width=35mm] left \eTD \bTD[align={middle,lohi},width=80mm] middle \eTD \bTD[align={middle,lohi},width=45mm] Page:~\pagenumber\ of \lastpage \eTD \eTR \eTABLE \stopsetups \definelayer [pagehead] [width=\paperwidth, height=\paperheight, state=repeat] \setlayer [pagehead] [hoffset=\backspace, voffset=\topspace] {\setups{pagehead}} \setupbackgrounds[page][background=pagehead] Greetings Wolfgang
Hi Carsten, I'm not quite sure if this is a help (was just playing around with it while watching snooker). I had to clear|redefine the table head|tail in the page head (or is this intended?). There are still some unwanted vertical offsets above|below the page head. If you use a hbox instead of a vbox for the page head you will see the difference on the last page. So this space is introduced by the splitted table somehow. Don't ask me for details ;) Best wishes, Peter Carsten Fechtmann schrieb:
Dear ConTeXt experts,
I have setup a page layout where I use "table" in the page-head for formatting quite a bit of stuff. (The example below is just a simple as can be basic idea, to show the overall effect) Now - as I can't prevent later users of this layout environment - to not use \starttables ... \stoptables I naturally would like for this to work in the text region as well. This works fine and as advertised (well mostly, see below) as long as the table does not spill over to the next page. In which case, things start to look very messy, indeed.
From my (simple) point of view it looks like ConTeXt gets confused about which format to use for which table and tries to do them all at the same place or something.
Any chance to get this fixed ?
Thanks in advance Carsten
P.S.: There is an additional bug (also concerning the single page version and not related to having a "table" in the pagehead), which puts in an extra (empty) gap in between the end of the tablebody and the tablefoot when the tablefoot starts with \HL (and there is no \HL at the end of tablebody). Things work when putting the \HL at the end of the tablebody, but then no \HL will be put on top of the foot for any intermediate pages of the table, which is certainly not what one would usually want in this case.
Anyway, here a simple version of this to demonstrate the effect(s)
\setuppagenumbering[location=] \setupheadertexts[\setups{pagehead}][][\setups{pagehead}][] \startsetups[pagehead] \SetTableToWidth{\makeupwidth} \starttable[|p(40mm)|p(60mm)|p(40mm)|] \HL \VL \leftaligned{left} \VL \midaligned{middle} \VL \rightaligned{right} \VL\SR \HL \stoptable \stopsetups
\starttext
\start \SetTableToWidth{\makeupwidth} \setuptables[split=repeat] \starttablehead \HL \VL Head \VL\SR \HL \stoptablehead \starttabletail \HL % This results in an additional bug, % i.e. an extra / unwanted gap \VL Foot \VL\SR \HL \stoptabletail \starttables[|p(.95\textwidth)|] \VL \input knuth \VL\FR %\dorecurse{1}{\VL \input tufte \VL\MR} \dorecurse{10}{\VL \input tufte \VL\MR} \VL \input knuth \VL\LR % \HL % putting \HL here does not introduce % that unwanted gap ...?!? \stoptables \stop
\stoptext
___________________________________________________________________________________ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Peter Rolf schrieb:
Hi Carsten,
I'm not quite sure if this is a help (was just playing around with it while watching snooker).
I had to clear|redefine the table head|tail in the page head (or is this intended?). There are still some unwanted vertical offsets above|below the page head. If you use a hbox instead of a vbox for the page head you will see the difference on the last page. So this space is introduced by the splitted table somehow. Don't ask me for details ;)
Best wishes,
Peter
oeps... some details were missing :D \setupcolors[state=start] \setuppagenumbering[location=] \setupheadertexts[{\setups[pagehead]}] [] [{\setups[pagehead]}] [] \startsetups[pagehead] \vbox\bgroup \starttablehead\stoptablehead \starttabletail\stoptabletail \setuptables[rulecolor=blue]% \SetTableToWidth\makeupwidth \starttable[|p(40mm)|p(60mm)|p(40mm)|] % \TABLEnoalign{\vskip-1.75pt} % ugly \HL \VL \leftaligned{left} \VL \midaligned{middle} \VL \rightaligned{right} \VL\SR \HL \stoptable \egroup \stopsetups \starttext \showframe \showskips \start \SetTableToWidth\makeupwidth \setuptables[split=repeat] \starttablehead \HL \VL Head \VL\SR \HL \stoptablehead \starttabletail \HL % This results in an additional bug, % i.e. an extra / unwanted gap \VL Foot \VL\SR \HL \stoptabletail \starttables[|p(.95\textwidth)|] \VL \input knuth \VL\FR %\dorecurse{1}{\VL \input tufte \VL\MR} \dorecurse{10}{\VL \input tufte \VL\MR} \VL \input knuth \VL\LR % \HL % putting \HL here does not introduce % that unwanted gap ...?!? \stoptables \stop \stoptext
Dear Peter and Wolfgang, sorry for taking a bit longer to come back to you and your suggestions here. But I got some strange results and did some further testing and trying on all this. What got me a bit, was/is that your suggestion below works as is, but fails with only slightly more complicated tables. Specifically, in the case where there is more than one row. Furthermore, one can't leave out \starttablehead\stoptablehead \starttabletail\stoptabletail even in the case of just using the "table" environment, instead of "tables". Don't ask me why. In short, Peter, while your solution works as is, I would not recommend it for anything more complicated then the example below, and in that case one is probably better of using the framed solution from Wolfgang. Either that, or using the earlier idea with overlay from Wolfgang
\definelayer [pagehead] [width=\paperwidth, height=\paperheight, state=repeat]
\setlayer [pagehead] [hoffset=\backspace, voffset=\topspace] {\setups{pagehead}}
\setupbackgrounds[page][background=pagehead]
This works just fine. THANKS A LOT for this. :-D I had been playing around with overlays at the very beginning of my ConTeXt tries and had soon come to the conclusion to do some more basic stuff first and ... somehow never got back around to it up till now. However, it is the way to go here, as it does indeed separate - somehow - the inner workings of the table structures enough so that ConTeXt is no longer getting confused about them anymore. In short, this works as advertised. Cheers Carsten P.S.: Still would be nice to have this issue fixed. P.S.S.: It does not help with the second bug within the "tables" environment, i.e. the starting \HL line in the "tabletail" introducing an extra and unwanted! gap in the table. Ugly workaround for me at the moment is drawing a not completely line by using \framed[width=broad,topframe=on]{} above the text. While slightly better than either no line or a line with said gap, it is not exactly what I had in mind here, either... Am 21.01.2008 um 12:45 schrieb Peter Rolf:
Peter Rolf schrieb:
Hi Carsten, I'm not quite sure if this is a help (was just playing around with it while watching snooker). I had to clear|redefine the table head|tail in the page head (or is this intended?). There are still some unwanted vertical offsets above|below the page head. If you use a hbox instead of a vbox for the page head you will see the difference on the last page. So this space is introduced by the splitted table somehow. Don't ask me for details ;) Best wishes, Peter
oeps... some details were missing :D \setupcolors[state=start]
\setuppagenumbering[location=] \setupheadertexts[{\setups[pagehead]}] [] [{\setups[pagehead]}] []
\startsetups[pagehead] \vbox\bgroup \starttablehead\stoptablehead \starttabletail\stoptabletail \setuptables[rulecolor=blue]% \SetTableToWidth\makeupwidth \starttable[|p(40mm)|p(60mm)|p(40mm)|] % \TABLEnoalign{\vskip-1.75pt} % ugly \HL \VL \leftaligned{left} \VL \midaligned{middle} \VL \rightaligned{right} \VL\SR \HL \stoptable \egroup \stopsetups
\starttext
\showframe \showskips
\start
\SetTableToWidth\makeupwidth \setuptables[split=repeat]
\starttablehead \HL \VL Head \VL\SR \HL \stoptablehead
\starttabletail \HL % This results in an additional bug, % i.e. an extra / unwanted gap \VL Foot \VL\SR \HL \stoptabletail
\starttables[|p(.95\textwidth)|] \VL \input knuth \VL\FR %\dorecurse{1}{\VL \input tufte \VL\MR} \dorecurse{10}{\VL \input tufte \VL\MR} \VL \input knuth \VL\LR % \HL % putting \HL here does not introduce % that unwanted gap ...?!? \stoptables
\stop
\stoptext
participants (3)
-
Carsten Fechtmann
-
Peter Rolf
-
Wolfgang Schuster