From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/6175 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: pictures for numbers Date: Fri, 16 Nov 2001 12:53:14 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <5.1.0.14.1.20011116125114.02eebb88@server-1> References: <20011116105527.A29519@cs.uu.nl> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1035396718 8198 80.91.224.250 (23 Oct 2002 18:11:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:11:58 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Andres Loeh In-Reply-To: <20011116105527.A29519@cs.uu.nl> Xref: main.gmane.org gmane.comp.tex.context:6175 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:6175 At 10:55 AM 11/16/2001 +0100, Andres Loeh wrote: >Hello, > >I am writing a document where I want to give the chapter numbers as roman >numerals, but with each letter replaced by a (hand-drawn) picture (I have >them in .jpg ,.png,.eps). > >I wonder what would be the best approach to do it: > >(1) make some kind of virtual (or real) font out of the pictures > (but how?) > >(2) write a macro that expands numbers to a sequence of > \useexternalfigure calls; then define a conversion that > makes use of that macro > >(3) write a macro that transforms the output of \romannumeral > into a sequence of \useexternalfigure calls; then define > a conversion that makes use of that macro > >(4) ... ? > >I succeeded in writing something like (2), but I would find both (1) and >(3) more elegant. What do you think is the best way to proceed? Am I >missing something completely? given that you have figures like picture-number you can define a conversion like: \def\HandDrawnRomanNumeral#1{\externalfigure[picture-#1][height=1cm]} \defineconversion[handdrawnromannumeral][\HandDrawnRomanNumeral] but, this is probably not what you want, so better is: \setuphead[chapter][numbercommand=\NumberCommand] \def\NumberCommand#1% {\externalfigure[picture-\currentheadnumber][height=1cm]} we cannot use #1 because it is more that the number; \currentheadnumber is available in the latest version Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com -------------------------------------------------------------------------