[tex-live] Polyglossia breaks XeLaTeX

Uwe Siart usenet at siart.de
Sat Sep 1 19:44:41 CEST 2012

As the others already mentioned: pdflatex is called instead of xelatex.
I believe that either your editor is fooling or you are making a mistake
in using it.

Haines Brown <haines at histomat.net> writes:

> Documents compile with xelatex, but if \usepackage{polyglossia} 
> appears in the preamble, I get "XeLaTeX: done"

This message is not from LaTeX output. It is created by your editor and
it makes you believe that you ran XeLaTeX. But ...

> The log says:
>   This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)
>     (format=pdflatex 2011.10.30 entering extended mode

Clearly: pdflatex is actually called. So no surprise that ...

>   ~/texlive/2011/texmf-dist/tex/latex/xltxtra/xltxtra.sty:26:
>    ********************************************
>    * XeTeX is required to compile this document.
>    * Sorry!
>    ********************************************.
>   \RequireXeTeX ...********************************}
>                                                   \endgroup \fi
>   l.26 \RequireXeTeX
>   ...
>   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>   !
>   ~/texlive/2011/texmf-dist/tex/latex/fontspec/fontspec.sty:38: Fatal
>   fontspec error: "cannot-use-pdftex"
>   !
>   ! The fontspec package requires either XeTeX or LuaTeX to function. 
>   !
>   ! You must change your typesetting engine to, e.g., "xelatex" or "lualatex"
>   ! instead of plain "latex" or "pdflatex".

Try to figure out what your editor is doing behind the scenes. This
error is not related to polyglossia or xetex (or TeXLive even) at all.


More information about the tex-live mailing list