auctex
[Top][All Lists]

Re: [AUCTeX] Auctex prompting for optional arguments

 From: Santiago Mejia Subject: Re: [AUCTeX] Auctex prompting for optional arguments Date: Sat, 22 Sep 2018 16:22:18 -0400

Ahhhh.... so refreshing to have this working now!  Thanks so much for the tip Mose.  It took me a while to implement it since I am not too fluent with the file system in AuCTeX and needed to figure out where to find the file ("sudo find / -iname "beamer.el").   Fixing this was easier than I expected, but I could not anticipate when I got your e-mail in what was a pretty busy week.

If you (or anyone else in the list) happens to have time, I would appreciate knowing how can one know in a more general fashion what controls whether AUCTeX prompts for optional arguments or not.

Santiago.

On Mon, Sep 17, 2018 at 7:35 PM Mosè Giordano <address@hidden> wrote:
Hi Santiago,

On Mon, Sep 17, 2018 at 4:33 AM Santiago Mejia <address@hidden> wrote:
>
>
> My general question: is there a way to get AUCTeX to always prompt me for an optional argument of a specific command when I invoke it with TeX-insert-macro (i.e. C-c )? (like it does when you invoke, for instance, \newcommand)
>
> My specific question: is there a way to get Auctex to prompt me automatically for an optional overlay specification when I invoke the \alert command with TeX-insert-macro (i.e. C-c "alert")?

You have to manually patch the file style/beamer.el in your AUCTeX
installation.  Replace the line