In fact, it doesn't work at all. Sorry for the confusion. I always forget that \ifx is not a string comparison (although, sometimes can be used as such) but a token comparison. One could define fully expanded macros for comparison but then there's another complication that \jobname expands with catcodes 12 and comparison with character tokens (catcode 11) will fail. The whole exercise becomes quickly rather complicated, so it's probably the best to forget about it.nieproszenieja wrote:I don't know why, but it doesn't work for me (in \jobname and \Defaultsetup is the same string, I checked this)
Anyway, the most important thing is that you've found a solution that satisfies you.
Cheers,
Tomek