[latex3-commits] [git/LaTeX3-latex3-mathtools] master: fixes issue #15 (c371c3e)

daleif daleif at math.au.dk
Thu Jan 14 14:55:35 CET 2021


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

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

commit c371c3e7b9736dc12bd1d1bd8be50aef5f4148ec
Author: daleif <daleif at math.au.dk>
Date:   Thu Jan 14 14:55:35 2021 +0100

    fixes issue #15


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

c371c3e7b9736dc12bd1d1bd8be50aef5f4148ec
 ANNOUNCEMENT |  8 ++++++++
 mhsetup.dtx  | 11 ++++++++---
 2 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/ANNOUNCEMENT b/ANNOUNCEMENT
index cc14bda..80c2352 100644
--- a/ANNOUNCEMENT
+++ b/ANNOUNCEMENT
@@ -1,8 +1,16 @@
 Announcement release 2021/xx/xx
 
+For mathtools.dtx:
+
 * fixed issue #18, thanks to RuixiZhang42
 * fixed issue #20 (via https://tex.stackexchange.com/a/252412/3929)
 
+For mhsetup.dtx
+
+* fixed issue #15 by adding \MH_group_align_safe_begin/end: to
+  \MH_nospace_ifnextchar:Nnn. That way it should also work in tested
+  alignments. Solution provided by Phelype Oleinik
+
 
 
 Announcement release 2020/03/24
diff --git a/mhsetup.dtx b/mhsetup.dtx
index b44eea1..a86a26a 100644
--- a/mhsetup.dtx
+++ b/mhsetup.dtx
@@ -162,7 +162,7 @@ and the derived files
 %</driver>
 %  \fi
 %
-%  \CheckSum{298}
+%  \CheckSum{301}
 %
 %  \GetFileInfo{mhsetup.drv}
 %
@@ -576,11 +576,16 @@ and the derived files
 %  \begin{macro}{\MH_nospace_protected_testopt:n}
 %  Scanning for the next character but disallow spaces.
 % \changes{v1.3}{2017/03/31}{Added MH\_ prefix to several \cs{if...} macros}
+% \changes{v1.4}{2021/01/14}{Added
+% \cs{MH\_group\_align\_safe\_begin/end:} as suggested by
+% Phelype Oleinik  in issue \#15. This enables
+% \cs{MH\_nospace\_ifnextchar:Nnn} to work correctly inside nested alignments}
 %    \begin{macrocode}
 \long\def\MH_nospace_ifnextchar:Nnn #1#2#3{
+  \MH_group_align_safe_begin: % added 2021/01/14
   \MH_let:NwN\reserved at d=~#1
-  \def\reserved at a{#2}
-  \def\reserved at b{#3}
+  \def\reserved at a{\MH_group_align_safe_end: #2} % changed 2021/01/14
+  \def\reserved at b{\MH_group_align_safe_end: #3} % changed 2021/01/14
   \futurelet\@let at token\MH_nospace_nextchar:
 }
 \def\MH_nospace_nextchar:{





More information about the latex3-commits mailing list.