* [Fwd: after=\page in natural tables]
@ 2006-01-16 19:53 Vit Zyka
2006-01-16 21:05 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Vit Zyka @ 2006-01-16 19:53 UTC (permalink / raw)
Hello,
this example from core-ntb.tex
------------------------------------------------
\startbuffer[table3]
\bTABLE[split=yes]
\bTR \bTD left \eTD\bTD right \eTD\eTR
\bTR[after=\page] \bTD left \eTD\bTD right \eTD\eTR
\bTR \bTD left \eTD\bTD right \eTD\eTR
\eTABLE
\stopbuffer
\starttext
\getbuffer[table3]
\stoptext
-----------------------------------------------
does not work. Here is a log from live-wiki:
(./texweb-table3.tmp
! Use of \dododecrement doesn't match its definition.
\doifnextcharelse ...token =#1\def \!!stringa {#2}
\def \!!stringb
{#3}\futur...
\popTBL ...\intablefalse \fi \doglobal \decrement
\TBLlevel \relax
l.5 \eTABLE
?
! Emergency stop.
Vit
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Fwd: after=\page in natural tables]
2006-01-16 19:53 [Fwd: after=\page in natural tables] Vit Zyka
@ 2006-01-16 21:05 ` Hans Hagen
2006-01-20 20:48 ` Vit Zyka
0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2006-01-16 21:05 UTC (permalink / raw)
Vit Zyka wrote:
> Hello,
>
> this example from core-ntb.tex
>
> ------------------------------------------------
> \startbuffer[table3]
> \bTABLE[split=yes]
> \bTR \bTD left \eTD\bTD right \eTD\eTR
> \bTR[after=\page] \bTD left \eTD\bTD right \eTD\eTR
> \bTR \bTD left \eTD\bTD right \eTD\eTR
> \eTABLE
> \stopbuffer
>
> \starttext
> \getbuffer[table3]
> \stoptext
> -----------------------------------------------
>
> does not work. Here is a log from live-wiki:
>
> (./texweb-table3.tmp
> ! Use of \dododecrement doesn't match its definition.
> \doifnextcharelse ...token =#1\def \!!stringa {#2}
> \def \!!stringb
> {#3}\futur...
>
> \popTBL ...\intablefalse \fi \doglobal \decrement
> \TBLlevel \relax
> l.5 \eTABLE
>
> ?
> ! Emergency stop.
nasty one: we need to make \page test-safe
\unexpanded\def\pagebreak
{\dosingleempty\dopagebreak}
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Fwd: after=\page in natural tables]
2006-01-16 21:05 ` Hans Hagen
@ 2006-01-20 20:48 ` Vit Zyka
0 siblings, 0 replies; 3+ messages in thread
From: Vit Zyka @ 2006-01-20 20:48 UTC (permalink / raw)
Hans Hagen wrote:
> Vit Zyka wrote:
>
>> Hello,
>>
>> this example from core-ntb.tex
>>
>> ------------------------------------------------
>> \startbuffer[table3]
>> \bTABLE[split=yes]
>> \bTR \bTD left \eTD\bTD right \eTD\eTR
>> \bTR[after=\page] \bTD left \eTD\bTD right \eTD\eTR
>> \bTR \bTD left \eTD\bTD right \eTD\eTR
>> \eTABLE
>> \stopbuffer
>>
>> \starttext
>> \getbuffer[table3]
>> \stoptext
>> -----------------------------------------------
>>
>> does not work. Here is a log from live-wiki:
>>
>> (./texweb-table3.tmp
>> ! Use of \dododecrement doesn't match its definition.
>> \doifnextcharelse ...token =#1\def \!!stringa {#2}
>> \def \!!stringb
>> {#3}\futur...
>>
>> \popTBL ...\intablefalse \fi \doglobal \decrement
>> \TBLlevel \relax
>> l.5 \eTABLE
>>
>> ?
>> ! Emergency stop.
>
>
> nasty one: we need to make \page test-safe
>
> \unexpanded\def\pagebreak
> {\dosingleempty\dopagebreak}
I seee, OK thanks, it works. And I have to admit Taco was right with
actual page height influences column splitting. I was wrong with my
opinion. I was confused with
1) \adaptlayout[page][height=+3cm]
increases the height only by: min(3cm,footer-height)
(means UPTO footer-height)
2) there is some rounding error if setting height=(fit|middle), see
-----------------------------------------------
\showframe
\setuplayout[
height=fit, % or middle
]
\startbuffer[table]
\bTABLE[split=yes]
\dorecurse{200}{\bTR\bTD cell #1\eTD\eTR}
\eTABLE
\stopbuffer
\starttext
\startcolumns
\getbuffer[table]
\stopcolumns
\stoptext
------------------------------------------------
Vit
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-01-20 20:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-16 19:53 [Fwd: after=\page in natural tables] Vit Zyka
2006-01-16 21:05 ` Hans Hagen
2006-01-20 20:48 ` Vit Zyka
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).