auctex
[Top][All Lists]
Advanced

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

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


From: Greg Bognar
Subject: Re: [AUCTeX] Loading beamer.el style file (Was: font-locking problem)
Date: Sat, 16 Feb 2019 21:44:59 +0100

Thanks, it works!

On Sat 16 Feb 2019 at 14:44 Mandar Mitra wrote:
> 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 
> work:
> 
> 1. create a file called beamerswitch.el in the directory pointed to by your 
> TeX-style-private variable;
> 
> 2. in the file, put 
>    (TeX-add-style-hook
>         "beamerswitch"
>         (lambda ()
>          (TeX-run-style-hooks "beamer")))
> 
> 3. repeat for beamerarticle.
> 
> HTH,
> mandar



reply via email to

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