Hi I just found in my add-ons lisp file the following functions.
(defun my-change-dollar-to-displaymath ()
(interactive)
(replace-regexp "\\$\\$\\(\\(.\\|\n\\)*?\\)\\$\\$"
"\\\\begin{displaymath}\\1\\\\end{displaymath}"))
(defun my-change-dollar-to-equationstar ()
(interactive)
(replace-regexp "\\$\\$\\(\\(.\\|\n\\)*?\\)\\$\\$"
"\\\\begin{equation*}\\1\\\\end{equation*}"))
Since I really don't master regexp, I presume somebody sent me this
(Arash would be a natural candidate 😉)
Since $$ are not really recommended in latex documents, but still widely
used by users, shouldn't these functions, or some generalisation be
included in auctex?
Regards
Uwe Brauer
smime.p7s
Description: S/MIME cryptographic signature
