[latex3-commits] [git/LaTeX3-latex3-latex2e] move-lualatex-math: moved lualatex-math patch of frac to amsmath (9c8f2f2c)

Ulrike Fischer fischer at troubleshooting-tex.de
Wed Sep 23 20:05:58 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : move-lualatex-math
Link       : https://github.com/latex3/latex2e/commit/9c8f2f2cf90fd39e029f9d69b2bc26a0fd8303c2

>---------------------------------------------------------------

commit 9c8f2f2cf90fd39e029f9d69b2bc26a0fd8303c2
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Wed Sep 23 20:05:58 2020 +0200

    moved lualatex-math patch of frac to amsmath


>---------------------------------------------------------------

9c8f2f2cf90fd39e029f9d69b2bc26a0fd8303c2
 required/amsmath/amsmath.dtx | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/required/amsmath/amsmath.dtx b/required/amsmath/amsmath.dtx
index 05b51683..b05723f9 100644
--- a/required/amsmath/amsmath.dtx
+++ b/required/amsmath/amsmath.dtx
@@ -86,7 +86,7 @@ Bug reports can be opened (category \texttt{#1}) at\\%
 %    \end{macrocode}
 %
 %    \begin{macrocode}
-\ProvidesPackage{amsmath}[2020/08/24 v2.17h AMS math features]
+\ProvidesPackage{amsmath}[2020/09/23 v2.17i AMS math features]
 %    \end{macrocode}
 %
 % \section{Catcode defenses}
@@ -615,8 +615,14 @@ Foreign command \@backslashchar#1;\MessageBreak
 %    abbreviations for some commonly needed mathstyle overrides. To
 %    conserve csnames we avoid making \cn{dfrac} and \cn{tfrac} robust
 %    (\cn{genfrac} is itself robust).
+%    \changes{v2.17i}{2020/09/23}{added \Ustack for luatex (moved patch from lualatex-math)}
 %    \begin{macrocode}
+%
+\ifx\directlua\@undefined
 \DeclareRobustCommand{\frac}[2]{{\begingroup#1\endgroup\@@over#2}}
+\else
+\DeclareRobustCommand{\frac}[2]{{\Ustack{\begingroup#1\endgroup\@@over#2}}}
+\fi
 \newcommand{\dfrac}{\genfrac{}{}{}0}
 \newcommand{\tfrac}{\genfrac{}{}{}1}
 %    \end{macrocode}





More information about the latex3-commits mailing list.