[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] font-locking problem
From: |
Tassilo Horn |
Subject: |
Re: [AUCTeX] font-locking problem |
Date: |
Sun, 10 Feb 2019 11:45:42 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Mandar Mitra <address@hidden> 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