auctex-devel
[Top][All Lists]
Advanced

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

[AUCTeX-devel] Insert two dollars when typing one


From: Mosè Giordano
Subject: [AUCTeX-devel] Insert two dollars when typing one
Date: Wed, 13 Feb 2013 15:07:46 +0100

Hi all,

I'd like to be able to insert two dollar signs and put the point
between them when I type `$' outside math mode.  It seems I'm not the
only having this wish, see for example
http://stackoverflow.com/q/10367524
http://tex.stackexchange.com/q/75697
http://tex.stackexchange.com/a/24789
http://www.rouquier.org/jb/programmation/.emacs
Many people use code that don't know anything about TeX syntax and
usually don't check if point is inside or outside math mode.  I'm
sending a patch to do this in AUCTeX, of course I'm not changing the
default behaviour of `TeX-insert-dollar'.  If `blink-matching-paren'
is non-nil, the opening dollar blinks for a second, like when closing
`$...$' or `$$...$$'.

2013-02-13  Mosè Giordano  <address@hidden>

        * tex.el (TeX-math-close-single-dollar): New variable.
        (TeX-insert-dollar): Use it.


Bye,
Mosè Giordano

Attachment: tex.el.patch
Description: Binary data


reply via email to

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