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 <giordano.m...@libero.it>:
> Hi Tassilo,
>
> 2013/4/25 Tassilo Horn <t...@gnu.org>:
>> 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

_______________________________________________
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to