[XeTeX] XeLaTeX and SIunitx

Bruno Le Floch blflatex at gmail.com
Mon May 14 11:51:33 CEST 2012


On 5/14/12, Ulrike Fischer <news3 at nililand.de> wrote:
> Am Mon, 14 May 2012 09:19:18 +1000 schrieb Ross Moore:
>>> But it doesn't solve the problem here as pdftex chokes if it sees
>>> more than two ^^:
>
>>   ... this is not a good example to support this view.
>
>>> \documentclass{article}
>>> \begin{document}
>>> ^^^^00b5
>>> \end{document}
>>
>> The body of your document source should be engine independent,
>> so this should look more like:
>
> [...]
>
> Well I wanted to show that pdftex *chokes* over more than two
> ^^-symbols - and my document demonstrates this in a more shorter way
> than your example (which gives an error too) ;-).

If it gives an error, it might be that \ifxetex is not defined.  The code


\let\ifxetex\iffalse % to be replaced by the appropriate package from Heiko
\ifxetex
    \expandafter\@gobble\string\^^^^00b5
\else
    ...
\fi
\bye


works perfectly well in pdftex.  I agree, though, that the best is to
separate engine-dependent code into different files.

Regards,
Bruno


More information about the XeTeX mailing list