[latex3-commits] [git/LaTeX3-latex3-latex2e] move-lualatex-math: moved subarray patch from lualatex-math (ecd5be72)

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


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

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

commit ecd5be72de7893b0aec1d4a04db67a0546c1b032
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Wed Sep 23 20:25:24 2020 +0200

    moved subarray patch from lualatex-math


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

ecd5be72de7893b0aec1d4a04db67a0546c1b032
 required/amsmath/amsmath.dtx | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/required/amsmath/amsmath.dtx b/required/amsmath/amsmath.dtx
index b05723f9..6fc49fdc 100644
--- a/required/amsmath/amsmath.dtx
+++ b/required/amsmath/amsmath.dtx
@@ -2342,7 +2342,9 @@ Foreign command \@backslashchar#1;\MessageBreak
 %    for use in a subscript or superscript. At the moment the supported
 %    arguments are not the full possibilities of \env{array} but only
 %    |c| or |l| for centered or left-aligned. And only one column.
+%    \changes{v2.17i}{2020/09/23}{moved to version from lualatex-math for luatex}
 %    \begin{macrocode}
+\ifx\directlua\@undefined
 \newenvironment{subarray}[1]{%
 %    \end{macrocode}
 %    Note: The predecessors of \env{subarray} (\env{Sb} and \env{Sp},
@@ -2381,6 +2383,23 @@ Foreign command \@backslashchar#1;\MessageBreak
 }{%
   \crcr\egroup\egroup
 }
+\else
+\newenvironment{subarray}[1]{%
+  \vcenter\bgroup
+  \Let@ \restore at math@cr \default at tag
+  \baselineskip \Umathstacknumup \scriptstyle
+  \advance\baselineskip \Umathstackdenomdown \scriptstyle
+  \lineskip \Umathstackvgap \scriptstyle
+  \lineskiplimit \lineskip
+  \ialign\bgroup\ifx c#1\hfil\fi
+  \Ustartmath
+    \m at th\scriptstyle##
+  \Ustopmath
+  \hfil\crcr
+}{%
+  \crcr\egroup\egroup
+}
+\fi
 %    \end{macrocode}
 % \end{environment}
 %





More information about the latex3-commits mailing list.