auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] Auctex prompting for optional arguments


From: Denis Bitouzé
Subject: Re: [AUCTeX] Auctex prompting for optional arguments
Date: Tue, 18 Sep 2018 08:14:18 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Hi Santiago and Mosè,

Le 18/09/18 à 01h34, Mosè Giordano a écrit :

>> 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
>
>     '("alert" 1)
>
> with
>
>     '("alert" TeX-arg-beamer-overlay-spec 1)
>
> Remember to byte-recompile the file with M-x byte-recompile-file RET
> RET.

BTW, AUCTeX by default prompts for an optional overlay specification
with the \structure command, but not with \alert (as noticed by
Santiago) which is however similar. And, from my experience, an overlay
specification is much more often used with \alert than with \structure.

All the best.
-- 
Denis



reply via email to

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