From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62281 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: Sun, 3 Oct 2010 16:16:07 +0200 Message-ID: <1EB5F561-DDD0-4DEB-A68D-2E5CDA8F0E64@unilim.fr> References: <4CA440AB.9020103@wxs.nl> <0D88956D-436E-4650-89C8-F2B0501E76F6@unilim.fr> <20100930121242.GA3301@gaston.couberia.bzh> 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 1286115397 4550 80.91.229.12 (3 Oct 2010 14:16:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 3 Oct 2010 14:16:37 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Oct 03 16:16:34 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 1P2PMc-0000Ic-Cq for gctc-ntg-context-518@m.gmane.org; Sun, 03 Oct 2010 16:16:30 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 34ED5CA6F6; Sun, 3 Oct 2010 16:16:29 +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 KfKNCZzXsI3D; Sun, 3 Oct 2010 16:16:28 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2FBA3CA700; Sun, 3 Oct 2010 16:16:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 844F8CA700 for ; Sun, 3 Oct 2010 16:16:24 +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 8eIklm8v0QEe for ; Sun, 3 Oct 2010 16:16:12 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id ACA2DCA6F6 for ; Sun, 3 Oct 2010 16:16:12 +0200 (CEST) Original-Received: from smtp.unilim.fr (mail.unilim.fr [164.81.1.45]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o93EGBvT005331 for ; Sun, 3 Oct 2010 16:16:11 +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 o93EG80J015229 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Sun, 3 Oct 2010 16:16:09 +0200 In-Reply-To: <20100930121242.GA3301@gaston.couberia.bzh> 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]); Sun, 03 Oct 2010 16:16:09 +0200 (CEST) X-Univ-Limoges-MD: Pas de virus trouve X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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: o93EG80J015229 X-Univ-Limoges-MailScanner: Found to be clean X-Univ-Limoges-MailScanner-Envelope-From: 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: 0xDeegbmM - bd5da772aaa9 - 20101003 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:62281 Archived-At: Dear Peter, I run into some problem with font handling in MKIV so I'm stuck in MKII for= some time. I've tried the following : \starttext \def\ChapterPrefix#1{% \the\numexpr\number#1/4\relax } \setupcombinedlist[content][level=3D1] \setuplist[chapter][after=3D,before=3D,numbercolor=3Dyellow,numbercommand= =3D\underbar,pagecommand=3D\ChapterPrefix] \setuplist[section][] \completecontent \dorecurse{3}{\chapter{test} \dorecurse{4}{test \page}} \stoptext In MKII, I get a "Missing number error". I've isolated the problem : the value given to the \chapterprefix by the pa= gecommand option seems to be a text value and not a numeral value. I've tried to find a function to translate text to number but I've not find= it. I hope to get some help. kind regards, Pierre-Fran=E7ois. Le 30 sept. 2010 =E0 14:12, Peter M=FCnster a =E9crit : > On Thu, Sep 30 2010, Pierre-Fran=E7ois Bonnefoi wrote: >> = >> I've tried it and I'm sorry to report that this only works in MK IV, tha= t I >> don't use (I've tried but some of my documents don't translate correctly= ). > = > Hello, > = > Your \ChapterPrefix works out of the box with mkiv. Eventually it's easie= r to > solve the problems you have with mkiv, than dividing the page number by 4= in > mkii? I don't know... > = > Cheers, Peter > = > -- = > Contact information: http://pmrb.free.fr/contact/ > = > = > _________________________________________________________________________= __________ > 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 > _________________________________________________________________________= __________ ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________