[XeTeX] Testing for XeTeX

Ulrike Fischer news3 at nililand.de
Wed Feb 3 09:13:19 CET 2010

Am Tue, 02 Feb 2010 22:29:14 -0800 schrieb Michiel Kamermans:

>> OK, thanks Ulrike/Wolfgang : I can therefore just   my existing code 
>> to read :
>>     \ifcsname XeTeXrevision\endcsname
>>         \font \tenrm = "Optima" \rm
>>     \fi
>> which does indeed work satisfactorily.
> You can, but now you're testing for XeTeX and then issuing plain TeX 
> when you're indeed in it, which seems a little odd (the TeX code will 
> compile fine regardless of which TeX flavour you use...). Why do you 
> need the XeTeX test here?

The command is not a plainTeX but a plainXeTeX command: look at the
quotes around the font name, these are specific to xetex. 

Ulrike Fischer 

More information about the XeTeX mailing list