[Top][All Lists]

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

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

From: John Jones
Subject: Re: [AUCTeX-devel] Wrap dollars around active region
Date: Thu, 25 Apr 2013 08:29:06 -0700

I can imagine a case where one is converting something from another format, maybe copy/paste which only produces plain text.  Some additional editting will be needed, but for lone symbols (e.g., in "Let H be a subgroup of G"), this would be useful.


On Thu, Apr 25, 2013 at 8:21 AM, Tassilo Horn <address@hidden> wrote:
Mosè Giordano <address@hidden> writes:

Hi Mosè,

> I'm sending a patch to wrap dollars around active region typing `$'.
> This is controlled by a new customizable variable, the default
> behavior isn't changed, but I had to remove the line
>   (put 'TeX-insert-dollar 'delete-selection t)
> from the end of `tex.el'.  Any comments?

Not sure if that's a valuable feature.  At least, it doesn't happen very
frequently that I write down some formula and forget to enclose it with
$, but I don't have a strong opinion here.

But I object to the 'double value.  The usage of $$...$$ is discouraged
in LaTeX, so we shouldn't propagate it's usage.  And it's usecase is
handled anyway by

  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?


auctex-devel mailing list

reply via email to

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