From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/61188 Path: news.gmane.org!not-for-mail From: Michael Goerz Newsgroups: gmane.comp.tex.context Subject: varying headers, footers, page numbers Date: Tue, 24 Aug 2010 18:01:10 -0400 Message-ID: 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: dough.gmane.org 1282687303 14915 80.91.229.12 (24 Aug 2010 22:01:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 Aug 2010 22:01:43 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 25 00:01:42 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Oo1Yq-0001c6-88 for gctc-ntg-context-518@m.gmane.org; Wed, 25 Aug 2010 00:01:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 806BCCA619; Wed, 25 Aug 2010 00:01:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id e0l1yNwqcLiS; Wed, 25 Aug 2010 00:01:36 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8E9CACA60C; Wed, 25 Aug 2010 00:01:36 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1FC98CA60C for ; Wed, 25 Aug 2010 00:01:35 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 0DnqmI8CxTsX for ; Wed, 25 Aug 2010 00:01:29 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 75574CA604 for ; Wed, 25 Aug 2010 00:01:29 +0200 (CEST) Original-Received: from mail-ww0-f49.google.com (mail-ww0-f49.google.com [74.125.82.49]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o7OM1SVO006804 for ; Wed, 25 Aug 2010 00:01:29 +0200 Original-Received: by wwj40 with SMTP id 40so28128wwj.6 for ; Tue, 24 Aug 2010 15:01:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=CdmlkwJpWtOso/ZihrqYWGzzt1kpxNlXhSsn/g3nZMI=; b=SzABxmHMB+5CCpvRlhHhmW6AtvY+1QORu5mHYpY+b6v7kYS8a4kOsEwIO2cLfgYOMo zeFnBJA/BGKZ8PQlhhs1r8b0D2NBB2hn7OUZt2YcV+spCobYcFO+MURjOEWnnx/5AkbN spcnk+2T/gqySl4bxfinTsJsSAy27C0LS63o8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=gfw88vb1v/+lfAWa3i0lDJBVYR8q3+oX+V+doxeME1/MqwWhu5wKl1B5XYOFn8tCum vvIPvo6EJkiAegUxjqwHVb8Br0cbcLWdkBSmfJyd0z8F8chEc/73omupSdpkU9KasDa7 nC3hM1MGaiMaYzzvXqwAdSJaIrHgmg5YI4/QU= Original-Received: by 10.216.162.72 with SMTP id x50mr50245wek.3.1282687270113; Tue, 24 Aug 2010 15:01:10 -0700 (PDT) Original-Received: by 10.216.132.9 with HTTP; Tue, 24 Aug 2010 15:01:10 -0700 (PDT) X-Google-Sender-Auth: d0C9GerNUvQnn4M0SIitqPBc83Q X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.49; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05CWm1s7N - 842153d67487 - 20100825 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.216 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:61188 Archived-At: Hi, I'm trying to create a book where the front matter has no headers/footers, except roman numeral page numbers at the top outside of the page. The main matter should have Arabic numeral page numbers (restarting with '1') at the top outside of each page, plus the name of the book in the header of each even page and the name of the chapter in the header of each odd page, with no footer. However, on the pages where a new chapter starts (which is set to always be an odd page), there should be no header, and the page number should appear centered at the bottom of the page. I'm quite confused about how to achieve this in ConTeXt. An excerpt from the project structure is ./env.tex ./project.tex ./book/book.tex ./book/chapters/chapter1.tex The following is a shortened excerpt from book.tex: \startfrontmatter \setuppagenumbering[state=stop] % nothing for now, should be roman page % numbers later \component book/frontmatter % ToC ... \stopfrontmatter \startbodymatter \setuppagenumber[number=1] \setupheadertexts [{Name of Chapter}] [{}] [{}] [{Name of Book}] \setuppagenumbering[ alternative=doublesided, % mirrored even/odd pages location={header,margin}, style=small] \component vol04_1/articles/azimov \stopbodymatter This leads to my first question: I generally try to keep all formatting definitions in env.tex. However, it seems to me that since I want to have different settings in the frontmatter compared to the mainmatter, I need to put the \setuppagenumbering and \setupheadertexts in book.tex, which slightly bothers me. The way I intuitively feel it should work is that I would define various headertexts and pagenumberings under some label in env.tex, and then activate the different configurations in book.tex via that label. Is there anything in ConTeXt that I may have overlooked that makes something like that (centrally defining several alternative header/footer/pagenumber configurations) possible? Next, the problem of having a different header/footer/pagenumber on pages where a new chapter starts. In env.tex, I have \setuphead[chapter][ page=mychapterpagebreak, number=no, alternative=c, align={center, nothyphenated, verytolerant}, style={\switchtobodyfont[16pt]}, header=high, footer=none, ] This causes the chapter pages to have no header/footer/pagenumber at all, which is halfway what I want. But actually, I don't really understands why that works either. My understanding is that "header=high" means there should be no header on the first page and the normal header on all subsequent pages. The way I've set it up though, the page number is not really part of the header (it's separately set up through \setuppagenumbering). So why does the page number disappear as well? And, of course, the main question: How do I get the page number centered in the bottom of that page? Again, I feel if there was some way to define different configurations for the header/footer/pagenumbers under different labels, e.g. a label 'chapterfooter', it would then make sense to do something like 'footer=chapterfooter', instead of 'footer=none'. But I guess that's not the way it works -- so how *does* it work? Thanks, Michael ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________