auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] Wrap dollars around active region


From: Mosè Giordano
Subject: Re: [AUCTeX-devel] Wrap dollars around active region
Date: Sun, 28 Apr 2013 16:32:36 +0200

Now that there are three people in favor of this feature, I'm
undecided whether to commit the previous patch or the attached
simplified one.  In this, as announced, TeX-electric-dollar is
boolean.

Bye,
Mosè


2013/4/25 Mosè Giordano <address@hidden>:
> Hi Tassilo,
>
> 2013/4/25 Tassilo Horn <address@hidden>:
>> Right.  So maybe the value 'double would surround the region with $$ in
>> plain-TeX-mode, and with a displaymath environment in latex-mode.  That
>> would be fine with me.
> To keep things simple `TeX-electric-dollar' can be a boolean variable
> and `TeX-insert-dollar' will only insert a single `$' when it's
> non-nil, and do nothing when it's nil.
>
>>>>   1. set the region containing the formula
>>>>   2. C-c C-e displaymath RET
>>>>
>>>> Ok, that's a bit longer than just doing 1 and then $, but really, who
>>>> forgets to insert some proper math environment before starting to write
>>>> a formula?
>>> John has already showed a case of use, the same I was thinking about.
>>> If there isn't agreement about this change, it's not a problem for me
>>> ;-)
>>
>> Let's wait a bit more, and if there's a third person that is in favour
>> of that feature, just go for it.
> Ok.
>
> Bye,
> Mosè

Attachment: tex-electric-dollar.patch
Description: Binary data


reply via email to

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