From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/13283 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Newbie wants to make long tables Date: Wed, 17 Sep 2003 00:05:36 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <5.2.0.9.1.20030917000128.01afc148@server-1> References: <5.2.0.9.1.20030915004136.0125d0a8@localhost> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: sea.gmane.org 1063787311 3729 80.91.224.253 (17 Sep 2003 08:28:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 17 Sep 2003 08:28:31 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Wed Sep 17 10:22:16 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19zXZo-0000H8-00 for ; Wed, 17 Sep 2003 10:22:16 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 937EA10B3C; Wed, 17 Sep 2003 10:22:11 +0200 (MEST) Original-Received: from mail.solcon.net (mail.solcon.net [212.45.33.5]) by ref.ntg.nl (Postfix) with ESMTP id 529C610B47 for ; Wed, 17 Sep 2003 09:52:51 +0200 (MEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mail.solcon.net (8.11.6/8.9.3) with ESMTP id h8H7qla21884 for ; Wed, 17 Sep 2003 09:52:47 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id C3EF817BCA; Wed, 17 Sep 2003 09:52:41 +0200 (CEST) Original-Received: from laptop-3.wxs.nl (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 2BCE917C0C for ; Wed, 17 Sep 2003 07:52:36 +0000 (UTC) X-Sender: hagen-mail@server-1 X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Original-To: ntg-context@ntg.nl In-Reply-To: Original-References: <5.2.0.9.1.20030915004136.0125d0a8@localhost> Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:13283 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:13283 At 23:41 15/09/2003 +0100, you wrote: >Hans, >Thank you again for your speedy response. > > \bTABLE[split=yes] > > \bTR \bTD left \eTD\bTD right \eTD\eTR > > \bTR[after=\pagina] \bTD left \eTD\bTD right \eTD\eTR > > \bTR \bTD left \eTD\bTD right \eTD\eTR > > \bTR \bTD left \eTD\bTD right \eTD\eTR > > \bTR \bTD left \eTD\bTD right \eTD\eTR > > \bTR \bTD left \eTD\bTD right \eTD\eTR > > \eTABLE > > > > i'll send you the adapted core-ntb in another mail >Thanks received and installed > > > > Hans >\pagina seems to be synonymous with \page at least \page appears to have the >same effect. I was hoping for [after={\page[bigpreference]}] but that does >not appear to work. [after={\page[yes]}] does the same as \page. It seems to >be just that the preference does not do anything. > >I was also hoping for [split=repeat] but that stops [after=\pagina] from >doing anything. the next solution is quite ugly but seems to work; i wonder what happens in boundary cases \def\splittblbox#1% #1 <> 0/2 {\ifinsidefloat \unvbox#1% \else % spacing between rows gets lost in split \setbox4\vbox {\doifsomething\tbltbltussenwit{\blank[\tbltbltussenwit]}}% \setbox2\vbox {}% \dorecurse\noftblheadlines {\setbox0\vsplit#1 to \lineheight \setbox2\vbox{\unvcopy2\unvcopy0}}% \ifcase\noftblheadlines\else\unvcopy2\fi \donefalse \doloop {\setbox0\vsplit#1 to \lineheight \ifdim\pagegoal<\maxdimen \setbox0\vbox{\unvbox0}% \dimen0\ht0 \advance\dimen0\ht4 \advance\dimen0\pagetotal \ifdim\dimen0>\pagegoal \bgroup \pagina \egroup % make sure that local vars are kept \ifcase\noftblheadlines\else\unvcopy2\fi \fi \fi \ifdone \doifsomething\tbltbltussenwit{\blank[\tbltbltussenwit]}% \fi \unvbox0 % old solution: \allowbreak % start of forced break handling for Nigel King \bgroup \scratchcounter\recurselevel \advance\scratchcounter\noftblheadlines \setupTBLcell{\number\scratchcounter}1 \ifx\@@tblsplitafter\relax\else \scratchcounter\realpageno \@@tblsplitafter \ifnum\scratchcounter<\realpageno \ifcase\noftblheadlines\else\unvcopy2\fi \fi \else \allowbreak \fi \egroup % so far for the repeated head after forced break \ifvoid#1 \exitloop \else \donetrue \fi}% \fi} works ok for : % \bTABLE[split=repeat] % \bTABLEhead % \bTR \bTH lxxxeft \eTH\bTD right \eTD\eTR % \eTABLEhead % \bTABLEbody % \dorecurse{100}{\bTR[after={\pagina[bigpreference]}] \bTD left \eTD\bTD right \eTD\eTR} % \dorecurse{100}{\bTR\bTD left \eTD\bTD right \eTD\eTR} % \eTABLEbody % \eTABLE As said, an ugly, not so wel tested, patch Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------