[Top][All Lists]

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

Re: [AUCTeX] Loading beamer.el style file (Was: font-locking problem)

From: Mandar Mitra
Subject: Re: [AUCTeX] Loading beamer.el style file (Was: font-locking problem)
Date: Sat, 16 Feb 2019 19:14:57 +0530

Greg Bognar wrote (Sat, Feb 16, 2019 at 01:49:09AM +0100):
> I'd like to follow up on this.  I have looked into the package "beamerswitch",
> which does what I was trying to do (generate slides, handouts, notes, etc. 
> from
> one source file).  However, it has the same problem with font-locking, due to
> beamer.el not being loaded.  In this case, C-c C-n does not help either, since
> the documentclass is beamerswitch, not beamer.
> So, feature request: couldn't both \documentclass{beamerswitch} and
> \usepackage{beamerarticle} load beamer.el?  I can see no reason they 
> shouldn't.
> Alternatively, is there a user option I could set so that when I open a file
> with \documentclass{beamerswitch} or \usepackage{beamerarticle}, beamer.el is
> loaded?

This may not be the "proper" way to do things (I'm no expert), but it might 

1. create a file called beamerswitch.el in the directory pointed to by your 
TeX-style-private variable;

2. in the file, put 
        (lambda ()
         (TeX-run-style-hooks "beamer")))

3. repeat for beamerarticle.


reply via email to

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