From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/69367 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Page X of Y Date: Tue, 21 Jun 2011 22:37:48 +0200 Message-ID: <5953EA78-89FA-4858-A7EA-5FBD3B83F77C@googlemail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1308688690 18638 80.91.229.12 (21 Jun 2011 20:38:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 21 Jun 2011 20:38:10 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jun 21 22:38:05 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QZ7hx-0003Vz-6M for gctc-ntg-context-518@m.gmane.org; Tue, 21 Jun 2011 22:38:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 686E0CAE0E; Tue, 21 Jun 2011 22:38:00 +0200 (CEST) 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 8NFhGiaX++1e; Tue, 21 Jun 2011 22:37:56 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6BDC5CADE6; Tue, 21 Jun 2011 22:37:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D430CCAE00 for ; Tue, 21 Jun 2011 22:37:54 +0200 (CEST) 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 edpzM0-rej8E for ; Tue, 21 Jun 2011 22:37:53 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 1AC01CADF3 for ; Tue, 21 Jun 2011 22:37:53 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p5LKbq6f015286 for ; Tue, 21 Jun 2011 22:37:52 +0200 Original-Received: by fxm18 with SMTP id 18so298973fxm.14 for ; Tue, 21 Jun 2011 13:37:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=97tb24oWcIkMj8rl2fe4MLhPH7Ffb/DI9okr3ZZHJdo=; b=dDLqLWIfdJVRg08bjaYMalrPFaZHK7qQht0XtF8ZCLn2hEFzwhhxIAe3rWCaShFTFK 7nuQBgWWu7YWCKxSOIi4TAnNxycSqwuozLZYWHQI5HutPUaEeNAHPvD/JbcONjFS+Grr uhJRgeLFg18nVoZUpuUoXGO0Rv8Gwvg4Wtfjc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=N6JBUgqK6yOznDCBn2HUIFqWZlqR7JcSrfbwg58LhOpRRWgMy73OO5y92A1X8EgGMv D+r9UQ3jpmgoyYcYD3Vk/p8EQvno5iRIWx9M5wwp6F6ENC7hg8PL6eeOQEmyn7w90by0 HkNiDP2fYAOTLceQD4M1/+vqT60MqAKgBauC0= Original-Received: by 10.223.6.28 with SMTP id 28mr2433822fax.41.1308688671764; Tue, 21 Jun 2011 13:37:51 -0700 (PDT) Original-Received: from [192.168.2.34] (p5B0EF355.dip.t-dialin.net [91.14.243.85]) by mx.google.com with ESMTPS id g7sm346598fac.39.2011.06.21.13.37.49 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 21 Jun 2011 13:37:50 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.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: 05EWIBQNv - 6b2b60404433 - 20110621 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:69367 Archived-At: Am 21.06.2011 um 22:30 schrieb Aditya Mahajan: > On Tue, 21 Jun 2011, Troy Henderson wrote: > >> I would like the footer of my document to read >> >> Page X of Y >> >> where X is the current page and Y is the total number of pages. >> Thoughts on how to accomplish this? > > 1. > > \setuppagenumbering[location=footer, command=\PAGECOMMAND] > \def\PAGECOMMAND#1{Page #1 of \lastpage} \define[1]\PAGECOMMAND{Page #1 of \lastpage} > 2. Or more directly > > \setuppagenumbering[location=] > \setupfootertexts[Page \currentpage\ of \lastpage] 3. \setuppagenumbering[left={Page },right={ of \lastpage}] 4. \setuplabeltext[pagenumber={{Page },{ of \lastpage}}] 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________