[XeTeX] Testing for XeTeX

Wolfgang Schuster schuster.wolfgang at googlemail.com
Tue Feb 2 19:24:03 CET 2010


Am 02.02.10 18:52, schrieb Philip TAYLOR:
> What is the recommended way to test if one is compiling
> under XeTeX ?  I na\ively assumed that the following
> would suffice, but it did not :
You can use the ifxetex package from CTAN and write

\input ifxetex.sty

\ifxetex
   % XeTeX
\else
   % not XeTeX
\fi

or you check against a command which is only available in XeTeX, e.g.

\ifx\XeTeXversion\undefined
    % not XeTeX
\else
   % XeTeX
\fi

Wolfgang



More information about the XeTeX mailing list