From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79846 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Resetting Page Numbers Date: Mon, 10 Dec 2012 17:23:38 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1355156632 23009 80.91.229.3 (10 Dec 2012 16:23:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Dec 2012 16:23:52 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 10 17:24:06 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ti69C-00024X-SM for gctc-ntg-context-518@m.gmane.org; Mon, 10 Dec 2012 17:24:02 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7092510247; Mon, 10 Dec 2012 17:23:50 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id L6VMtWzilhEW; Mon, 10 Dec 2012 17:23:48 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id D6A861021E; Mon, 10 Dec 2012 17:23:47 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C50F41021E for ; Mon, 10 Dec 2012 17:23:46 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 79z0cB5OkWGs for ; Mon, 10 Dec 2012 17:23:42 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 23D9E10219 for ; Mon, 10 Dec 2012 17:23:42 +0100 (CET) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qBAGNfCl006395 for ; Mon, 10 Dec 2012 17:23:41 +0100 Original-Received: by mail-bk0-f41.google.com with SMTP id jg9so1435342bkc.14 for ; Mon, 10 Dec 2012 08:23:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=5HmQoEv/mSBdciTi8eXjZnk6h9tUL/rQ7Ti0kmhCrz8=; b=olW2aJgZvlbhSLkuwuBlvalZ+aUbkqycjCqbwGaUea4iL1XI7HZhyQSrsdaMiloDh7 htiq1MI6snqIzZNTihfx5Q99yVRs9PH8ZvPrjvF8GP/pqkVzodXruUjeWNW8C9bP1bOQ 6KfH+4KGZ/O6TXN3ZPcQhACPizxJpEWiHxfkaL9ey62R+jxFf3pg802k+IwS93E9+pL3 hzKlt3HH74k1cZu7UdX70MnQLLiwPRtWxP2n7NZdb8csOrfXuHZvYa73VCsUyBYjBNRR TTdYyT3QTBmnvM+miraBtH/DAJlu5PAXFEVY4ZL8JuvXpFBcg8sLfFWP+XrDDQUTimcf CQJw== Original-Received: by 10.204.145.219 with SMTP id e27mr4588529bkv.140.1355156621168; Mon, 10 Dec 2012 08:23:41 -0800 (PST) Original-Received: from keima.localdomain (nrbg-4dbf8659.pool.mediaWays.net. [77.191.134.89]) by mx.google.com with ESMTPS id o9sm14671310bko.15.2012.12.10.08.23.40 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 10 Dec 2012 08:23:40 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1499) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06IxQnFNs - 114425e501f5 - 20121210 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:79846 Archived-At: Am 10.12.2012 um 17:11 schrieb Troy Henderson : > I would like to reset the page number counter after the first (title) pag= e. Currently, I have > = > \setupfooter[state=3Dempty] > \setuppagenumbering[location=3D{footer,middle}] > \setupfootertexts[Page \currentpage\ of \lastpage] > \starttext > This is my title page > \page > \resetnumber[page] > This is page 1. > \page > This is page 2. > \stoptext > = > but the second page footer renders as "Page 2 of 3" and the third page fo= oter renders as "Page 3 of 3". I would like the second page footer to rend= er "Page 1 of 2" and the third page footer to render "Page 2 of 2". That i= s, I would like the first (title) page to not be used in the computation of= \currentpage or \lastpage. The name of the counter is =93userpage=94 and you have to use \pagenumber a= nd \lastpagenumber to show the correct values. \setupfooter[state=3Dempty] \setuppagenumbering[location=3D{footer,middle}] \setupfootertexts[Page \pagenumber\ of \lastpagenumber] \starttext This is my title page \page \resetcounter[userpage] This is page 1. \page This is page 2. \stoptext A better solution is to use the =93standardmakeup=94 environment for the ti= tle page because it doesn=92t increase the page counter and leaves the head= er and footer empty. \setuppagenumbering[location=3D{footer,middle}] \setupfootertexts[Page \pagenumber\ of \lastpagenumber] \starttext \startstandardmakeup This is my title page \stopstandardmakeup This is page 1.\page This is page 2. \stoptext Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________