From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/28640 Path: news.gmane.org!not-for-mail From: Johannes Graumann Newsgroups: gmane.comp.tex.context Subject: Re: splitting tables Date: Sat, 17 Jun 2006 14:15:11 -0700 Organization: Die Guten Message-ID: References: <44931F38.8030000@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1150579074 14993 80.91.229.2 (17 Jun 2006 21:17:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 17 Jun 2006 21:17:54 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Jun 17 23:17:52 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 1FriAu-0006QS-8n for gctc-ntg-context-518@m.gmane.org; Sat, 17 Jun 2006 23:17:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 67E4412819; Sat, 17 Jun 2006 23:17:48 +0200 (CEST) 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 08025-04; Sat, 17 Jun 2006 23:17:37 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D8A4A127D0; Sat, 17 Jun 2006 23:17:36 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D0D1C127D0 for ; Sat, 17 Jun 2006 23:17:33 +0200 (CEST) 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 03120-06-2 for ; Sat, 17 Jun 2006 23:17:30 +0200 (CEST) Original-Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by ronja.ntg.nl (Postfix) with SMTP id 108DF127C8 for ; Sat, 17 Jun 2006 23:17:29 +0200 (CEST) Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FriAU-0006Lu-9L for ntg-context@ntg.nl; Sat, 17 Jun 2006 23:17:22 +0200 Original-Received: from iluvatar.caltech.edu ([131.215.35.27]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 17 Jun 2006 23:17:22 +0200 Original-Received: from johannes_graumann by iluvatar.caltech.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 17 Jun 2006 23:17:22 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ntg-context@ntg.nl Original-Lines: 106 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: iluvatar.caltech.edu User-Agent: KNode/0.10.2 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:28640 Archived-At: Hello, I'd like to explicitly thank Hans for these changes to the table splitting, which is giving my thesis the last touches. Thanks you for your openness towards ConTeXt's users - even the more obnoxiously insisting ones ;0) Joh Hans Hagen wrote: > Hi, > > I will upload an alpha release with a cleaned up table (float) split > mechanism. The splitter works for all three table types, either or not > in floats with repeated head (and tail) sections, optionally with > automatic (may become default) caption height detection etc. It works ok > on some simple test files, but I have no time to test more obscure > situations. > > I'm not that sure if everything is downward compatible, but splitting is > always tricky (and demanded some intervention) anyway. So, if you are > using this kind of functionality, go ahead, download and test .. > > \setupTABLE[split=repeat] > > \input tufte \endgraf > \splitfloat[lines=11] > {\placetable{\dorecurse{10}{test\recurselevel\endgraf}}} > {\bTABLE\dorecurse{100}{\bTR \bTD test \eTD \eTR}\eTABLE} > \input tufte \page > > \input tufte \endgraf > \splitfloat[lines=0] > {} > {\bTABLE\dorecurse{100}{\bTR \bTD test \eTD \eTR}\eTABLE} > \input tufte \endgraf \page > > \input tufte \endgraf > \bTABLE\dorecurse{100}{\bTR \bTD test \eTD \eTR}\eTABLE > \input tufte \page > > \setuptabulate[split=yes] > > \input tufte \endgraf > \splitfloat[lines=11] > {\placetable{\dorecurse{10}{test\recurselevel\endgraf}}} > {\starttabulate\dorecurse{200}{\NC test \NC test \NC \NR}\stoptabulate} > \input tufte \page > > \input tufte \endgraf > \splitfloat[lines=0] > {} > {\starttabulate\dorecurse{200}{\NC test \NC test \NC \NR}\stoptabulate} > \input tufte \page > > \input tufte \endgraf > \starttabulate\dorecurse{200}{\NC test \NC test \NC \NR}\stoptabulate > \input tufte \page > > \setuptables[split=yes] > > \newtoks\TestToks > > \TestToks\emptytoks > \appendtoks\starttablehead\to\TestToks > \dorecurse{3}{\appendtoks\VL head \VL head \VL \SR\to\TestToks} > \appendtoks\stoptablehead\to\TestToks > \appendtoks\starttabletail\to\TestToks > \dorecurse{3}{\appendtoks\VL tail \VL tail \VL \SR\to\TestToks} > \appendtoks\stoptabletail\to\TestToks > \appendtoks\starttables[|c|c|]\to\TestToks > \dorecurse{100}{\appendtoks\VL test \VL test \VL \SR\to\TestToks} > \appendtoks\stoptables\to\TestToks > > \input tufte \endgraf > \splitfloat[lines=auto] % [lines=11] > {\placetable{\dorecurse{10}{test\recurselevel\endgraf}}} > {\the\TestToks} > \input tufte \page > > \input tufte \endgraf > \splitfloat[lines=0] > {} > {\the\TestToks} > \input tufte \page > > \input tufte \endgraf > \the\TestToks > \input tufte \page > > Watch the lines=auto option! Mechanisms like this will never be perfect, > but I think that the cleanup is not that bad. Especially the \startable > bits and pieces needs some more testing, but then, i need to cleanup up > that code anyway (write a cleaner version of that whole table mechanism). > > Hans > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com > | www.pragma-pod.nl > -----------------------------------------------------------------