From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47157 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Page number not updating in layer Date: Tue, 3 Feb 2009 10:36:42 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1233653987 29998 80.91.229.12 (3 Feb 2009 09:39:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Feb 2009 09:39:47 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 03 10:41:01 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 1LUHm3-0001GR-QA for gctc-ntg-context-518@m.gmane.org; Tue, 03 Feb 2009 10:40:55 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BAF271FBAA; Tue, 3 Feb 2009 10:39:34 +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 28276-01-6; Tue, 3 Feb 2009 10:38:09 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 34A4E1FB74; Tue, 3 Feb 2009 10:38:09 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E21E21FB49 for ; Tue, 3 Feb 2009 10:38:05 +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 30034-02 for ; Tue, 3 Feb 2009 10:37:27 +0100 (CET) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by ronja.ntg.nl (Postfix) with ESMTP id A78631FB89 for ; Tue, 3 Feb 2009 10:37:27 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by filter2-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n139bOgv023724 for ; Tue, 3 Feb 2009 10:37:25 +0100 Original-Received: by fg-out-1718.google.com with SMTP id e21so866516fga.8 for ; Tue, 03 Feb 2009 01:37:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=pL7izddFK923J6hxBcsTVjL4XHaWsrYxeDZMZFuRb+c=; b=BB/P8qfhfjwJalpNUi5jLta3S6/fDS28dX27lt4+jQdckEInYe69xtwDnVAsKE7bfa 5Ty1IAze/t5iakk1tX5z2HUwz7v8kSXxGIoCqRRLRXXmrIGGl5ANdRFe2WlAOoaA0tag KfbaqLJC/PlKQICD/Wu3ZGdmSQtz/Z5g1XxbM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=lRXfqb0x+i/Sy42oz6CctYeg5iaQWw1DSuGTy2m+F1gjdHpz/fvnvmUuUPaoKmWI8M LT2/CXhoaEYp7GbUE8czIChEOH7yN4bxCRn2/lW+GKcXvO3F2qnoc0cL1EFF22U72biV 93IeQVSFOibUQznB+ZE+CbgdFI4tWgiONMU3g= Original-Received: by 10.86.51.10 with SMTP id y10mr2720093fgy.51.1233653844534; Tue, 03 Feb 2009 01:37:24 -0800 (PST) Original-Received: from ?10.40.101.175? (8.121.113.82.net.de.o2.com [82.113.121.8]) by mx.google.com with ESMTPS id e20sm7241641fga.46.2009.02.03.01.37.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 03 Feb 2009 01:37:24 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=72.14.220.157; 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: 174135039 - 445796d36dba X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 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:47157 Archived-At: Am 03.02.2009 um 07:50 schrieb Michael Bynum: > 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. You can find a solution from Aditya under the following link: http://archive.contextgarden.net/message/20070714.145156.91a20ef2.en.html I wrote also for myself a short test file for myself a while ago. \definelayer[head] [width=\paperwidth,height=\paperheight] \definelayer[nexthead][width=\paperwidth,height=\paperheight] \startsetups layer \doif {\pagenumber}{1}{\setlayer[head] [offset=2cm]{First page}} \doifnot{\pagenumber}{1}{\setlayer[nexthead][offset=2cm]{Page \pagenumber}} \stopsetups \setupbackgrounds[page][setups=layer,background={head,nexthead}] \starttext \dorecurse{4}{\page[empty]} \stoptext 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 ___________________________________________________________________________________