I have TeX files that Aquamacs compiles by default with pdflatex and other files compiled by default with latex (so I get a dvi).

If I make a copy of file that Aquamacs compiles with latex, that copy is compiled with latex. Similarly, a copy of a "pdflatex file" will be compiled with pdflatex.

I can't see where there could be some metadata of my TeX files that could tell Aquamacs with which engine it has to compile.

I have setq-default TeX-global-PDF-mode t in my .emacs

What determines which compilation is done?


AUCTeX, used by Aquamacs for tex files, when the option TeX-parse-self is t parses the document preamble, and if it finds some package that requires the creation of dvi (e.g. pstricks) uses latex instead of pdflatex.

  • Thanks! That solves it. – gr1g Mar 29 at 23:46
  • @gr1g glad you got an answer! You can click the checkmark to indicate that this answer solves your problem. That sends a little thank you to matteol, and will move your question from the 'unsolved' pile to the 'solved' pile, which helps the rest of us – Tyler Apr 9 at 20:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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