From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/38731 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: Mon, 21 Jan 2008 10:25:54 +0100 Message-ID: <115224fb0801210125n2f74056fn765461b8916c1dd0@mail.gmail.com> References: <20080120141011.87c42b93.schuster.wolfgang@googlemail.com> <301CAC1B-F6FD-4A4E-86F5-2D5BB5A2BF05@zarm-technik.de> <20080120171849.ed01348e.schuster.wolfgang@googlemail.com> <8972AD17-B3F5-440B-80F2-9ABC5D7D6FAD@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 1200916461 14496 80.91.229.12 (21 Jan 2008 11:54:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Jan 2008 11:54:21 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 21 12:54:40 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 1JGvEd-0004UT-Cd for gctc-ntg-context-518@m.gmane.org; Mon, 21 Jan 2008 12:54:39 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C9F5F1FBAA; Mon, 21 Jan 2008 12:54:11 +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 02011-02-4; Mon, 21 Jan 2008 12:53:27 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F3E001FC9B; Mon, 21 Jan 2008 10:58:49 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CFDA81FE07 for ; Mon, 21 Jan 2008 10:58:32 +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 28043-06-65 for ; Mon, 21 Jan 2008 10:57:47 +0100 (CET) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by ronja.ntg.nl (Postfix) with ESMTP id 6B7A91FC9B for ; Mon, 21 Jan 2008 10:25:54 +0100 (CET) Original-Received: by ug-out-1314.google.com with SMTP id q2so7416602uge.50 for ; Mon, 21 Jan 2008 01:25:54 -0800 (PST) Original-Received: by 10.66.240.12 with SMTP id n12mr4528875ugh.9.1200907554285; Mon, 21 Jan 2008 01:25:54 -0800 (PST) Original-Received: by 10.66.252.15 with HTTP; Mon, 21 Jan 2008 01:25:54 -0800 (PST) In-Reply-To: <8972AD17-B3F5-440B-80F2-9ABC5D7D6FAD@zarm-technik.de> Content-Disposition: inline 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:38731 Archived-At: On Jan 20, 2008 8:07 PM, Carsten Fechtmann wrote: > > Dear Wolfgang, > > first, I _really_ appreciate your effort. Unfortunately, for me > \framed is not likely to do the job, as the header is a bit more > complicated in real-life (I told you so ;-). > And yes, actually, using framed had been my very first approach as the > original LaTeX layout had been using \begin{picture} ... > \end{picture}. Therefore, I thought at that time going the \framed > route should do the trick.... > > Here is an (still simplified) example why I don't think it would > > \setuplayout[% > width=160mm, > topspace=10mm, > header=35mm, > headerdistance=5mm, > ] > \setuppagenumbering[location=] > \setupheadertexts[\setups{pagehead}][][\setups{pagehead}][] > > \startsetups[pagehead] > \setupframed[offset=3pt] > \setupcombinations[distance=-\linewidth,width=160mm,align=no] > \dontleavehmode > \startcombination[3] > {\framed[align={right,lohi},height=27mm,width=35mm\relax] > { LOGO } } > {\framed[align={right,lohi},width=35mm\relax] > {left} } > {\framed[align={middle,lohi},height=27mm,width=80mm\relax] > {titel } } > {\framed[align={middle,lohi},width=80mm\relax] > {middle} } > {\framed[align={right,lohi},height=27mm,width=45mm\relax] > {other stuff} } > {\framed[align={middle,lohi},width=45mm\relax] > {Page:~\pagenumber\ of \lastpage}} > \stopcombination > \stopsetups > > \starttext > \input knuth > \stoptext > > Again, as I am still new to ConTeXt, there might be a way to get rid > of the spaces between the frames, somehow. But I still would -- in the > real version -- also need some extra alignments within some cells and > in short this gets just more ugly with every further step. > > I also had been thinking about going the "metafun" route. However, I > do need a simple, out of the box solution that even the greenest TeX > newbie could use and setup on all sorts of OS's ... > In short, I fear that is also not going to be a choice at the moment. Hi Carsten, I have another solution for you, you could use a layer to place the header on every page. \setuppagenumbering[location=] \startsetups[pagehead] \bTABLE[offset=3pt] \bTR \bTD[align={right,lohi},height=27mm,width=35mm] LOGO \eTD \bTD[align={middle,lohi},height=27mm,width=80mm] titel \eTD \bTD[align={right,lohi},height=27mm,width=45mm] other stuff \eTD \eTR \bTR \bTD[align={right,lohi},width=35mm] left \eTD \bTD[align={middle,lohi},width=80mm] middle \eTD \bTD[align={middle,lohi},width=45mm] Page:~\pagenumber\ of \lastpage \eTD \eTR \eTABLE \stopsetups \definelayer [pagehead] [width=\paperwidth, height=\paperheight, state=repeat] \setlayer [pagehead] [hoffset=\backspace, voffset=\topspace] {\setups{pagehead}} \setupbackgrounds[page][background=pagehead] Greetings 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 ___________________________________________________________________________________