� wrote:
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]}
you can use prefixes in the figuremechanism (see documentation about resource libs etc); it's part of a mechanism for runtime conversion (like downsampling) in combination with caching and such
Is this the most elegant way, or do you know better? (I would prefer less redundancy)
like \doifmodeelse{blub} { \useexternalfigure[blub][prefix-blub] } { \useexternalfigure[blub][prefix-noblub] } \externalfigure[blub][width=0.5\textwidth] ----------------------------------------------------------------- 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 -----------------------------------------------------------------