Hi Nicolas, 2016-09-07 3:09 GMT+02:00 Nicolas Vaughan <[email protected]>: > Hi, > I have a problem using AUCTeX style files when a documentis broken into a > main file and a preamble. > For instance, say my preamble is contained in the following file > preamble.tex: > > % --------- preamble.tex begins here ----------- > \documentclass{article} > \usepackage{csquotes} > \usepackage{tcolorbox} > % --------- preamble.tex ends here ----------- > > > And my document document.tex is this one: > > % --------- document.tex begins here ----------- > \input{preamble.tex} > \begin{document} > Lorem ipsum... > \end{document} > %%% Local Variables: > %%% mode: latex > %%% TeX-master: "preamble" > %%% End: > % --------- document.tex ends here -----------
Is there the file auto/preamble.el? Did you open document.tex after the file auto/preamble.el was created? Try issuing C-c C-n in preamble.tex and then in document.tex. Note that your `TeX-master' is wrong. It refers to the main file, the file you actually compile, which is document.tex. In document.tex you should set to "t" (without quotes), and in preamble.tex to "document" (with quotes here). This shouldn't be the root of your problem, though. Bye, Mosè _______________________________________________ auctex mailing list [email protected] https://lists.gnu.org/mailman/listinfo/auctex
