Re: [NTG-context] [Fwd: after=\page in natural tables]

2006-01-20 Thread Vit Zyka

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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] [Fwd: after=\page in natural tables]

2006-01-16 Thread Vit Zyka

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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] [Fwd: after=\page in natural tables]

2006-01-16 Thread Hans Hagen

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}

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context