From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37629 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: standardmakeup, frontmatter, bodymatter & page numbering Date: Thu, 29 Nov 2007 20:14:10 +0100 Message-ID: <20071129201410.ef3f13d3.schuster.wolfgang@googlemail.com> References: <6faad9f00710021636i6898d8a8n47c5a93e55751928@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 1196501113 6517 80.91.229.12 (1 Dec 2007 09:25:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Dec 2007 09:25:13 +0000 (UTC) Cc: Mojca Miklavec To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Dec 01 10:25:22 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 1IyObC-0005Pa-OR for gctc-ntg-context-518@m.gmane.org; Sat, 01 Dec 2007 10:25:22 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C2A491FB57; Sat, 1 Dec 2007 10:24:48 +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 30745-05; Sat, 1 Dec 2007 10:24:37 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7B2A51FB31; Sat, 1 Dec 2007 10:24:34 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1F0491FB31 for ; Sat, 1 Dec 2007 10:24:20 +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 26149-04-3 for ; Sat, 1 Dec 2007 10:24:13 +0100 (CET) Original-Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.188]) by ronja.ntg.nl (Postfix) with ESMTP id B05F21FB2D for ; Sat, 1 Dec 2007 10:24:09 +0100 (CET) Original-Received: by mu-out-0910.google.com with SMTP id i2so1193719mue for ; Sat, 01 Dec 2007 01:24:09 -0800 (PST) Original-Received: by 10.86.91.12 with SMTP id o12mr8193285fgb.1196501048812; Sat, 01 Dec 2007 01:24:08 -0800 (PST) Original-Received: from rover ( [194.94.240.58]) by mx.google.com with ESMTPS id 12sm8940101fgg.2007.12.01.01.24.04 (version=SSLv3 cipher=OTHER); Sat, 01 Dec 2007 01:24:04 -0800 (PST) In-Reply-To: <6faad9f00710021636i6898d8a8n47c5a93e55751928@mail.gmail.com> X-Mailer: Sylpheed 2.4.7 (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:37629 Archived-At: On Wed, 3 Oct 2007 01:36:54 +0200 "Mojca Miklavec" wrote: > Hello, > > I have a document consisting of title page, some introduction which > should have pages numbered with roman numerals, and finally the real > content > > \setuphead[subject][page=odd,style=\ss\bfb] > \setuppagenumbering[location=] > > \starttext > \startstandardmakeup > title page > \stopstandardmakeup > > \startfrontmatter > \setuppagenumbering[conversion=romannumerals] > \setupfootertexts[page \pagenumber{}] > \subject{some intro pages} > \input tufte > \stopfrontmatter > > \startbodymatter > \setupfootertexts[page \pagenumber{} of \totalnumberofpages] > \dorecurse{10}{\subject{real content} \dorecurse{\recurselevel}{\input knuth} } > \stopbodymatter > > \stoptext > > Now the problems: > 1.) The second page starts counting at 1, while counting should start > at page 3. This can be solved by using another > \startstandardmakeup\strut\stopstandardmakeup. > > 2.) The last page says "page 26 of 27" - the total page number is > indeed 27, but counting started on the second page, so it never > reaches the last number. > > 3.) I would like the page number on the first page of bodymatter to be > "page 1 of 23" instead of "page 4 of 27", and the last one to ge "page > 23 of 23" instead of "page 26 of 27" > > There is some way=bychapter setting for page numering, but in that > case there are no suitable chapters/sections available. > > Any hints appreciated ... > > Thanks a lot, > Mojca Hi Mojca, maybe I'm a little bit late with my answer but I stumpled across this question after I was searching for something in the archive and I found the following solution. [...] \startbodymatter \page[odd] % only \page give a empty before the \section \setuppagenumber[number=1] \setupfootertexts[page \pagenumber{} of \lastpagenumber] % no \totalnumber... \dorecurse{10}{\subject{real content} \dorecurse{\recurselevel}{\input knuth} } \stopbodymatter [...] 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 ___________________________________________________________________________________