[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-devel] $$-->\begin{displaymath}
From: |
Uwe Brauer |
Subject: |
[AUCTeX-devel] $$-->\begin{displaymath} |
Date: |
Fri, 11 Aug 2017 15:45:31 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Hi
I am not sure whether I brought up this subject some time ago, I tried
to google but couldn't find anything. Be it as it may, is my
understanding that the Tex construct.
$$
\int dx =0
$$
Should be avoided and replaced by say
\begin{displaymath}
\int dx =0
\end{displaymath}
Here is a small function which does this, I am however not sure how to
deal with newlines, for example how to deal with this construct
$$ \int dx =0 $$
ideal would be to turn it into
\begin{displaymath}
\int dx =0
\end{displaymath}
But all the solutions I found also turn
\begin{displaymath}
\int dx =0
\end{displaymath}
Into
\begin{displaymath}
\int dx =0
\end{displaymath}
Which is not good
(defun my-change-dollar-to-displaymath ()
(interactive)
(replace-regexp "\\$\\$\\(\\(.\\|\n\\)*?\\)\\$\\$"
"\\\\begin{displaymath}\\1\\\\end{displaymath}"))
Regards
Uwe Brauer
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [AUCTeX-devel] $$-->\begin{displaymath},
Uwe Brauer <=