When I compile a file using Emacs AucTeX with C-c C-c
(which runs TeX-command-master
which runs TeX-run-TeX
) the top line of the log output looks like this:
Running `LaTeX' on `mwe' with ``pdflatex -interaction=nonstopmode "\input" mwe.tex''
(This is the top line of the buffer when I do C-c C-l
.
Why on earth is aucTeX doing "\input" mwe.tex
rather than just mwe.tex
? What can this possibly achieve apart from causing my %&custom
fmt definition to get ignored?
And secondly, where do I stop it doing this? I've looked at how the various commands mentioned above are defined. None of them seem to specify this behaviour. So what is actually causing this invocation of pdflatex?
tex \nonstopmode\input mwe.tex
to run a file in that mode.TeX-command-list
andTeX-expand-list
. (I was also dissatisfied with this default behavior and customizedTeX-command-list
to change it.)TeX-expand-list
includes%'
which expands to some complicated stuff that includes the dreaded\input
. That's a pretty impressive way to obfuscate your option setting. Deleting%'
from the right part ofTeX-command-list
seems to have done the trick."\input" mwe.tex
rather than justmwe.tex
?" question, David Kastrup gave here an answer, more or less.