Greg Bognar <[email protected]> writes:

Hi Greg,

> I have an odd font-locking problem in AUCTeX.  When I work on Beamer
> slides, sometimes the font-locking works as in the "good" version of
> the screenshot attached.

Thanks for the good description!  In the "bad" version, the beamer.el
style hasn't been loaded, or at least not the following snippet in it:

   ;; Fontification
   (when (and (featurep 'font-latex)
              (eq TeX-install-font-lock 'font-latex-setup))
     (font-latex-add-keywords '(("title" "[{")
                                ("subtitle" "[{")
                                ("author" "[{")
                                ("date" "[{")
                                ("frametitle" "<[{")) 'slide-title)

That would have told font-latex how to highlight \frametitle.

The question is just, why it sometimes fails to load.  In the bad case,
maybe there's something in *Messages*?  What's the value of
`TeX-style-path' in the good and the bad case?

Bye,
Tassilo


_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex

Reply via email to