From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36867 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: standardmakeup, frontmatter, bodymatter & page numbering Date: Wed, 3 Oct 2007 19:33:42 +0200 Message-ID: <6faad9f00710031033j555b7609pb9ff2caa08ddf26f@mail.gmail.com> References: <6faad9f00710021636i6898d8a8n47c5a93e55751928@mail.gmail.com> <470374E2.2030807@gmx.net> 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: sea.gmane.org 1191435330 32604 80.91.229.12 (3 Oct 2007 18:15:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 Oct 2007 18:15:30 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 03 20:15: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 1Id8kl-0007Yb-9F for gctc-ntg-context-518@m.gmane.org; Wed, 03 Oct 2007 20:15:23 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 764681FAAA; Wed, 3 Oct 2007 20:15:18 +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 19625-01-2; Wed, 3 Oct 2007 20:14:52 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8F7671FE1A; Wed, 3 Oct 2007 19:38:39 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1B1271FE17 for ; Wed, 3 Oct 2007 19:38:33 +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 12507-02 for ; Wed, 3 Oct 2007 19:38:16 +0200 (CEST) Original-Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.251]) by ronja.ntg.nl (Postfix) with ESMTP id CF77F1FE1A for ; Wed, 3 Oct 2007 19:33:44 +0200 (CEST) Original-Received: by an-out-0708.google.com with SMTP id b20so587306ana for ; Wed, 03 Oct 2007 10:33:43 -0700 (PDT) Original-Received: by 10.142.233.9 with SMTP id f9mr1027178wfh.1191432822827; Wed, 03 Oct 2007 10:33:42 -0700 (PDT) Original-Received: by 10.142.87.14 with HTTP; Wed, 3 Oct 2007 10:33:42 -0700 (PDT) In-Reply-To: <470374E2.2030807@gmx.net> 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:36867 Archived-At: On 10/3/07, Peter Rolf wrote: > Mojca Miklavec schrieb: > > 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 ... > > > Hi Mojca, > > see > http://www.pragma-ade.com/general/magazines/mag-0002.pdf > > (Page ranges) for the details. Thanks a lot for the pointer. But the following example fails: \setuppagenumbering [location=] \setupsubpagenumber [state=start] \setupfootertexts [page \subpageno{} of \nofsubpages] \starttext abc \stoptext ! Missing number, treated as zero. { page \subpageno { } of \nofsubpages {}{}{} \firstoftwoarguments #1#2->#1 \doattributes ...sname #1#2\@EA \endcsname \fi {#4 }\dostopattributes \dosingletexts ...atetexts {#1#2#5}{#6{}{}{}}}}}}} \egroup ...tk \v!footer \v!text \c!middletext } \hss }\hskip -\makeupwidth... ... l.11 \stoptext Plus, I don't know how to instruct "way=by..." to reset the counter at the boundary of frontmatter/bodymatter Thanks a lot, 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 ___________________________________________________________________________________