Mandar Mitra <[email protected]> writes:
>> - If that would create problems, is there a command to tell AUCTeX
>> explicitly to re-scan the file and load the style files for document
>> classes or packages it finds? So when I open a file with
>> \documentclass...{article} uncommented, and subsequently uncomment
>> \documentclass...{beamer}, then I can tell AUCTeX to load beamer.el?
>
> C-c # (bound to TeX-normal-mode (qv) by default) works for me. It's
> what I do after I've added new packages, changed the document class,
> or made similar changes. Maybe you could give that a go?
Yes, that's the right way.
>> Finally, my preamble also has stuff like
>>
>> \mode<presentation>{ %
>> \usepackage{arevmath} %
>> ...
>>
>> and
>>
>> \mode<article>{%
>> \usepackage{fancyhdr} %
>> ...
>>
>> AUCTeX will load all the style files for the packages, regardless of
>> the mode they are used in, right? That seems to be the case.
Right. AUCTeX has no clue about conditionals, so if it finds a
\usepackage that's not commented out (or in a verbatim block, I think),
it'll load the corresponding style file.
Bye,
Tassilo
_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex