branch: externals/auctex
commit dd7f8446ca6eb98ce0c633652e8f764c40f033e2
Author: Ikumi Keita <ik...@ikumi.que.jp>
Commit: Ikumi Keita <ik...@ikumi.que.jp>

    Add support of \tag for texmathp
    
    * style/amsmath.el (): Add entries for \tag and \tag* to
    `texmathp-tex-commands-default'.
    ; Add supplementary comment.
---
 style/amsmath.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/style/amsmath.el b/style/amsmath.el
index 0fd9817..2179d57 100644
--- a/style/amsmath.el
+++ b/style/amsmath.el
@@ -46,7 +46,11 @@
              ("alignat"       env-on) ("alignat*"      env-on)
              ("xalignat"      env-on) ("xalignat*"     env-on)
              ("xxalignat"     env-on) ("\\boxed"       arg-on)
-             ("\\text"        arg-off) ("\\intertext"   arg-off))))
+             ;; In fact, \text macro is provided separately in
+             ;; amstext.sty, not amsmath.sty. However, it would be
+             ;; reasonable enough to include support for it here.
+             ("\\text"        arg-off) ("\\intertext"   arg-off)
+             ("\\tag"         arg-off) ("\\tag*"        arg-off))))
   (dolist (entry list)
     (cl-pushnew entry texmathp-tex-commands-default :test #'equal)))
 (texmathp-compile)

Reply via email to