Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

I downloaded AucTeX off of M-x package-list-packages and I've enabled AucTeX in my .emacs with

(load "~/.emacs.d/elpa/auctex-11.86/tex-site.el" nil t t)

When I type C-c C-c I would like to by default generate a pdf with pdflatex instead of a dvi with latex. What's the easiest way to do this?

share|improve this question
up vote 1 down vote accepted


(setq TeX-PDF-mode t)                ; PDF mode (rather than DVI-mode)

to your .emacs.

share|improve this answer
To do this on a per-file basis add to the end of the a latex file %%%Local Variables: newline %%% eval: (TeX-PDF-mode 1) newline %%%End: – Christian Herenz May 15 '15 at 11:58

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.