From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/40863 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: \front/backmatter etc. and page number Date: Fri, 2 May 2008 14:54:27 +0200 Message-ID: <20080502145428.9d2ab11f.schuster.wolfgang@googlemail.com> References: <481B05C8.3080502@net-b.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 1209734516 18769 80.91.229.12 (2 May 2008 13:21:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 2 May 2008 13:21:56 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri May 02 15:22:31 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 1JrvDK-0006H5-B0 for gctc-ntg-context-518@m.gmane.org; Fri, 02 May 2008 15:22:14 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3891B1FC93; Fri, 2 May 2008 15:21:31 +0200 (CEST) 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 29719-01; Fri, 2 May 2008 15:20:49 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C85E71FBC5; Fri, 2 May 2008 15:20:49 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2FC2C1FBBA for ; Fri, 2 May 2008 15:20:48 +0200 (CEST) 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 28953-04-3 for ; Fri, 2 May 2008 15:20:11 +0200 (CEST) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.159]) by ronja.ntg.nl (Postfix) with ESMTP id 8E0361FBC5 for ; Fri, 2 May 2008 14:54:39 +0200 (CEST) Original-Received: by fg-out-1718.google.com with SMTP id e21so1086196fga.8 for ; Fri, 02 May 2008 05:54:39 -0700 (PDT) Original-Received: by 10.86.29.19 with SMTP id c19mr3631693fgc.28.1209732879418; Fri, 02 May 2008 05:54:39 -0700 (PDT) Original-Received: from rover ( [91.41.68.100]) by mx.google.com with ESMTPS id d6sm2540110fga.2.2008.05.02.05.54.37 (version=SSLv3 cipher=OTHER); Fri, 02 May 2008 05:54:38 -0700 (PDT) In-Reply-To: <481B05C8.3080502@net-b.de> X-Mailer: Sylpheed 2.5.0beta2 (GTK+ 2.10.14; i686-pc-mingw32) 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:40863 Archived-At: On Fri, 02 May 2008 14:15:04 +0200 Tobias Burnus wrote: > Hello, > > I use frontmatter with roman and bodymatter with arabic numerals. The > problem is that the last (nonempty verso) page of the frontmatter > already gets the header and the page number of the bodymatter. Any idea? > > Tobias > > > \setuppagenumbering[alternative=doublesided, location={footer,right}] > \setupsectionblock[frontpart][page=] > \setupsectionblock[bodypart][page=] > \setupsectionblock[backpart][page=] > \setupsectionblock[appendixpart][page=] > > \startfrontmatter > \setuppagenumbering[conversion=romannumerals] > \setuppagenumber[number=1,state=start] > \chapter{something} > ... > % <--- Last page gets already page number "1" and the headings > ("Chapter:") of the bodymatter. > > \stopfrontmatter \page > \startbodymatter > \setupheadertexts > > [][{\start\setupselector[header][n=1]\getmarking[sectionnumber]~\getmarking[section]\stop}] > [{\start\setupselector[header][n=1]Chapter > \getmarking[chapternumber]: \getmarking[chapter]\stop}][] > \setuppagenumbering[conversion=numbers] > \setuppagenumber[number=1,state=start] % Bad workaround: number=0 > \setuphead[chapter][number=yes] > > \chapter{something else} You change the headertext before the last page is shipped with \chapter{something else} and this give you the new header also on the preceding page.. 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 ___________________________________________________________________________________