[Tex/LaTex] AUCTeX and XeTeX

auctexemacsxetex

I use Emacs+AUCTeX to write my *-tex. Using the PDF mode, I can run pdfTeX automatically with the C-c C-c command. However, I don't see a way to run XeTeX automatically, or even set up a command option in the drop down window. My LISP skills are very rusty, and I was wondering if someone had a tex.el patch to enable XeTeX support ?

Best Answer

If you have AUCTeX version 11.86, you can set the local variable TeX-engine to xetex. This is what I use:

%%% Local Variables: 
%%% coding: utf-8
%%% mode: latex
%%% TeX-engine: xetex
%%% End: 

You have to open the file again for the effect to take place (C-x C-v).

You can check the version you have with

C-h v AUCTeX-version <RET>
Related Question