latex mode
Closed this issue · 3 comments
i have a file with .tex extension that, in case it is relevant, begins with the line:
\subsection*{}
when I load this in emacs, it doesn't recognize it as latex and doesn't turn on latex-mode. Shouldn't it turn on latex-mode for any .tex file? Can we put that in effect?
thanks
It will probably not surprise you to learn that I cannot reproduce this problem. If you think there is something about the particular file that causes problems please attach it here.
One possibility is that there is a space at the end of the file name. Could that possibly be the issue?
Incomplete file local variables cause Emacs to quit trying to determine what mode to open a file in. For example, in this case the file contained
% Local Variables:
% TeX-engine: default
% TeX-master:
% End:
Changing it to
% Local Variables:
% TeX-engine: default
% TeX-master: nil
% End:
solved the problem.