auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX] Problem accessing style files when document is split from p


From: Nicolas Vaughan
Subject: Re: [AUCTeX] Problem accessing style files when document is split from preamble
Date: Tue, 6 Sep 2016 20:31:22 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

Hi Mosè,

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.

Any ideas?

Best,

Nicolas

On 06/09/2016 20:20, Mosè Giordano wrote:
Hi Nicolas,

2016-09-07 3:09 GMT+02:00 Nicolas Vaughan <address@hidden>:
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è




reply via email to

[Prev in Thread] Current Thread [Next in Thread]