[latex3-commits] [git/LaTeX3-latex3-mathtools] master: fixes #19 (cd6fa78)

daleif daleif at math.au.dk
Thu Mar 4 14:26:39 CET 2021


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

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

commit cd6fa78665a1f9e91ec7d34a70050806621f2c37
Author: daleif <daleif at math.au.dk>
Date:   Thu Mar 4 14:26:39 2021 +0100

    fixes #19


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

cd6fa78665a1f9e91ec7d34a70050806621f2c37
 ANNOUNCEMENT  |  1 +
 mathtools.dtx | 11 +++++++++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/ANNOUNCEMENT b/ANNOUNCEMENT
index 6996909..8790fa5 100644
--- a/ANNOUNCEMENT
+++ b/ANNOUNCEMENT
@@ -6,6 +6,7 @@ For mathtools.dtx:
 * fixed issue #20 (via https://tex.stackexchange.com/a/252412/3929)
 * fixed issue #22 
 * fixed issue #21, suggestions for documentation by Rimole.
+* fixed issue #19
 
 For mhsetup.dtx
 
diff --git a/mathtools.dtx b/mathtools.dtx
index b906987..93a647c 100644
--- a/mathtools.dtx
+++ b/mathtools.dtx
@@ -321,7 +321,7 @@ colorlinks,
 %
 %  \GetFileInfo{mathtools.drv}
 %
-%  \CheckSum{3340}
+%  \CheckSum{3343}
 %
 %  \title{The \pkg{mathtools} package\thanks{This file has version number
 %  \fileversion, last revised \filedate.}}
@@ -5937,7 +5937,14 @@ colorlinks,
       3
     \fi
     \advance\dimen at -\ht\z@ \ht\z@=-\dimen@
-    \box\z@
+%    \end{macrocode}
+% Leave vertical mode before typesetting the box and add a
+% \texttt{\{\}} in front to gard against unnecessary reboxing  
+% \changes{v1.25}{2021/03/04}{Added vmode protection and reboxing
+% gard, see issue \#19}
+%    \begin{macrocode}
+    \ifvmode\leavevmode\fi
+    {}\box\z@
 }
 %    \end{macrocode}
 %  \end{macro}





More information about the latex3-commits mailing list.