Hi

This is a bit of a bizarre problem. I am using the latest auctex git master in GNU emacs 26 together with cdlatex.

Consider please the following example
(using cdlatex) \documentclass[12pt]{article} \usepackage{breqn} \begin{document} \begin{dmath} \end{dmath} \end{document} (Breqn is supported by auctex) If I try to insert a H^0 into the dmath environment a $H^0$ is inserted, which is not correct. If cdlatex is deactivated everything is fine. I wrote Carsten but he is on vacations. This is strictly speaking not an auctex problem, but the following patch to texmathp solves the issue.

Any opinions? I don't know how many people use auctex with cdlatex but the patch also does not produce any harm to auctex I think

Regards

Uwe Brauer

In Germany it is still Chrismas, so happy Christmas to those how share that custom.

# HG changeset patch
# User Uwe Brauer <[email protected]>
# Date 1514300706 -3600
#      Tue Dec 26 16:05:06 2017 +0100
# Node ID 79bfd82aaf2d1d2f7cbe7b13ecb7c904eb55ea0f
# Parent  eb04ba5fcf61f232d51041ad3ec11f9824262eb0
# Parent  1ba53640a5ad5e63735674c4b41ed54de1788ed1
Add environments of the breqn package to texmathp.el in order to solve a compatibility problem with cdlatex.
* texmathp.el (texmathp-tex-commands-default):

diff --git a/texmathp.el b/texmathp.el
--- a/texmathp.el
+++ b/texmathp.el
@@ -132,7 +132,11 @@
     ("\\ensuremath"  arg-on)
 
     ;; AMS-LaTeX
-    ("equation*"     env-on)
+    ("equation*"     env-on)      ("dsuspend*"     env-on)
+    ("dmath"         env-on)      ("dmath*"        env-on)
+    ("dseries"       env-on)      ("dseries*"      env-on)      
+    ("dgroup"        env-on)      ("dgroup*"       env-on)      
+    ("darrya"        env-on)      ("darray*"       env-on)      
     ("align"         env-on)      ("align*"        env-on)
     ("gather"        env-on)      ("gather*"       env-on)
     ("multline"      env-on)      ("multline*"     env-on)
_______________________________________________
auctex-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to