I'm using AUCTeX in Emacs, and would like to store all output files (.aux, .log, .pdf etc) in a sub-directory "output" rather than directly in the current working directory.
To achieve this, I have updated the AUCTeX settings so that the "LaTeX" command now includes
--output-directory=output and the BibTeX and View commands open
This works, in the sense that all intermediate files are generated in ./output correctly.
However, previously pressing C-c C-c several times would run LaTeX, then LaTeX then View, noticing after the second LaTeX run that nothing more is needed and the PDF file is ready to view (presumably it checks after each LaTeX run to see if various intermediate files change?). This switch from automatically choosing the "LaTeX" option to choosing "View" no longer works using
--output-directory as described. I must now press C-c C-c and type "View" manually.
Does anyone know how I can tell AUCTeX that the output files are in "./output" and to compare to them when checking whether it is "time to View" rather than "time to LaTeX"?