From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37589 Path: news.gmane.org!not-for-mail From: "Jeff Smith" Newsgroups: gmane.comp.tex.context Subject: Re: TOC: page headers Date: Wed, 28 Nov 2007 19:35:58 -0500 Message-ID: <2e8813a0711281635l2202d7cdyf0878b4a285c3f88@mail.gmail.com> References: <2e8813a0711141703m5773fe0n41ae0925afed4f48@mail.gmail.com> <2e8813a0711141809t35b0e59bpae2b472ecb8a2378@mail.gmail.com> <115224fb0711150302q8ade6dck9b5b7673009ee551@mail.gmail.com> 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 1196296921 2805 80.91.229.12 (29 Nov 2007 00:42:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Nov 2007 00:42:01 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 29 01:42:08 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 1IxXTj-0002Tk-0v for gctc-ntg-context-518@m.gmane.org; Thu, 29 Nov 2007 01:42:07 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3B1561FA9E; Thu, 29 Nov 2007 01:38:24 +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 06075-04; Thu, 29 Nov 2007 01:37:45 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id ABF051FAC5; Thu, 29 Nov 2007 01:37:39 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 831CB1FA4A for ; Thu, 29 Nov 2007 01:36: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 07418-02 for ; Thu, 29 Nov 2007 01:36:29 +0100 (CET) Original-Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.189]) by ronja.ntg.nl (Postfix) with ESMTP id 497361FACB for ; Thu, 29 Nov 2007 01:36:06 +0100 (CET) Original-Received: by rv-out-0910.google.com with SMTP id k15so1329074rvb for ; Wed, 28 Nov 2007 16:35:58 -0800 (PST) Original-Received: by 10.140.169.6 with SMTP id r6mr2963205rve.1196296558616; Wed, 28 Nov 2007 16:35:58 -0800 (PST) Original-Received: by 10.140.202.9 with HTTP; Wed, 28 Nov 2007 16:35:58 -0800 (PST) In-Reply-To: <115224fb0711150302q8ade6dck9b5b7673009ee551@mail.gmail.com> 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:37589 Archived-At: On Nov 15, 2007 6:02 AM, Wolfgang Schuster wrote: > \usemodule[visual] % example with faked text > > \setuplayout > [width=middle, > footer=2cm, > topspace=2cm, > header=1.3em, > height=middle, > backspace=3cm, > headerdistance=0.3cm, > footerdistance=0cm] > > \startsetups header:bodymatter > > \setupbackgrounds[header][text][frame=off,bottomframe=on] > > % Hans mentioned this method long ago on the list > > \setupheader > [text] > [lefttext={\it\getmarking[chapternumber].\space\getmarking[chapter]}, > righttext=\pagenumber] > > \stopsetups > > \startsetups header:frontmatter > > \setupheader > [text] > [righttext=\pagenumber] > > \stopsetups > > \setupsectionblock > [frontpart] > [page=yes, % else problem with last page of the table of contents > before=\setups{header:frontmatter}] > > \setupsectionblock > [bodypart] > [page=no, > before=\setups{header:bodymatter}] > > \setupsectionblock[appendix] [page=no] > \setupsectionblock[backpart] [page=no] > > \setuppagenumbering > [state=start, > location=, % already set with \setupheadertexts > way=bytext, > partnumber=no, > conversion=numbers] % default > > \definetext[chapter][footer][pagenumber] > \setuphead[chapter][header=high,footer=chapter] > > \setuphead > [part] > [%header=high, % already done for the chapter header > %footer=high, % overloads the chapter setting, footer=pagenumber > placehead=no, > resetnumber=no] > > \setupheadtext[fr][content=Table des mati\egrave res] > \mainlanguage[fr] > > \starttext > > \startfrontmatter > > \completecontent > > \stopfrontmatter > > \startbodymatter > > \dorecurse{3} > {\part{\fakewords{5}{10}} > \dorecurse{3} > {\chapter{\fakewords{5}{10}} > \dorecurse{2} > {\section{\fakewords{5}{10}} > \fakewords{150}{200} > \dorecurse{2} > {\subsection{\fakewords{5}{10}} > \fakewords{150}{200}}}}} > > \stopbodymatter > > \stoptext Hi, I'm bringing that example up again because there is a small problem with it. :-) The very last page of the resulting document has no header! I've been having this problem before, and I mentioned it on this list a while ago. What I did was lazily abandon the frontmatter/bodymatter structure and it was solved. So I guess this is part of the problem as well here. Or at least, on my side of things. When I compile the example above, as is, there is no header on the very last page. The header should have a bottom frame with the chapter number and title on the left, and page number of the right. The exception to this is the first page of a chapter. And indeed, everything is as expected in the document, until the very last page, as I said, which is not the beginning of a new chapter. So, what to do here? I do need the frontmatter/bodymatter structure anyway. So there must be something else... Thanks! Jeff ___________________________________________________________________________________ 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 ___________________________________________________________________________________