auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] Adding curly braces in math mode


From: Ralf Angeli
Subject: Re: [AUCTeX] Adding curly braces in math mode
Date: Sat, 05 Nov 2005 10:30:11 +0100
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

* Ralf Angeli (2005-11-01) writes:

> * Jens Kubieziel (2005-11-01) writes:
>
>> when typing sub- or superscripts in math mode I often need curly braces.
>> So I want to customize AUCTeX that everytime when I press `_' or `^' it
>> automagically appends `{}' and places the cursor inside. I guess this
>> can be done like described in 'Style Files' in auctex.info. But actually
>> I'm not sure how to do it in detail (without any lisp knowledge).
>
> How about the attached patch?  Maybe the respective variable and
> function should be named `TeX-insert-exp-and-subscript' instead of
> `TeX-electric-exp-and-subscript' because the functionality does not
> really feel like true electricity.  Other suggestions for the name?

Committed a slightly changed version.  The name of the variable for
controllig this feature is now `TeX-electric-sub-and-superscript'.

-- 
Ralf




reply via email to

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