auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] Insert two dollars when typing one


From: Tassilo Horn
Subject: Re: [AUCTeX-devel] Insert two dollars when typing one
Date: Wed, 13 Feb 2013 21:15:40 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)

Mosè Giordano <address@hidden> writes:

>> Does that play well with `TeX-math-close-double-dollar'?  I'm not
>> completely sure if closing of single or double dollars and placement
>> of point should be controlled by the same variables.  What's the
>> result of typing $$$ when both variables are t?
>
> If both variables are t, first `$' will insert `$$' and put point in
> the middle.  If one move a character forward (ie, after the second
> `$') and press another time `$' it will close the first `$$',
> considered as opening display math because this comes first in `cond'
> clauses.  This seems to me reasonable.

Hm, well, $$x$ resulting in $$x$$ would also be reasonable in that
case.  But since one shouldn't use $$...$$ anyway, I have no strong
opinion here.

> If one thinks will use one construct (`$...$' or `$$...$$') more often
> than the other probably won't set both variable to t, so if one use
> only LaTeX and no plain TeX probably will completely ignore
> `TeX-math-close-double-dollar' and use only
> `TeX-math-close-single-dollar'.

Agreed.

> I'm sending patches with your suggestions.  I've documented in
> `auctex.texi' also some other recent changes.

Thanks a lot!  It's committed

Bye,
Tassilo




reply via email to

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