![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Alan Stone wrote:
Are such macros possible ?
modes: ma, mb, ... mz values: va, vb, ... vz command: cmd parameter: p
(1) instead of
\doifmode{ma}{\cmd[name][va]} \doifmode{mb}{\cmd[name][vb]} .... \doifmode{mz}{\cmd[name][vz]}
a macro which does: \doifmode{m*}{\cmd[name][v*]}
(2) instead of
\doifmode{ma}{\cmd[p=va]} \doifmode{mb}{\cmd[p=vb]} .... \doifmode{mz}{\cmd[p=vz]}
a macro which does: \doifmode{m*}{\cmd[p=v*]}
nl, because there is no knowledge of what modes are set (i could cook something up for mkiv or course) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------