From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37831 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: standardmakeup, frontmatter, bodymatter & page numbering Date: Sat, 8 Dec 2007 13:09:36 +0100 Message-ID: <20071208130936.023896e0.schuster.wolfgang@googlemail.com> References: <6faad9f00710021636i6898d8a8n47c5a93e55751928@mail.gmail.com> <20071129201410.ef3f13d3.schuster.wolfgang@googlemail.com> <6faad9f00712070829r23d3e744kecfc36100fa297b@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 1197119763 2556 80.91.229.12 (8 Dec 2007 13:16:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Dec 2007 13:16:03 +0000 (UTC) Cc: mailing list for ConTeXt users To: "Mojca Miklavec" Original-X-From: ntg-context-bounces@ntg.nl Sat Dec 08 14:16:13 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 1J0zXQ-0001kF-8u for gctc-ntg-context-518@m.gmane.org; Sat, 08 Dec 2007 14:16:12 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 448661FBCC; Sat, 8 Dec 2007 14:15:38 +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 15641-03-4; Sat, 8 Dec 2007 14:14:37 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0FDAE1FB30; Sat, 8 Dec 2007 14:14:32 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DB6081FB49 for ; Sat, 8 Dec 2007 14:14:11 +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 15641-03-3 for ; Sat, 8 Dec 2007 14:13:23 +0100 (CET) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by ronja.ntg.nl (Postfix) with ESMTP id 51F461FC27 for ; Sat, 8 Dec 2007 13:54:41 +0100 (CET) Original-Received: by nf-out-0910.google.com with SMTP id b2so454649nfb for ; Sat, 08 Dec 2007 04:54:40 -0800 (PST) Original-Received: by 10.86.50.8 with SMTP id x8mr3304082fgx.1197118480721; Sat, 08 Dec 2007 04:54:40 -0800 (PST) Original-Received: from rover ( [84.149.68.179]) by mx.google.com with ESMTPS id e20sm875246fga.2007.12.08.04.54.38 (version=SSLv3 cipher=OTHER); Sat, 08 Dec 2007 04:54:39 -0800 (PST) In-Reply-To: <6faad9f00712070829r23d3e744kecfc36100fa297b@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:37831 Archived-At: On Fri, 7 Dec 2007 17:29:36 +0100 "Mojca Miklavec" wrote: > 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.) I run into similiar problems for my letter module to reset the page number for every letter in one document without reseting the global pagenumber, I extend my example to use subpagenumber instead of global numbers but I have a problem to get the right number in the table of content because ConTeXt writes the gobal page number in the galley files and ignores the subpagenumber. \startcomponent structure % setups \setupsubpagenumber[way=bytext,state=start] \setuppagenumbering[location=] \startsectionblockenvironment[frontpart] %\setupfootertexts[\convertnumber{r}{\subpagenumber}] \setupfootertexts[pagenumber] \setuppagenumbering[conversion=romannumerals] \stopsectionblockenvironment \startsectionblockenvironment[bodypart] \setuppagenumber[number=1] % else global pagenumbers in the toc \resetsubpagenumber \setupfootertexts[page \subpagenumber{} of \numberofsubpages] \stopsectionblockenvironment \startsectionblockenvironment[backpart] \resetsubpagenumber \stopsectionblockenvironment % the real document \startfrontmatter \completecontent \stopfrontmatter \startbodymatter \dorecurse{12}{\section{Knuth}\input knuth\par} \stopbodymatter \startbackmatter I'm the last page, really? This is true in latest the \CONTEXT\ for \LUATEX\ but not for \XETEX\ and \PDFTEX. \stopbackmatter \stopcomponent 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 ___________________________________________________________________________________