[NTG-context] using \doifmodeelse the right way
Peter Münster
pmlists at free.fr
Wed Apr 19 18:14:07 CEST 2006
Hello,
\externalfigure[prefix-\doifmodeelse{blub}{blub}{notblub}][width=0.5\textwidth]
does not work.
I tried some combination of \expanded, \unexpanded, \expandafter etc but
without success. In the end, I write:
\doifmodeelse{blub}{%
\externalfigure[prefix-blub][width=0.5\textwidth]}{%
\externalfigure[prefix-notblub][width=0.5\textwidth]}
Is this the most elegant way, or do you know better?
(I would prefer less redundancy)
Cheers, Peter
--
http://pmrb.free.fr/contact/
More information about the ntg-context
mailing list