[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] Problem accessing style files when document is split from p
Re: [AUCTeX] Problem accessing style files when document is split from preamble
Tue, 6 Sep 2016 20:31:22 -0500
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0
Thanks for your answer. The file "auto/preamble.el" exists now. (I
deleted the directory and reloaded the files in Emacs.)
I changed the "TeX-master" as you said, but to no avail. AUCTeX still
does not recognise my preamble within the main document file.
On 06/09/2016 20:20, Mosè Giordano wrote:
2016-09-07 3:09 GMT+02:00 Nicolas Vaughan <address@hidden>:
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 begins here -----------
% --------- preamble.tex ends here -----------
And my document document.tex is this one:
% --------- document.tex begins here -----------
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "preamble"
% --------- 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,