![](https://secure.gravatar.com/avatar/cedc4d83943006afe3994fb0a0455f82.jpg?s=120&d=mm&r=g)
19 Apr
2006
19 Apr
'06
10:14 a.m.
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/