From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62117 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Pierre-Fran=E7ois_Bonnefoi?= Newsgroups: gmane.comp.tex.context Subject: Re: [NTG-Context] How to compute correct page number for handout Date: Thu, 30 Sep 2010 10:27:17 +0200 Message-ID: <0D88956D-436E-4650-89C8-F2B0501E76F6@unilim.fr> References: <4CA440AB.9020103@wxs.nl> 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 1285835274 18978 80.91.229.12 (30 Sep 2010 08:27:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 30 Sep 2010 08:27:54 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 30 10:27: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 1P1EUZ-0008Ke-6p for gctc-ntg-context-518@m.gmane.org; Thu, 30 Sep 2010 10:27:51 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 434DACA72D; Thu, 30 Sep 2010 10:27:50 +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 ZM5DX38CQoab; Thu, 30 Sep 2010 10:27:38 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 30861CA736; Thu, 30 Sep 2010 10:27:38 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CDADDCA736 for ; Thu, 30 Sep 2010 10:27:36 +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 6nKE45FvziqZ for ; Thu, 30 Sep 2010 10:27:34 +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 08465CA72D for ; Thu, 30 Sep 2010 10:27:34 +0200 (CEST) Original-Received: from smtp.unilim.fr (mail.unilim.fr [164.81.1.45]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o8U8RVuT024621 for ; Thu, 30 Sep 2010 10:27:33 +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 o8U8RHij001403 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Thu, 30 Sep 2010 10:27:24 +0200 In-Reply-To: <4CA440AB.9020103@wxs.nl> 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]); Thu, 30 Sep 2010 10:27:25 +0200 (CEST) X-Univ-Limoges-MD: Pas de virus trouve X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.216 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: o8U8RHij001403 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: 05DcUrw35 - 795231d57b06 - 20100930 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:62117 Archived-At: Dear Hans, Thank you to answer my question. I've tried it and I'm sorry to report that this only works in MK IV, that I= don't use (I've tried but some of my documents don't translate correctly). >From my point of view, I don't know if it is the correct answer because I w= ant to get some altered page number, and I think that I have to alter them = "artificially", only for display purpose. best regards, Pierre-Fran=E7ois Bonnefoi. Le 30 sept. 2010 =E0 09:47, Hans Hagen a =E9crit : > On 29-9-2010 1:13, Pierre-Fran=E7ois Bonnefoi wrote: >> Hello, >> = >> I'use extensively context to write my lecture notes and for all of my pr= inting needs. >> = >> For my students, I've made some lecture presentations in color, and I pr= int 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 han= dout : so to divide the current page number by four to get a correct page n= umber for the handout. >> = >> \def\ChapterPrefix#1{\the\numexpr#1/4 \relax} >> \setupcombinedlist[content][level=3D1] >> \setuplist[chapter][after=3D,before=3D,numbercolor=3Dyellow,numbercomman= d=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 ? > \starttext > = > \setupuserpagenumber[way=3Dbychapter] > = > \dorecurse{3}{\chapter{test} \dorecurse{4}{test \page}} > = > \stoptext > = > = > = > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com > | www.pragma-pod.nl > ----------------------------------------------------------------- > _________________________________________________________________________= __________ > 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-co= ntext > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _________________________________________________________________________= __________ -- = 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 ___________________________________________________________________________= ________