Hi Arash,

>>>>> Arash Esbati <ar...@gnu.org> writes:
> Ok, I pushed a change to AUCTeX repo acc. to this.

Thanks for your time.  I tried the new entry for \overunderset in
amsmath.el, but it seems wrong to me with a minimal sample like this.

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\(\overunderset{above}{i=below}{\prod}\)
\end{document}

Isn't the right entry like this?

diff --git a/style/amsmath.el b/style/amsmath.el
index 65aed4e2..2c06380b 100644
--- a/style/amsmath.el
+++ b/style/amsmath.el
@@ -65,7 +65,7 @@
     '("xrightarrow" ["Below"] "Above")
     '("overset" "Accent symbol" "Symbol")
     '("underset" "Accent symbol" "Symbol")
-    '("overunderset" "Accent symbol" "Symbol below" "Symbol")
+    '("overunderset" "Symbol above" "Symbol below" "Accent symbol")
     '("dfrac" 2)
     '("tfrac" 2)
     '("binom" 2)

I think the definition in amsmath.sty supports my idea:

\newcommand{\overunderset}[3]{\binrel@{#3}%
  \binrel@@{\mathop{\kern\z@#3}\limits^{#1}_{#2}}}

(The order of the arguments is different from \overset and \underset...
I wonder why amsmath developer chose such confusing order.)

Regards,
Ikumi Keita

_______________________________________________
auctex-devel mailing list
auctex-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to