From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/75099 Path: news.gmane.org!not-for-mail From: Willi Egger Newsgroups: gmane.comp.tex.context Subject: Re: Bug in \setuplist Date: Thu, 15 Mar 2012 17:39:59 +0100 Message-ID: <80B522EE-19B8-45F2-9DB4-9B790B141E3F@boede.nl> References: <1783C536-0687-4F02-B51A-4314B0716F4D@boede.nl> <99715FCD-EF56-4BBF-A91F-2A552F499416@boede.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1331829608 28447 80.91.229.3 (15 Mar 2012 16:40:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 15 Mar 2012 16:40:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 15 17:40:07 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S8Dih-000809-K7 for gctc-ntg-context-518@m.gmane.org; Thu, 15 Mar 2012 17:40:07 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8E21F101EF; Thu, 15 Mar 2012 17:40:06 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Xjh7mimuNAct; Thu, 15 Mar 2012 17:40:04 +0100 (CET) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 55C20101DF; Thu, 15 Mar 2012 17:40:04 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 498B9101DF for ; Thu, 15 Mar 2012 17:40:03 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id uO+d-OE3qjsP for ; Thu, 15 Mar 2012 17:40:01 +0100 (CET) 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 E0A82101DE for ; Thu, 15 Mar 2012 17:40:01 +0100 (CET) Original-Received: from webmail.digitpaint.nl (webmail.digitpaint.nl [83.98.197.40]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q2FGe0hr028605 for ; Thu, 15 Mar 2012 17:40:00 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by webmail.digitpaint.nl (Postfix) with ESMTP id A145B18A7E0 for ; Thu, 15 Mar 2012 17:39:59 +0100 (CET) Original-Received: from webmail.digitpaint.nl ([127.0.0.1]) by localhost (mail.digitpaint.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id faODicS3zZ2i for ; Thu, 15 Mar 2012 17:39:59 +0100 (CET) Original-Received: from willis-computer.fritz.box (a83-161-249-79.adsl.xs4all.nl [83.161.249.79]) by webmail.digitpaint.nl (Postfix) with ESMTPA id 6A4B9189B50 for ; Thu, 15 Mar 2012 17:39:59 +0100 (CET) In-Reply-To: <99715FCD-EF56-4BBF-A91F-2A552F499416@boede.nl> X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=83.98.197.40; country=NL; latitude=52.5000; longitude=5.7500; http://maps.google.com/maps?q=52.5000,5.7500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QGJQE0GL - 42b8dec6e62e - 20120315 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:75099 Archived-At: Hi, replying to my self: I was not aware of this macro \convert{new_form}{number_to_be_converted} = So in the meantime the commands which give the correct result become: \unexpanded\def\Mychaptercommand#1#2#3{\blank CHAPTER~\convertnumber{R}{#1}= .\blank{#2}.\hskip0.25\bodyfontsize} \unexpanded\def\Mysectioncommand#1#2#3{#2, \hskip0.5\bodyfontsize #3.\hskip= 0.25\bodyfontsize} used in = \setuplist [chapter] [prefix=3Dno, sectionnumber=3Dno, headnumber=3Dno, alternative=3Dcommand, command=3D\Mychaptercommand] \setuplist [section] [prefix=3Dno, sectionnumber=3Dno, headnumber=3Dno, alternative=3Dcommand, command=3D\Mysectioncommand] Again thank you Wolfgang! Willi = On 15 Mar 2012, at 17:21, Willi Egger wrote: > Hi Wolfgang, > = > thank you very much for solving my problem! -- Indeed this works well. > = > What I need to do is to convert the chapter number into a roman number. > = > CHAPTER XIV. > = > BEES CAPABLE OF DOMESTICATION. Astonishment of persons at their > tameness, 25. Bees intended for the comfort of man. Properties fitting > them for domestication. Bees never attack when filled with honey, 26. > .... > = > As you can see there are only chapter numbers given. All other entries in= the TOC are not even headings in the text (!). So I will have to set these= texts up with \writetolist. The texts in the TOC never match any text and = are only indications on the subject dealt with on the given page. -- I seem= s that this was common in those days, I prepared earlier another book writt= en in Dutch showing a similar setup. > = > Thank you for your kind help > = > Willi > = > = > On 15 Mar 2012, at 13:59, Wolfgang Schuster wrote: > = >> \unexpanded\def\=85#1#2#3{=85} > = > _________________________________________________________________________= __________ > 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 ___________________________________________________________________________= ________