auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-devel] New entry in amsmath.el (was Re: Adjusting filecontents e


From: Ikumi Keita
Subject: [AUCTeX-devel] New entry in amsmath.el (was Re: Adjusting filecontents env to new LaTeX)
Date: Sat, 19 Oct 2019 23:18:07 +0900

Hi Arash,

>>>>> Arash Esbati <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]