From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62111 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Pierre-Fran=E7ois_Bonnefoi?= Newsgroups: gmane.comp.tex.context Subject: [NTG-Context] How to compute correct page number for handout Date: Wed, 29 Sep 2010 13:13:42 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1285827551 20567 80.91.229.12 (30 Sep 2010 06:19:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 30 Sep 2010 06:19:11 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 30 08:19:09 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 1P1CTw-0005Jp-TI for gctc-ntg-context-518@m.gmane.org; Thu, 30 Sep 2010 08:19:04 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 257CECA6DE; Thu, 30 Sep 2010 08:19:04 +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 uYVxzZUu2-Gu; Thu, 30 Sep 2010 08:19:00 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BC29CCA698; Thu, 30 Sep 2010 08:19:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8927FCA675 for ; Wed, 29 Sep 2010 13:14:01 +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 wpc6dZSv9Tuz for ; Wed, 29 Sep 2010 13:13:47 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 3213DCA6DC for ; Wed, 29 Sep 2010 13:13:47 +0200 (CEST) Original-Received: from smtp.unilim.fr (mail.unilim.fr [164.81.1.45]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o8TBDkDn004201 for ; Wed, 29 Sep 2010 13:13:46 +0200 Original-Received: from [192.168.0.2] (nor87-1-88-167-27-236.fbx.proxad.net [88.167.27.236]) (authenticated bits=0) by smtp.unilim.fr (8.13.1/8.13.1) with ESMTP id o8TBDg9B016919 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Wed, 29 Sep 2010 13:13:43 +0200 X-Mailer: Apple Mail (2.1081) X-Univ-Limoges-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.3 (smtp.unilim.fr [164.81.1.45]); Wed, 29 Sep 2010 13:13:43 +0200 (CEST) X-Univ-Limoges-MD: Pas de virus trouve X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-Scanned-By: MIMEDefang 2.67 on 164.81.1.45 X-Univ-Limoges-MailScanner-Information: Serveur Anti-virus Please contact postmaster@unilim.fr for more information X-Univ-Limoges-MailScanner-ID: o8TBDg9B016919 X-Univ-Limoges-MailScanner: Found to be clean X-Univ-Limoges-MailScanner-Envelope-From: pierre-francois.bonnefoi@unilim.fr X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=164.81.1.45; country=FR; region=B1; city=Limoges; latitude=45.8500; longitude=1.2500; http://maps.google.com/maps?q=45.8500,1.2500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rDczdKGV - c9304a02891e - 20100929 X-Mailman-Approved-At: Thu, 30 Sep 2010 08:18:59 +0200 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:62111 Archived-At: Hello, I'use extensively context to write my lecture notes and for all of my print= ing needs. For my students, I've made some lecture presentations in color, and I print= them in black&white, with four pages on one page for the handout. I would like to compute a correct Table of contents according to the handou= t : so to divide the current page number by four to get a correct page numb= er for the handout. \def\ChapterPrefix#1{\the\numexpr#1/4 \relax} \setupcombinedlist[content][level=3D1] \setuplist[chapter][after=3D,before=3D,numbercolor=3Dyellow,numbercommand= =3D\underbar,pagecommand=3D\ChapterPrefix] That doesn't work, and I've some difficulties to figure how computation is = performed in e-TeX... Could you help me to resolve this issue ? Kind regards, Pierre-Fran=E7ois Bonnefoi. -- = Bonnefoi Pierre-Francois | E-mail : bonnefoi@unilim.fr Universite de Limoges, Laboratoire XLIM | Tel : 06 28 18 03 38 83, rue d'Isle | Mrs. Peel, we're needed... 87000 Limoges - FRANCE | The Avengers. ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________