From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37395 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: TOC: page headers Date: Thu, 15 Nov 2007 12:02:40 +0100 Message-ID: <115224fb0711150302q8ade6dck9b5b7673009ee551@mail.gmail.com> References: <2e8813a0711141703m5773fe0n41ae0925afed4f48@mail.gmail.com> <2e8813a0711141809t35b0e59bpae2b472ecb8a2378@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 1195142120 3853 80.91.229.12 (15 Nov 2007 15:55:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Nov 2007 15:55:20 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 15 16:55:25 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 1Ish3o-0007j3-Pr for gctc-ntg-context-518@m.gmane.org; Thu, 15 Nov 2007 16:55:20 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B8E7B1FA9E; Thu, 15 Nov 2007 16:54: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 06072-08; Thu, 15 Nov 2007 16:53:45 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 80C4A1FB33; Thu, 15 Nov 2007 12:06:43 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DC2251FAAF for ; Thu, 15 Nov 2007 12:06:36 +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 18351-01-9 for ; Thu, 15 Nov 2007 12:06:21 +0100 (CET) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by ronja.ntg.nl (Postfix) with ESMTP id 485F51FBF1 for ; Thu, 15 Nov 2007 12:02:50 +0100 (CET) Original-Received: by ug-out-1314.google.com with SMTP id h2so473092ugf for ; Thu, 15 Nov 2007 03:02:40 -0800 (PST) Original-Received: by 10.66.251.3 with SMTP id y3mr1078541ugh.1195124560259; Thu, 15 Nov 2007 03:02:40 -0800 (PST) Original-Received: by 10.67.122.17 with HTTP; Thu, 15 Nov 2007 03:02:40 -0800 (PST) In-Reply-To: <2e8813a0711141809t35b0e59bpae2b472ecb8a2378@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:37395 Archived-At: 2007/11/15, Jeff Smith : > On Nov 14, 2007 8:15 PM, Idris Samawi Hamid wrote: > > > If possible, post a minimal example that illustrates the problem; use > > \input's like ward.tex, knuth.tex, zapf.tex etc. (in the distro) so some > > of us can run the test file and report back. Sometimes someone will know > > the answer without such an example but for even faster service ;-) always > > try to include a minimal example when possible. > > Indeed. I'm truly sorry. I attach a sample document with the relevant > stuff. I made the TOC start a little lower on the page just to provoke > the page switching, instead of adding an unwieldy amount of dummy > chapters to acheive the same result. > > Thanks, and sorry again! > Jeff Hi Jeff, you can use dummy chapters next time without problems. I changed a few of your settings because this should be a nice example I could use myself in the future (it's to easy to forgot many of the necessary settings). \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 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 ___________________________________________________________________________________