TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The title says it all I hope, I'd like to configure Emacs to use XeLaTeX instead of pdfLaTeX, which is the default. I'm using MiKTeX on Windows (it's in my PATH), if that makes a difference.

I'm pretty sure there must be a simple way to achieve this, but I'm by no means an Emacs expert.

share|improve this question
Why on earth do you refuse to use AUCTeX? – Keks Dose Jan 13 '13 at 16:59
I have a couple of reasons. First, because it's not available everywhere; Second, every time I wish to upgrade Emacs I have to go through this long page to make sure I didn't mess up anything. Third, I just don't see the value added.. Lastly, why should I accept to use AUCTeX? :-) – gpo Jan 13 '13 at 18:57
Use xemacs, that one comes with AUCTeX integrated ;-) – vonbrand Jan 19 '13 at 1:50
Lots of reasons not to use AUCTeX, but principally a) it's mainly for mathematicians, so it's full of good stuff I simply don't need; b) it changes the key-bindings. – Peter Flynn Feb 16 at 15:16
up vote 3 down vote accepted

It's a piece of cake, as it should be! :

(setq latex-run-command "xelatex")

share|improve this answer

You can run shell commands like pdflatex or biber on files in the various file manager modes. Dired is the most widely used one. There's also a number Midnight Commander clones.

See: http://www.emacswiki.org/emacs/CategoryDirectories.

But I still think you should give AUCTeX a second chance. If the versions available for Windows or Mac are not up to date (I have no idea), you might be better off running a Linux VM or setting up a Linux system on another partition. Although Emacs package management is getting much, much better, Linux package management still makes life with Emacs easier.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.