From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37814 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: standardmakeup, frontmatter, bodymatter & page numbering Date: Fri, 7 Dec 2007 17:29:36 +0100 Message-ID: <6faad9f00712070829r23d3e744kecfc36100fa297b@mail.gmail.com> References: <6faad9f00710021636i6898d8a8n47c5a93e55751928@mail.gmail.com> <20071129201410.ef3f13d3.schuster.wolfgang@googlemail.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 1197045119 31820 80.91.229.12 (7 Dec 2007 16:31:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Dec 2007 16:31:59 +0000 (UTC) Cc: mailing list for ConTeXt users To: "Wolfgang Schuster" Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 07 17:32:09 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 1J0g7H-0003xf-Oa for gctc-ntg-context-518@m.gmane.org; Fri, 07 Dec 2007 17:31:55 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 00DCD1FC82; Fri, 7 Dec 2007 17:31:39 +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 20160-02-4; Fri, 7 Dec 2007 17:31:07 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8D7C71FC6A; Fri, 7 Dec 2007 17:30:32 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1877A1FC91 for ; Fri, 7 Dec 2007 17:30:30 +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 17390-03-2 for ; Fri, 7 Dec 2007 17:29:58 +0100 (CET) Original-Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.226]) by ronja.ntg.nl (Postfix) with ESMTP id A24081FC43 for ; Fri, 7 Dec 2007 17:29:38 +0100 (CET) Original-Received: by nz-out-0506.google.com with SMTP id m7so357630nzf for ; Fri, 07 Dec 2007 08:29:37 -0800 (PST) Original-Received: by 10.142.178.13 with SMTP id a13mr2242595wff.1197044976734; Fri, 07 Dec 2007 08:29:36 -0800 (PST) Original-Received: by 10.143.40.7 with HTTP; Fri, 7 Dec 2007 08:29:36 -0800 (PST) In-Reply-To: <20071129201410.ef3f13d3.schuster.wolfgang@googlemail.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:37814 Archived-At: On 11/29/07, Wolfgang Schuster wrote: > 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 Hello Wolfgang, I hardcoded the number when I needed it, but you proposal is very useful for the next time when I will need it again. I only need to figure out where to store it on the wiki/texshow, so that it will be possible to find it agin. (This still cannot handle the problem if I wanted to number "last page of frontmatter", but I don't need it at the moment.) > 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... Thanks a lot :) > \dorecurse{10}{\subject{real content} \dorecurse{\recurselevel}{\input knuth} } > \stopbodymatter > [...] Mojca ___________________________________________________________________________________ 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 ___________________________________________________________________________________