From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47156 Path: news.gmane.org!not-for-mail From: Michael Bynum Newsgroups: gmane.comp.tex.context Subject: Page number not updating in layer Date: Tue, 3 Feb 2009 01:50:40 -0500 Message-ID: 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 1233643974 2921 80.91.229.12 (3 Feb 2009 06:52:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Feb 2009 06:52:54 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 03 07:54:07 2009 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 1LUFAY-0007Z3-2f for gctc-ntg-context-518@m.gmane.org; Tue, 03 Feb 2009 07:54:02 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 48AFA1FBB8; Tue, 3 Feb 2009 07:52:41 +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 26780-01-8; Tue, 3 Feb 2009 07:51:21 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1662A1FB6B; Tue, 3 Feb 2009 07:51:21 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B1A3B1FB6B for ; Tue, 3 Feb 2009 07:51:19 +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 26780-01-7 for ; Tue, 3 Feb 2009 07:50:42 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by ronja.ntg.nl (Postfix) with ESMTP id 8FCBF1FB60 for ; Tue, 3 Feb 2009 07:50:42 +0100 (CET) Original-Received: from rv-out-0708.google.com (rv-out-0708.google.com [209.85.198.248]) by filter3-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n136ofpk024603 for ; Tue, 3 Feb 2009 07:50:41 +0100 Original-Received: by rv-out-0708.google.com with SMTP id f25so1930774rvb.14 for ; Mon, 02 Feb 2009 22:50:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=zcW7yy8z2fameexKUBSN2IPf+nxHz7uIR8bsc4uyIpY=; b=krH5G6a5gPyb0juIVaWcKe9jbXKaOeDvEJ9e4Jzlibz7ISbrb+aHhvqAECO7vD4Xms Hk1VfxAkXvruXrHnsy1QbABoDzOcj9cR5WfiVyX3j4w7C3fFzvrye0RFyDZjqKU+idGS 6+HLv5xkHui7st4Alyd7HstnSexYQR8EdKZIU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=lPlBl9pbD+4ew5ZbqYGB+32FuBVTGx87YJJjNrDNVUTMFzzHq8eiB6YAuwGKTjdQOy EbSCr9VRZZeUt6rIQ9o8D4Ibk3PO4RK1WbPNq8C+3BHoyzme3tKctMj86OuTtYU3CotZ 4pronS/Ffv+IHNWV0hPl5b7HMxtxYboGPffmA= Original-Received: by 10.141.107.13 with SMTP id j13mr2761772rvm.65.1233643840715; Mon, 02 Feb 2009 22:50:40 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.198.248; 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: 174052910 - 4e0ff879d45c X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:47156 Archived-At: I am trying to use a layer to insert a page number in my document, but the page always displays page number 1. It seems nothing that I have tried has worked. I also don't know how to exclude the first page from the total number of pages count. Here is the code I'm trying to use. \setupoutput[dvipsone] \starttext \definelayer[pagenumber] \setuplayer [pagenumber] [width=\paperwidth, height=\paperheight, state=repeat] \setlayer[pagenumber][preset=lefttop,x=4in,y=5.5in]% {\framed[width=1.25in,align=middle,offset=none]{\tfx Page \getnumber[page]~of~\totalnumberofpages}} \setupbackgrounds [page] [background={pagenumber},state=start] test \page test \page test \stoptext Thanks, Mike ___________________________________________________________________________________ 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 ___________________________________________________________________________________