From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/38714 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Bug: Messy results when using "table" in head and multi-page "tables" in text Date: Sun, 20 Jan 2008 17:18:49 +0100 Message-ID: <20080120171849.ed01348e.schuster.wolfgang@googlemail.com> References: <20080120141011.87c42b93.schuster.wolfgang@googlemail.com> <301CAC1B-F6FD-4A4E-86F5-2D5BB5A2BF05@zarm-technik.de> 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 1200847745 19734 80.91.229.12 (20 Jan 2008 16:49:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Jan 2008 16:49:05 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 20 17:49:24 2008 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 1JGdMI-0004ta-Tk for gctc-ntg-context-518@m.gmane.org; Sun, 20 Jan 2008 17:49:23 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A6FC01FC11; Sun, 20 Jan 2008 17:48:57 +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 09156-04-14; Sun, 20 Jan 2008 17:48:20 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2C1AA1FC27; Sun, 20 Jan 2008 17:48:19 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D0CD61FC24 for ; Sun, 20 Jan 2008 17:48:13 +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 09156-04-13 for ; Sun, 20 Jan 2008 17:47:34 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by ronja.ntg.nl (Postfix) with ESMTP id 4B70F1FB5B for ; Sun, 20 Jan 2008 17:18:56 +0100 (CET) Original-Received: by fg-out-1718.google.com with SMTP id e12so1714175fga.8 for ; Sun, 20 Jan 2008 08:18:56 -0800 (PST) Original-Received: by 10.86.91.12 with SMTP id o12mr5455410fgb.62.1200845935969; Sun, 20 Jan 2008 08:18:55 -0800 (PST) Original-Received: from rover ( [84.149.79.78]) by mx.google.com with ESMTPS id 12sm9798424fgg.6.2008.01.20.08.18.54 (version=SSLv3 cipher=OTHER); Sun, 20 Jan 2008 08:18:54 -0800 (PST) In-Reply-To: <301CAC1B-F6FD-4A4E-86F5-2D5BB5A2BF05@zarm-technik.de> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.10.14; i686-pc-mingw32) 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:38714 Archived-At: On Sun, 20 Jan 2008 16:22:10 +0100 Carsten Fechtmann wrote: > > Dear Wolfgang, > > I tried that too already, but unfortunately I run into the same problem: > That is, if I use the natural tables in the header, I can't use them > for multi-page tables in the text, as again the results ain't pretty, > to say the least. > > Here the ConTeXt to show what happens in that case > (and using your suggestion for the page-head with natural tables) > > \setuppagenumbering[location=] > \setupheadertexts[\setups{pagehead}][][\setups{pagehead}][] > \startsetups[pagehead] > \bTABLE[option=stretch,strut=no,offset=.5em] > \bTR > \bTD[align={right,lohi},width=4cm] left \eTD > \bTD[align={middle,lohi},width=6cm] middle \eTD > \bTD[align={left,lohi},width=4cm] right \eTD > \eTR > \eTABLE > \stopsetups next solution, framed: \startsetups[pagehead] \setupframed[strut=no,offset=.5em,height=1cm] \dontleavehmode \framed[align={right,lohi},width=\dimexpr(\textwidth/7)*2+\linewidth \relax]{left} \hskip-\linewidth \framed[align={middle,lohi},width=\dimexpr(\textwidth/7)*3\relax] {middle} \hskip-\linewidth \framed[align={left,lohi},width=\dimexpr(\textwidth/7)*2+\linewidth \relax]{right} \stopsetups > \starttext > > \bTABLE[split=repeat,option=stretch,strut=no,offset=.5em] > \bTABLEhead[rulethickness=1pt] > \bTR > \bTH[align={middle,lohi},width=6cm] head \eTH > \eTR > \eTABLEhead > \bTABLEbody% > %\dorecurse{1}{ % works > \dorecurse{10}{ % works NOT > \bTR > \bTD > {\input knuth \par} > \eTD > \eTR > } > \eTABLEbody > \bTABLEfoot > \bTR > \bTH footer \eTH > \eTR > \eTABLEfoot > \eTABLE > > \stoptext > > The thing is, I rather tell the users of this page-layout NOT to use > the \starttables ... \stoptables for multi-page tables, but rely on > the natural tables for those (which work nicely, even though I > _really_ would like to have a dedicated footer for each page here and > not just one for the last page! Which by the way is something one > doesn't need a dedicated command for, as one could _always_ just place > that part at the end of the body part, as that will be then at the end > of the table, i.e. the right place, no matter how many pages the table > has.) > However, given, that \starttables ... \stoptables doesn't give me the > correct footer in my case anyway, I rather have one type of table that > is quite a bit easier for me and my colleagues to use and adapt for > the multi-page tables, i.e. the 'natural' ones, and therefore keep > using table in the header. This is the wishlist from us users since a few years. > But yes, thanks for the suggestion, unfortunately, TABLE seems to rely > on the same sort of buffer / storage / whatever mechanism, to do it's > multi-page magic.... The mchism works with \vsplit > And that just doesn't work with having the same table-type in the > header, too. > (This is probably also true in case of the footer...) > > Overall, things do work, as long as one does use the other type of > table or tables / TABLE in either header or text, but it works NOT > when you use the same in both... > > Not quite sure, what's the reason for that or (and more importantly) > what can be done about it > > With best regards > Carsten > > P.S.: What is interesting is that on the last pages of a multi-page > table things do become sorted out again in either case and everything > looks more or less as it should (i.e. like in the single-page table) Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________