auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] change: documents with $$ to \begin{documents}


From: David Kastrup
Subject: Re: [AUCTeX-devel] change: documents with $$ to \begin{documents}
Date: Sun, 04 Jan 2015 08:22:35 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Uwe Brauer <address@hidden> writes:

> Hi[1]
>
> Sometimes I receive documents with have basically only 
> $$
> \int f =0
> $$
> constructions instead of say 
> \begin{displaymath} or {equation*} etc.
>
> Anybody has a idea how to change the evil $$ to true latex constructs by
> using sophisticated regexp?

Not all that sophisticated.

M-% \$\$\(.*?\)\$\$ RET \\begin{equation*}\1\\end{equation*} RET

Note the use of .*? (non-greedy match) instead of .* here.

-- 
David Kastrup



reply via email to

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