[Top][All Lists]

[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: Sat, 09 Feb 2019 10:32:45 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Greg Bognar <address@hidden> 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?


reply via email to

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