From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37091 Path: news.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: Re: natural table splitting problems Date: Tue, 30 Oct 2007 14:50:56 +0100 Message-ID: <472736C0.3060400@gmx.net> References: <4726F9AB.5080002@gmx.net> <6703815B292B664DBAEC55EE3192386A20BC60@poseidon.in.dynetics.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1193757492 9622 80.91.229.12 (30 Oct 2007 15:18:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Oct 2007 15:18:12 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 30 16:18:13 2007 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 lo.gmane.org with esmtp (Exim 4.50) id 1Imsqx-0005UK-Ep for gctc-ntg-context-518@m.gmane.org; Tue, 30 Oct 2007 16:18:03 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9BA1F1FAB8; Tue, 30 Oct 2007 16:17:52 +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 14052-01-2; Tue, 30 Oct 2007 16:17:31 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 704711FC61; Tue, 30 Oct 2007 14:51:09 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 186A01FC5A for ; Tue, 30 Oct 2007 14:51:07 +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 31961-10-11 for ; Tue, 30 Oct 2007 14:50:57 +0100 (CET) Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by ronja.ntg.nl (Postfix) with SMTP id 42B111FB0E for ; Tue, 30 Oct 2007 14:50:57 +0100 (CET) Original-Received: (qmail invoked by alias); 30 Oct 2007 13:50:56 -0000 Original-Received: from i577AE613.versanet.de (EHLO [192.168.1.3]) [87.122.230.19] by mail.gmx.net (mp003) with SMTP; 30 Oct 2007 14:50:56 +0100 X-Authenticated: #24293357 X-Provags-ID: V01U2FsdGVkX1+yhQ1un92yfcW8VJ4e3tA5DNcuc9nWjzdP1QH1bb 4CgzsufWJmtF75 User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) In-Reply-To: <6703815B292B664DBAEC55EE3192386A20BC60@poseidon.in.dynetics.com> X-Enigmail-Version: 0.95.5 X-Y-GMX-Trusted: 0 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:37091 Santy, Michael schrieb: > > Thanks Peter for the pointer to the multipage table in the wiki. I > don't know how I overlooked that example. However, I was still able to > duplicate the problem with this sample table by including a page full of > text before the table (see below). > > If the dorecurse is set to 62 or 63, the contents slightly overflow the > first page text area and only the first row of the table is rendered on > the second page. If dorecurse on blah is performed 61 or 64 times, the > table is rendered properly. > > Any thoughts? > The same as in my first reply. Look at the first page with the text only. There isn't a space behind the sentence(s) and TeX can't break the paragraph (text expands it's lower border). This also breaks the splitting of the table, as it is (partly) on the same page. So you should better use the example texts that are shipped with ConText. Look at your tex\texmf-local\tex\context\sample directory for the file names. For example use something like \dorecurse{3}{\input knuth\relax} or a combination \dorecurse{2}{\input knuth\par \input zapf\par \input bryson\par\blank} If you like you can learn more about TeX's line breaking algorithm, so that you can create better (working) example texts. Search for 'texbytopic' and you will find an excellent (and free) book about TeX. Good luck for your further work with ConTeXt, Peter > Cheers, > Mike > > \starttext > > \setupcolors[state=start] > > \showframe > > \def\blah{The quick brown fox jumped over the lazy stupid dog.} > \dorecurse{62}{\blah} > > % setup for all cells > \setupTABLE[r][each][style=\tfx\it, align=center] > > % setup table head > \setupTABLE[r][first] > [background=color, > backgroundcolor=yellow] > % setup table footer > \setupTABLE[r][last] > [style=bold, > background=color, > backgroundcolor=green] > > \bTABLE[split=repeat,option=stretch]% head on every page, stretch columns > % > % IMPORTANT: use \bTH ... \eTH to enclose the head|next cells > \bTABLEhead > \bTR > \bTH head1 \eTH > \bTH head2 \eTH > \bTH head3 \eTH > \eTR > \eTABLEhead > % > \bTABLEnext % setup for next table head > \bTR [background=color,backgroundcolor=cyan] > \bTH next1 \eTH > \bTH next2 \eTH > \bTH next3 \eTH > \eTR > \eTABLEnext > % > % the table body (main part) > % > \bTABLEbody > % > \dorecurse{100}{% 100 rows > \bTR > \bTC body body body body body \eTC > \bTC body body body body body \eTC > \bTC body body body body body \eTC > \eTR > }% > % > \eTABLEbody > % > % the table foot > % > \bTABLEfoot > \bTR > \bTC foot1 \eTC > \bTC foot2 \eTC > \bTC foot3 \eTC > \eTR > \eTABLEfoot > % > \eTABLE > > \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 > ___________________________________________________________________________________ ___________________________________________________________________________________ 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 ___________________________________________________________________________________