[latex3-commits] [git/LaTeX3-latex3-mathtools] master: Added \mathstrut to first arg of \splitfrac, this fixes issue #2 (ed35375)

daleif daleif at math.au.dk
Thu Mar 5 09:34:46 CET 2020


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

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

commit ed3537595153e6dd1ed5c81901fcacbb2cc87974
Author: daleif <daleif at math.au.dk>
Date:   Thu Mar 5 09:34:46 2020 +0100

    Added \mathstrut to first arg of \splitfrac, this fixes issue #2


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

ed3537595153e6dd1ed5c81901fcacbb2cc87974
 ANNOUNCEMENT  | 15 +++++++++++++++
 mathtools.dtx | 12 ++++++++----
 2 files changed, 23 insertions(+), 4 deletions(-)

diff --git a/ANNOUNCEMENT b/ANNOUNCEMENT
index 2d352da..035ee92 100644
--- a/ANNOUNCEMENT
+++ b/ANNOUNCEMENT
@@ -1,3 +1,18 @@
+Announcement release 2020/03/xx
+
+* mathtools and empheq is now hosted at https://github.com/latex3/mathtools 
+  
+* Additional ideas for math will now be added to mathtools as amsmath might not
+  be the right home for them at the moment.
+  
+* cleared up some documentation (reported by Frank Mittelbach)
+
+* added \mathstrut to both arguments of \splitfrac and \splitdfrac (before only
+  added to the last arg). This helps when the macro is nested inside it self
+  (reported by Frank Mittelbach)
+
+
+
 Announcement release 2020/01/17
 
 * a few typos in the manual (from  Mike Dworski)
diff --git a/mathtools.dtx b/mathtools.dtx
index 0b5ed19..0121b9e 100644
--- a/mathtools.dtx
+++ b/mathtools.dtx
@@ -2674,8 +2674,9 @@ colorlinks,
 %    }
 %    {z}
 %  \]
-%
-%
+% The difference between \cs{splitfrac} and \cs{splitdfrac} is that
+% the former forces its arguments to be typeset in text-mode math, the
+% latter does not.
 %
 %
 %
@@ -6141,13 +6142,16 @@ colorlinks,
 %  These commands use \cs{genfrac} to typeset a split fraction. The
 %  thickness of the fraction rule is simply set to zero.
 %    \begin{macrocode}
+% \changes{v1.24}{2020/03/05}{Added \cs{mathstrut} to both arguments
+% not just the first. This makes the line spacing consistent when the
+% macro is nested in side it self.}
 \newcommand*\splitfrac[2]{%
   \genfrac{}{}{0pt}{1}%
-    {\textstyle#1\quad\hfill}%
+    {\textstyle\mathstrut#1\quad\hfill}%
     {\textstyle\hfill\quad\mathstrut#2}%
 }
 \newcommand*\splitdfrac[2]{% 
-  \genfrac{}{}{0pt}{0}{#1\quad\hfill}{\hfill\quad\mathstrut #2}%
+  \genfrac{}{}{0pt}{0}{\mathstrut#1\quad\hfill}{\hfill\quad\mathstrut #2}%
 }
 %    \end{macrocode}
 %  \end{macro}





More information about the latex3-commits mailing list.