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 | [EMAIL PROTECTED]
                       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
-------------------------------------------------------------------------

Reply via email to