[latex3-commits] [git/LaTeX3-latex3-mathtools] master: fix for issue #20 (9d0bb65)

daleif daleif at math.au.dk
Thu Jan 14 11:53:00 CET 2021


Repository : https://github.com/latex3/mathtools
On branch  : master
Link       : https://github.com/latex3/mathtools/commit/9d0bb65ac2b11dd9d976ee8513c638482599eb80

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

commit 9d0bb65ac2b11dd9d976ee8513c638482599eb80
Author: daleif <daleif at math.au.dk>
Date:   Thu Jan 14 11:53:00 2021 +0100

    fix for issue #20


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

9d0bb65ac2b11dd9d976ee8513c638482599eb80
 ANNOUNCEMENT  |  3 ++-
 mathtools.dtx | 17 ++++++++++-------
 2 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/ANNOUNCEMENT b/ANNOUNCEMENT
index 07d0d74..cc14bda 100644
--- a/ANNOUNCEMENT
+++ b/ANNOUNCEMENT
@@ -1,6 +1,7 @@
-Announcement release 2020/12/xx
+Announcement release 2021/xx/xx
 
 * fixed issue #18, thanks to RuixiZhang42
+* fixed issue #20 (via https://tex.stackexchange.com/a/252412/3929)
 
 
 
diff --git a/mathtools.dtx b/mathtools.dtx
index 495aa60..63ed322 100644
--- a/mathtools.dtx
+++ b/mathtools.dtx
@@ -4731,21 +4731,24 @@ colorlinks,
 %  both columns, while \env{dcases*} has text in the second column.
 %  \changes{v1.08}{2010/06/10}{changed to match the change in
 %  \cs{newcases} plus added rcases and drcases}
+% \changes{v1.25}{2021/01/14}{Replaced \texttt{\{\#\#\}} by
+% \texttt{\#\#}, otherwise one cannot counteract the \cs{hfil} in the
+% definition with a \cs{hfil(l)} in a cell. Related to issue \#20 and https://tex.stackexchange.com/a/252412/3929}
 %    \begin{macrocode}
 \newcases{dcases}{\quad}{%
-  $\m at th\displaystyle{##}$\hfil}{$\m at th\displaystyle{##}$\hfil}{\lbrace}{.}
+  $\m at th\displaystyle##$\hfil}{$\m at th\displaystyle##$\hfil}{\lbrace}{.}
 \newcases{dcases*}{\quad}{%
-  $\m at th\displaystyle{##}$\hfil}{{##}\hfil}{\lbrace}{.}
+  $\m at th\displaystyle##$\hfil}{##\hfil}{\lbrace}{.}
 \newcases{rcases}{\quad}{%
-  $\m at th{##}$\hfil}{$\m at th{##}$\hfil}{.}{\rbrace}
+  $\m at th##$\hfil}{$\m at th##$\hfil}{.}{\rbrace}
 \newcases{rcases*}{\quad}{%
-  $\m at th{##}$\hfil}{{##}\hfil}{.}{\rbrace}
+  $\m at th##$\hfil}{##\hfil}{.}{\rbrace}
 \newcases{drcases}{\quad}{%
-  $\m at th\displaystyle{##}$\hfil}{$\m at th\displaystyle{##}$\hfil}{.}{\rbrace}
+  $\m at th\displaystyle##$\hfil}{$\m at th\displaystyle##$\hfil}{.}{\rbrace}
 \newcases{drcases*}{\quad}{%
-  $\m at th\displaystyle{##}$\hfil}{{##}\hfil}{.}{\rbrace}
+  $\m at th\displaystyle##$\hfil}{##\hfil}{.}{\rbrace}
 \newcases{cases*}{\quad}{%
-  $\m at th{##}$\hfil}{{##}\hfil}{\lbrace}{.}
+  $\m at th##$\hfil}{##\hfil}{\lbrace}{.}
 %    \end{macrocode}
 %  \end{environment}
 %  \end{environment}





More information about the latex3-commits mailing list.