From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/61548 Path: news.gmane.org!not-for-mail From: Vnpenguin Newsgroups: gmane.comp.tex.context Subject: Manipulating \pagenumber with Lua code : example need Date: Wed, 8 Sep 2010 20:53:41 +0200 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: dough.gmane.org 1283972033 26217 80.91.229.12 (8 Sep 2010 18:53:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Sep 2010 18:53:53 +0000 (UTC) To: ConTeXt list Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 08 20:53:52 2010 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 1OtPmJ-000186-Oh for gctc-ntg-context-518@m.gmane.org; Wed, 08 Sep 2010 20:53:51 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 41AF7CA687; Wed, 8 Sep 2010 20:53:51 +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 Pe0H0bO3v7vO; Wed, 8 Sep 2010 20:53:50 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A932BCA699; Wed, 8 Sep 2010 20:53:48 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 24BA7CA699 for ; Wed, 8 Sep 2010 20:53:47 +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 KDWWtQ8pD4f5 for ; Wed, 8 Sep 2010 20:53:44 +0200 (CEST) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id B0CD4CA687 for ; Wed, 8 Sep 2010 20:53:44 +0200 (CEST) Original-Received: from mail-iw0-f169.google.com (mail-iw0-f169.google.com [209.85.214.169]) by filter2-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o88IkTQ2021337 for ; Wed, 8 Sep 2010 20:46:30 +0200 Original-Received: by iwn33 with SMTP id 33so309469iwn.14 for ; Wed, 08 Sep 2010 11:53:42 -0700 (PDT) Original-Received: by 10.231.168.21 with SMTP id s21mr1233967iby.123.1283972021866; Wed, 08 Sep 2010 11:53:41 -0700 (PDT) Original-Received: by 10.231.157.16 with HTTP; Wed, 8 Sep 2010 11:53:41 -0700 (PDT) X-Google-Sender-Auth: h2mOhK9VSN0inz2x13Eem3euMbk X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.169; 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: 0aD4iKt0X - 73fb53f1cf20 - 20100908 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 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:61548 Archived-At: Hi, I would like to manipulate \pagenumber with Lua code, in order to add an increment to page number, print out (\pagenumber + INC) instead of \pagenumber. I can't found any example in Wiki yet. Some lines of simple code will be very appreciated :) Thanks ___________________________________________________________________________________ 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 ___________________________________________________________________________________