From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/25452 Path: news.gmane.org!not-for-mail From: Vit Zyka Newsgroups: gmane.comp.tex.context Subject: Re: [Fwd: after=\page in natural tables] Date: Fri, 20 Jan 2006 21:48:10 +0100 Message-ID: <43D14C8A.3080703@seznam.cz> References: <43CBF9A5.30905@seznam.cz> <43CC0AB4.1070100@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1137790107 2182 80.91.229.2 (20 Jan 2006 20:48:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 Jan 2006 20:48:27 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 20 21:48:23 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1F03BA-0002aX-Jv for gctc-ntg-context-518@m.gmane.org; Fri, 20 Jan 2006 21:48:16 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DB73C1289E; Fri, 20 Jan 2006 21:48:15 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25984-03; Fri, 20 Jan 2006 21:48:12 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4D87C12882; Fri, 20 Jan 2006 21:48:12 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A75DC12882 for ; Fri, 20 Jan 2006 21:48:10 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25907-06 for ; Fri, 20 Jan 2006 21:48:09 +0100 (CET) Original-Received: from smtp.seznam.cz (smtp.seznam.cz [212.80.76.43]) by ronja.ntg.nl (Postfix) with SMTP id A261312867 for ; Fri, 20 Jan 2006 21:48:09 +0100 (CET) Original-Received: (qmail 11116 invoked from network); 20 Jan 2006 20:48:08 -0000 Original-Received: from unknown (HELO ?127.0.0.1?) (vit.zyka@62.240.166.134) by cetus.go.seznam.cz with ESMTPA; 20 Jan 2006 20:48:08 -0000 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <43CC0AB4.1070100@wxs.nl> X-Antivirus: avast! (VPS 0603-1, 16.01.2006), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:25452 Archived-At: 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