Is there a way to make AUCTeX aware of the TeX engine local variable set in a master file when I compile from other files?
master.tex:
\documentclass{minimal}
\usepackage{fontspec}
\begin{document}
\input{content}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-engine: luatex
%%% End:
content.tex:
Here is some content.
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "master"
%%% End:
When I am inside content.tex and pres C-c C-c, AUCTeX runs pdflatex and not lualatex.
minimalin the MWE, we preferarticle(orscrartcl) for instance. – Manuel Mar 24 '14 at 00:21TeX-engineis local to a buffer by default, and that variable does not seem to be parsed and added to the 'auto' sub-directory by default. (I assume this is an oversight that should be corrected.) Meanwhile, you can simply do aTeX-engine-setto makecontent.texswitch engines, which I'm sure you know already. It is likewise easy to setluatex` as your default engine for all files, too. (Better Emacs hackers will hopefully chime in with a real answer.)TeX-inherited-variables-alist) of variables to inherit from the file-local variables of the master. There is no such ready-made function, but you can grep forLocal Variables:infiles.elto find the sexp that handles it. – Sean Allred Mar 24 '14 at 03:45