Usually, AUCTeX activates beamer-specific settings (e.g. syntax highlighting) depending on \documentclass
. In my LaTeX templates, however, I have separated the preamble from the rest of the document using \input{beamer-preamble}
.
Here's an MWE:
\input{beamer-preamble} % `beamer-preamble.tex` only contains `\documentclass{beamer}`
\begin{document}
\title{Some title}
\begin{frame}
\frametitle{Some frame title}
\end{frame}
\end{document}
In this example, the argument of \frametitle
should be highlighted similarly to the argument of \title
.
How can I tell AUCTeX to still apply the beamer-specific settings?
beamer-preamble
and a .tex file where you use it and do the actual typesetting?Tex-auto-local
? Have you updated the local files?Tex-auto-local
points to some directory under .emacs.d. In fact, when I remove the AUCTeX files there, the highlighting changes for the worse.