[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
change dollars to displaymath or equation*
From: |
Uwe Brauer |
Subject: |
change dollars to displaymath or equation* |
Date: |
Sun, 09 Jan 2022 10:24:05 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
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
- change dollars to displaymath or equation*,
Uwe Brauer <=