[latex3-commits] [latex3/luamml] rename-commands: add mathtools patch, latex3/tagging-project#734 (a5e2667)

github at latex-project.org github at latex-project.org
Sat Oct 26 01:02:33 CEST 2024


Repository : https://github.com/latex3/luamml
On branch  : rename-commands
Link       : https://github.com/latex3/luamml/commit/a5e2667bce1cf6ef2c281ba673bc84ced0699d74

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

commit a5e2667bce1cf6ef2c281ba673bc84ced0699d74
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sat Oct 26 01:02:33 2024 +0200

    add mathtools patch, latex3/tagging-project#734


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

a5e2667bce1cf6ef2c281ba673bc84ced0699d74
 luamml-patches-mathtools.sty | 35 +++++++++++++++++++++++++++++++++++
 luamml.dtx                   |  1 +
 2 files changed, 36 insertions(+)

diff --git a/luamml-patches-mathtools.sty b/luamml-patches-mathtools.sty
new file mode 100644
index 0000000..f73ced8
--- /dev/null
+++ b/luamml-patches-mathtools.sty
@@ -0,0 +1,35 @@
+\ProvidesExplPackage {luamml-patches-mathtools} {2024-10-26} {0.1.0}
+  {Feel free to add a description here}
+
+\RequirePackage{luamml-patches-amsmath}
+% see https://github.com/latex3/tagging-project/issues/734
+\renewcommand*\MT_mult_internal:n [1]{
+ \MH_if_boolean:nF {outer_mult}{\alignedspace at left} %<-- requires amsmath 2016/11/05
+  \MT_next:
+  \bgroup
+    \Let@
+    \def\l_MT_multline_lastline_fint{0 }
+    \chardef\dspbrk at context\@ne \restore at math@cr
+    \MH_let:NwN \math at cr@@\MT_mult_mathcr_atat:w
+    \MH_let:NwN \shoveleft\MT_shoveleft:wn
+    \MH_let:NwN \shoveright\MT_shoveright:wn
+    \spread at equation
+    \MH_set_boolean_F:n {mult_firstline}
+    \MT_measure_mult:n {#1}
+    \MH_if_dim:w \l_MT_multwidth_dim<\l_MT_multline_measure_fdim
+      \MH_setlength:dn \l_MT_multwidth_dim{\l_MT_multline_measure_fdim}
+    \fi
+    \MH_set_boolean_T:n {mult_firstline}
+    \MH_if_num:w \l_MT_multline_lastline_fint=\@ne
+      \MH_let:NwN \math at cr@@ \MT_mult_firstandlast_mathcr:w
+    \MH_fi:
+    \ialign\bgroup
+      \hfil\strut@$\m at th\displaystyle{}##
+      \luamml_save:nNn {} \displaystyle {mtd}
+      $
+      \__luamml_amsmath_add_last_to_row:
+      \hfil
+      \crcr
+      \hfilneg
+      #1
+}
diff --git a/luamml.dtx b/luamml.dtx
index 6ba4722..e45295b 100644
--- a/luamml.dtx
+++ b/luamml.dtx
@@ -540,6 +540,7 @@
 %<*luatex>
 \__luamml_patch_package:n {amstext}
 \__luamml_patch_package:n {amsmath}
+\__luamml_patch_package:n {mathtools}
 \__luamml_patch_package:n {array}
 %</luatex>
 %    \end{macrocode}





More information about the latex3-commits mailing list.