Am 11.06.2013 um 14:22 schrieb Jan Pohanka <xhpohanka@gmail.com>:

Hi,

just another newbie question

\setuphead[section]
    [command=\MyCommand]

\define[2]\MyCommand%
    {\convertnumber{I}{#1} --- #2}

\convertnumber does not work on command parameter. What am I doing wrong? I know that I can use conversion key in setuphead, but I need slightly more complicated command.

Use \setuphead[section][conversion=I], you can’t use \convertnumber
because the first argument is the formatted (styles and colors are applied)
content of the section number.

Wolfgang