From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/6174 Path: main.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: pictures for numbers Date: Fri, 16 Nov 2001 11:36:47 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <20011116113647.453a22f5.taco@elvenkind.com> References: <20011116105527.A29519@cs.uu.nl> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035396717 8187 80.91.224.250 (23 Oct 2002 18:11:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:11:57 +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:6174 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:6174 "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?) This definately sounds elegant, but it is quite a large amount of work. > (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 This is the next best bet, I think. Here is a macro that does the key work. You have to change the \message to do what you want: \def\expandromannumerals#1% {\expandafter\expandromannumeral\romannumeral #1\relax} \def\expandromannumeral#1% {\if #1\relax \let\next\relax \else \message{#1}% \let\next\expandromannumeral \fi \next } \expandromannumerals{19}% call example -- groeten, Taco