From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/38793 Path: news.gmane.org!not-for-mail From: Carsten Fechtmann Newsgroups: gmane.comp.tex.context Subject: Re: Bug: Messy results when using "table" in head and multi-page "tables" in text Date: Wed, 23 Jan 2008 23:11:03 +0100 Message-ID: <1FFCAF65-A61B-4983-A077-2C060B9F683B@zarm-technik.de> References: <47948160.8060103@gmx.net> <479485EF.2070901@gmx.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v915) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1201128180 30211 80.91.229.12 (23 Jan 2008 22:43:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Jan 2008 22:43:00 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 23 23:43:19 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 1JHoJS-0004wb-Uh for gctc-ntg-context-518@m.gmane.org; Wed, 23 Jan 2008 23:43:19 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D102F1FB5B; Wed, 23 Jan 2008 23:42: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 21278-08; Wed, 23 Jan 2008 23:42:48 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A77931FC03; Wed, 23 Jan 2008 23:11:55 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3595E1FC03 for ; Wed, 23 Jan 2008 23:11:49 +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 20535-01-3 for ; Wed, 23 Jan 2008 23:11:11 +0100 (CET) Original-Received: from www.zarm-technik.de (zarm5.zarm.uni-bremen.de [134.102.236.5]) by ronja.ntg.nl (Postfix) with ESMTP id A35641FAE5 for ; Wed, 23 Jan 2008 23:11:09 +0100 (CET) Original-Received: from localhost (unknown [127.0.0.1]) by www.zarm-technik.de (Postfix) with ESMTP id C8B1C3AE5D for ; Wed, 23 Jan 2008 22:11:31 +0000 (UTC) X-Virus-Scanned: amavisd-new 2.5.2 (20070627) at zarm-technik.de Original-Received: from www.zarm-technik.de ([127.0.0.1]) by localhost (www.zarm-technik.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QcxqVaSNhb09 for ; Wed, 23 Jan 2008 23:11:29 +0100 (CET) Original-Received: from [10.0.1.2] (pD955B536.dip.t-dialin.net [217.85.181.54]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by www.zarm-technik.de (Postfix) with ESMTP id 155623AD38 for ; Wed, 23 Jan 2008 23:11:29 +0100 (CET) In-Reply-To: <479485EF.2070901@gmx.net> X-Mailer: Apple Mail (2.915) 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:38793 Archived-At: Dear Peter and Wolfgang, sorry for taking a bit longer to come back to you and your suggestions here. But I got some strange results and did some further testing and trying on all this. What got me a bit, was/is that your suggestion below works as is, but fails with only slightly more complicated tables. Specifically, in the case where there is more than one row. Furthermore, one can't leave out \starttablehead\stoptablehead \starttabletail\stoptabletail even in the case of just using the "table" environment, instead of "tables". Don't ask me why. In short, Peter, while your solution works as is, I would not recommend it for anything more complicated then the example below, and in that case one is probably better of using the framed solution from Wolfgang. Either that, or using the earlier idea with overlay from Wolfgang > \definelayer > [pagehead] > [width=\paperwidth, > height=\paperheight, > state=repeat] > > \setlayer > [pagehead] > [hoffset=\backspace, > voffset=\topspace] > {\setups{pagehead}} > > \setupbackgrounds[page][background=pagehead] This works just fine. THANKS A LOT for this. :-D I had been playing around with overlays at the very beginning of my ConTeXt tries and had soon come to the conclusion to do some more basic stuff first and ... somehow never got back around to it up till now. However, it is the way to go here, as it does indeed separate - somehow - the inner workings of the table structures enough so that ConTeXt is no longer getting confused about them anymore. In short, this works as advertised. Cheers Carsten P.S.: Still would be nice to have this issue fixed. P.S.S.: It does not help with the second bug within the "tables" environment, i.e. the starting \HL line in the "tabletail" introducing an extra and unwanted! gap in the table. Ugly workaround for me at the moment is drawing a not completely line by using \framed[width=broad,topframe=on]{} above the text. While slightly better than either no line or a line with said gap, it is not exactly what I had in mind here, either... Am 21.01.2008 um 12:45 schrieb Peter Rolf: > Peter Rolf schrieb: >> Hi Carsten, >> I'm not quite sure if this is a help (was just playing around with >> it while watching snooker). >> I had to clear|redefine the table head|tail in the page head (or is >> this intended?). There are still some unwanted vertical offsets >> above|below the page head. If you use a hbox instead of a vbox for >> the page head you will see the difference on the last page. So this >> space is introduced by the splitted table somehow. Don't ask me for >> details ;) >> Best wishes, >> Peter > > oeps... some details were missing :D > \setupcolors[state=start] > > \setuppagenumbering[location=] > \setupheadertexts[{\setups[pagehead]}] [] [{\setups[pagehead]}] [] > > \startsetups[pagehead] > \vbox\bgroup > \starttablehead\stoptablehead > \starttabletail\stoptabletail > \setuptables[rulecolor=blue]% > \SetTableToWidth\makeupwidth > \starttable[|p(40mm)|p(60mm)|p(40mm)|] > % \TABLEnoalign{\vskip-1.75pt} % ugly > \HL > \VL \leftaligned{left} \VL \midaligned{middle} \VL > \rightaligned{right} \VL\SR > \HL > \stoptable > \egroup > \stopsetups > > \starttext > > \showframe > \showskips > > \start > > \SetTableToWidth\makeupwidth > \setuptables[split=repeat] > > \starttablehead > \HL > \VL Head \VL\SR > \HL > \stoptablehead > > \starttabletail > \HL % This results in an additional bug, > % i.e. an extra / unwanted gap > \VL Foot \VL\SR > \HL > \stoptabletail > > \starttables[|p(.95\textwidth)|] > \VL \input knuth \VL\FR > %\dorecurse{1}{\VL \input tufte \VL\MR} > \dorecurse{10}{\VL \input tufte \VL\MR} > \VL \input knuth \VL\LR > % \HL % putting \HL here does not introduce > % that unwanted gap ...?!? > \stoptables > > \stop > > \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 ___________________________________________________________________________________