|
From: | Evgeny Makarov |
Subject: | Re: [AUCTeX] Replace \[ ... \] with \begin{equation} ... \end{equation} |
Date: | Tue, 11 Nov 2008 16:27:17 -0500 |
User-agent: | Thunderbird 2.0.0.17 (X11/20080925) |
I am wondering if there is a fast way to replace \[ ... \] with \begin{equation} ... \end{equation}. From looking at the code of LaTeX-modify-environment, it seems that it is hard-coded to look for "begin" and "end"...What's the use case here? Changing the current environment while you are editing (in) it or changing several environments across a file? For the first there is no support in `LaTeX-modify-environment' (yet) and the second would be a case for search and replace.
I was thinking about the first point. I usually use display equations without tags, but every now and then, after writing some equation using \[ ... \], I realize that I need to refer to it later. At that point I would like to move the point to that equation and change it to \begin{equation} ... \end{equation}.
\[...\] could be supported better in AUCTeX. If we take a look at modification we should probably also take a look at insertion.
OK, that's just some suggestion for the future... Thanks, Evgeny
[Prev in Thread] | Current Thread | [Next in Thread] |