From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37090 Path: news.gmane.org!not-for-mail From: "Santy, Michael" Newsgroups: gmane.comp.tex.context Subject: Re: natural table splitting problems Date: Tue, 30 Oct 2007 07:16:47 -0500 Message-ID: <6703815B292B664DBAEC55EE3192386A20BC60@poseidon.in.dynetics.com> References: <4726F9AB.5080002@gmx.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1396641941==" X-Trace: ger.gmane.org 1193756590 6726 80.91.229.12 (30 Oct 2007 15:03:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Oct 2007 15:03:10 +0000 (UTC) To: "Peter Rolf" , Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 30 16:03:11 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 1ImscX-0000Gn-90 for gctc-ntg-context-518@m.gmane.org; Tue, 30 Oct 2007 16:03:11 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C3E351FA3F; Tue, 30 Oct 2007 16:02:59 +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 10576-03; Tue, 30 Oct 2007 16:02:53 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DC4BD1FB30; Tue, 30 Oct 2007 13:21:10 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4EB351FB31 for ; Tue, 30 Oct 2007 13:21: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 19058-09 for ; Tue, 30 Oct 2007 13:20:59 +0100 (CET) Original-Received: from myrddin.dynetics.com (myrddin.dynetics.com [204.154.192.33]) by ronja.ntg.nl (Postfix) with ESMTP id 64E0E1FA55 for ; Tue, 30 Oct 2007 13:16:51 +0100 (CET) Original-Received: from poseidon.in.dynetics.com ([10.1.15.106]) by myrddin.dynetics.com (8.13.1/8.13.1) with ESMTP id l9UCCtBU031257; Tue, 30 Oct 2007 07:12:55 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [NTG-context] natural table splitting problems Thread-Index: Acga14TN62wVgvHzSCW31zlvX+fPdAAFLHuM X-dynetics.com-MailScanner-Information: Please contact the ISP for more information X-dynetics.com-MailScanner: Found to be clean X-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.439, required 2, autolearn=disabled, ALL_TRUSTED -1.44, HTML_MESSAGE 0.00) X-MailScanner-From: michael.santy@dynetics.com 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:37090 This is a multi-part message in MIME format. --===============1396641941== Content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C81AEE.BDE30D2B" This is a multi-part message in MIME format. ------_=_NextPart_001_01C81AEE.BDE30D2B Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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). =20 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? Cheers, Mike \starttext \setupcolors[state=3Dstart] \showframe \def\blah{The quick brown fox jumped over the lazy stupid dog.} \dorecurse{62}{\blah} % setup for all cells \setupTABLE[r][each][style=3D\tfx\it, align=3Dcenter] % setup table head \setupTABLE[r][first] [background=3Dcolor, backgroundcolor=3Dyellow] % setup table footer \setupTABLE[r][last] [style=3Dbold, background=3Dcolor, backgroundcolor=3Dgreen] \bTABLE[split=3Drepeat,option=3Dstretch]% 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 %=20 \bTABLEnext % setup for next table head \bTR [background=3Dcolor,backgroundcolor=3Dcyan] \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 ------_=_NextPart_001_01C81AEE.BDE30D2B Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: [NTG-context] natural table splitting problems

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?

Cheers,
Mike

\starttext

\setupcolors[state=3Dstart]

\showframe

\def\blah{The quick brown fox jumped over the lazy stupid dog.}
\dorecurse{62}{\blah}

% setup for all cells
\setupTABLE[r][each][style=3D\tfx\it, align=3Dcenter]

% setup table head
\setupTABLE[r][first]
  [background=3Dcolor,
   backgroundcolor=3Dyellow]
% setup table footer
\setupTABLE[r][last]
  [style=3Dbold,
   background=3Dcolor,
   backgroundcolor=3Dgreen]

\bTABLE[split=3Drepeat,option=3Dstretch]% 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=3Dcolor,backgroundcolor=3Dcyan]
  \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

------_=_NextPart_001_01C81AEE.BDE30D2B-- --===============1396641941== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1396641941==--