[latex3-commits] [latex3/mathtools] master: Fixed #54 (fa384da)

github at latex-project.org github at latex-project.org
Fri Jan 19 11:41:46 CET 2024


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

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

commit fa384dad36e77c2912c2efeb179b32936f7d266d
Author: daleif <daleif at github.com>
Date:   Fri Jan 19 11:41:46 2024 +0100

    Fixed #54


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

fa384dad36e77c2912c2efeb179b32936f7d266d
 ANNOUNCEMENT  | 1 +
 mathtools.dtx | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/ANNOUNCEMENT b/ANNOUNCEMENT
index 9ca51a1..014ea1e 100644
--- a/ANNOUNCEMENT
+++ b/ANNOUNCEMENT
@@ -9,6 +9,7 @@ For mathtools.dtx v1.30
   never been executed (#49)
 * Gave \DeclarePairedDelimiter... support for the empty scaler (dot) (#41)
 * Added \xLongrightarrow and \xLongleftarrow (requested in #51)
+* Added a bracing group inside \newtagform such that the inner format only applies to the number (fixes #54)
 
 
 Announcement release 2022/06/29
diff --git a/mathtools.dtx b/mathtools.dtx
index 4ee88e9..7c2ec0b 100644
--- a/mathtools.dtx
+++ b/mathtools.dtx
@@ -3336,10 +3336,11 @@ colorlinks,
 %  commands similar to \cs{tagform@} only this will give us tag form
 %  \emph{types}. The actual code is very similar to the one in
 %  \pkg{amsmath}.
+% \changes{v1.30}{2024/01/19}{Add group so \#2 (the inner format) does not leak}
 %    \begin{macrocode}
 \def\MT_define_tagform:nwnn #1[#2]#3#4{
   \@namedef{MT_tagform_#1:n}##1
-    {\maketag@@@{#3\ignorespaces#2{##1}\unskip\@@italiccorr#4}}
+    {\maketag@@@{#3\ignorespaces{#2{##1}}\unskip\@@italiccorr#4}}
 }
 %    \end{macrocode}
 %  \end{macro}





More information about the latex3-commits mailing list.