1

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?

Drew
  • 75,699
  • 9
  • 109
  • 225
gr1g
  • 13
  • 2

1 Answers1

1

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.

matteol
  • 1,868
  • 1
  • 9
  • 11
  • Thanks! That solves it. – gr1g Mar 29 '21 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 09 '21 at 20:32