help-gnu-emacs
[Top][All Lists]

## Stupid AUCTeX Master File Question

 From: Justin Subject: Stupid AUCTeX Master File Question Date: Mon, 12 May 2008 07:22:02 -0700 (PDT) User-agent: G2/1.0

I'm new to doing multifile input with LaTeX and seem to be having
trouble telling AUCTeX about the master file?
I've got a file called main.tex which includes some header commands,
particularly the following:
\newtheorem{thm}{Theorem}[section]
\newtheorem{cor}[thm]{Corollary}
\newtheorem{lem}[thm]{Lemma}
\newtheorem{claim}[thm]{Claim}
\newtheorem{notn}[thm]{Notation}
\newtheorem{prop}[thm]{Proposition}

\begin{document}
\include{going-up}
\end{document}

It's also got a "file variable" at the end:

%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:

i want to use these theorem environments in "going-up.tex".  When I
open it up, I tell it that main.tex is the master -file (there's a
file variable there too, but I've also used TeX-master-ask).  But C-c
C-e doesn't pick up the theorem environments, even though it does in
main.tex.

I've looked at the documentation but haven't been able to figure this
out - any help appreciated.

Thanks,
Justin Brody