summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/mathtools
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-03-29 03:01:50 +0000
committerNorbert Preining <norbert@preining.info>2021-03-29 03:01:50 +0000
commit3c5dd0d2f091e5e866af1de0327171b253ec9178 (patch)
tree071536c70fd090a23a7ff157f5143aa91ce94330 /macros/latex/contrib/mathtools
parentddd501183c3e68b7a98bdeb023d0b98ef84dae22 (diff)
CTAN sync 202103290301
Diffstat (limited to 'macros/latex/contrib/mathtools')
-rw-r--r--macros/latex/contrib/mathtools/empheq.ins2
-rw-r--r--macros/latex/contrib/mathtools/empheq.pdfbin311677 -> 311677 bytes
-rw-r--r--macros/latex/contrib/mathtools/mathtools.dtx224
-rw-r--r--macros/latex/contrib/mathtools/mathtools.ins19
-rw-r--r--macros/latex/contrib/mathtools/mathtools.pdfbin456864 -> 456864 bytes
-rw-r--r--macros/latex/contrib/mathtools/mhsetup.ins93
-rw-r--r--macros/latex/contrib/mathtools/mhsetup.pdfbin236759 -> 236759 bytes
7 files changed, 177 insertions, 161 deletions
diff --git a/macros/latex/contrib/mathtools/empheq.ins b/macros/latex/contrib/mathtools/empheq.ins
index 265efeb2bb..632545df72 100644
--- a/macros/latex/contrib/mathtools/empheq.ins
+++ b/macros/latex/contrib/mathtools/empheq.ins
@@ -33,7 +33,7 @@
\input docstrip.tex
\Msg{************************************************************************}
\Msg{* Installation}
-\Msg{* Package: empheq 2020/03/24 v2.16 empheq}
+\Msg{* Package: empheq 2017/03/31 v2.15 empheq}
\Msg{************************************************************************}
\keepsilent
diff --git a/macros/latex/contrib/mathtools/empheq.pdf b/macros/latex/contrib/mathtools/empheq.pdf
index 5d28a71b09..237e509ed9 100644
--- a/macros/latex/contrib/mathtools/empheq.pdf
+++ b/macros/latex/contrib/mathtools/empheq.pdf
Binary files differ
diff --git a/macros/latex/contrib/mathtools/mathtools.dtx b/macros/latex/contrib/mathtools/mathtools.dtx
index 68672cfe35..4078ac8a4d 100644
--- a/macros/latex/contrib/mathtools/mathtools.dtx
+++ b/macros/latex/contrib/mathtools/mathtools.dtx
@@ -69,7 +69,7 @@
\input docstrip.tex
\Msg{************************************************************************}
\Msg{* Installation}
-\Msg{* Package: mathtools 2021/03/18 v1.25}
+\Msg{* Package: mathtools 2021/03/28 v1.26}
\Msg{************************************************************************}
\keepsilent
@@ -133,7 +133,7 @@ and the derived files
%<*driver>
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{mathtools.drv}%
- [2021/03/18 v1.25 mathematical typesetting tools]
+ [2021/03/28 v1.28 mathematical typesetting tools]
\documentclass{ltxdoc}
\IfFileExists{fourier.sty}{\usepackage{fourier}}{}
\addtolength\marginparwidth{-25pt}
@@ -321,7 +321,7 @@ colorlinks,
%
% \GetFileInfo{mathtools.drv}
%
-% \CheckSum{3364}
+% \CheckSum{3529}
%
% \title{The \pkg{mathtools} package\thanks{This file has version number
% \fileversion, last revised \filedate.}}
@@ -2982,7 +2982,7 @@ colorlinks,
% \begin{macrocode}
%<*package>
\ProvidesPackage{mathtools}%
- [2021/03/18 v1.25 mathematical typesetting tools]
+ [2021/03/28 v1.26 mathematical typesetting tools]
% \end{macrocode}
% \changes{v1.10}{2011/02/12}{Might as well make sure that we need the
% latest version of \texttt{mhsetup}}
@@ -4135,59 +4135,122 @@ colorlinks,
% \changes{v1.22}{2019/07/22}{Also added crampedsubarray}
% \changes{v1.22}{2019/07/22}{Also added fixes for smallmatrix and the
% MT versions of these}
-% \begin{macrocode}
-\newcommand\MultlinedHook{
- \renewenvironment{subarray}[1]{%
- \vcenter\bgroup
- \Let@ \restore@math@cr \default@tag
- \let\math@cr@@\AMS@math@cr@@ % <--- the fix
- \baselineskip\fontdimen10 \scriptfont\tw@
- \advance\baselineskip\fontdimen12 \scriptfont\tw@
- \lineskip\thr@@\fontdimen8 \scriptfont\thr@@
- \lineskiplimit\lineskip
- \ialign\bgroup\ifx c##1\hfil\fi
- $\m@th\scriptstyle####$\hfil\crcr
- }{%
- \crcr\egroup\egroup
- }
- \renewenvironment{crampedsubarray}[1]{%
- \vcenter\bgroup
- \Let@ \restore@math@cr \default@tag
- \let\math@cr@@\AMS@math@cr@@ % <--- the fix
- \baselineskip\fontdimen10 \scriptfont\tw@
- \advance\baselineskip\fontdimen12 \scriptfont\tw@
- \lineskip\thr@@\fontdimen8 \scriptfont\thr@@
- \lineskiplimit\lineskip
- \ialign\bgroup\ifx c##1\hfil\fi
+% \changes{v1.26}{2021/03/27}{We need a lualatex branch of this as
+% well. We need to find a better way to manage this. Patching?}
+% \begin{macrocode}
+\ifx\directlua\@undefined
+ % THIS IS NORMAL
+ \newcommand\MultlinedHook{
+ \renewenvironment{subarray}[1]{%
+ \vcenter\bgroup
+ \Let@ \restore@math@cr \default@tag
+ \let\math@cr@@\AMS@math@cr@@ % <--- the fix
+ \baselineskip\fontdimen10 \scriptfont\tw@
+ \advance\baselineskip\fontdimen12 \scriptfont\tw@
+ \lineskip\thr@@\fontdimen8 \scriptfont\thr@@
+ \lineskiplimit\lineskip
+ \ialign\bgroup\ifx c##1\hfil\fi
+ $\m@th\scriptstyle####$\hfil\crcr
+ }{%
+ \crcr\egroup\egroup
+ }
+ \renewenvironment{crampedsubarray}[1]{%
+ \vcenter\bgroup
+ \Let@ \restore@math@cr \default@tag
+ \let\math@cr@@\AMS@math@cr@@ % <--- the fix
+ \baselineskip\fontdimen10 \scriptfont\tw@
+ \advance\baselineskip\fontdimen12 \scriptfont\tw@
+ \lineskip\thr@@\fontdimen8 \scriptfont\thr@@
+ \lineskiplimit\lineskip
+ \ialign\bgroup\ifx c##1\hfil\fi
% \end{macrocode}
% \changes{v1.25}{2021/03/18}{use \cs{MT_cramped_internal:Nn} instead,
% see issue \#17}
% Here we should use the proper cramped internal macro
% \begin{macrocode}
- %% $\m@th\scriptstyle\kern-\nulldelimiterspace\radical\z@{####}$
- \span\MT_cramped_internal:Nn \scriptstyle {####}%
- \hfil\crcr
- }{%
- \crcr\egroup\egroup
- }
- % from mathtolls
- \def\MT_smallmatrix_begin:N ##1{%
- \Let@\restore@math@cr\default@tag
- \let\math@cr@@\AMS@math@cr@@ % <--- the fix
- \baselineskip6\ex@ \lineskip1.5\ex@ \lineskiplimit\lineskip
- \csname MT_smallmatrix_##1_begin:\endcsname
+ \span\MT_cramped_internal:Nn \scriptstyle {####}%
+ \hfil\crcr
+ }{%
+ \crcr\egroup\egroup
+ }
+ % from mathtools
+ \def\MT_smallmatrix_begin:N ##1{%
+ \Let@\restore@math@cr\default@tag
+ \let\math@cr@@\AMS@math@cr@@ % <--- the fix
+ \baselineskip6\ex@ \lineskip1.5\ex@ \lineskiplimit\lineskip
+ \csname MT_smallmatrix_##1_begin:\endcsname
+ }
+ % from amsmath
+ \renewenvironment{smallmatrix}{\null\,\vcenter\bgroup
+ \Let@\restore@math@cr\default@tag
+ \let\math@cr@@\AMS@math@cr@@ % <--- the fix
+ \baselineskip6\ex@ \lineskip1.5\ex@ \lineskiplimit\lineskip
+ \ialign\bgroup\hfil$\m@th\scriptstyle####$\hfil&&\thickspace\hfil
+ $\m@th\scriptstyle####$\hfil\crcr
+ }{%
+ \crcr\egroup\egroup\,%
+ }
}
- % from amsmath
- \renewenvironment{smallmatrix}{\null\,\vcenter\bgroup
- \Let@\restore@math@cr\default@tag
- \let\math@cr@@\AMS@math@cr@@ % <--- the fix
- \baselineskip6\ex@ \lineskip1.5\ex@ \lineskiplimit\lineskip
- \ialign\bgroup\hfil$\m@th\scriptstyle####$\hfil&&\thickspace\hfil
- $\m@th\scriptstyle####$\hfil\crcr
- }{%
- \crcr\egroup\egroup\,%
+\else
+% \end{macrocode}
+% The LuaLaTeX version, only difference is the definition of crampedsubarray
+% \begin{macrocode}
+ % THIS IS LUALATEX
+ \newcommand\MultlinedHook{
+ % from amsmath
+ \newenvironment{subarray}[1]{%
+ \vcenter\bgroup
+ \Let@ \restore@math@cr \default@tag
+ \let\math@cr@@\AMS@math@cr@@ % <--- the fix
+ \baselineskip \Umathstacknumup \scriptstyle
+ \advance\baselineskip \Umathstackdenomdown \scriptstyle
+ \lineskip \Umathstackvgap \scriptstyle
+ \lineskiplimit \lineskip
+ \ialign\bgroup\ifx c##1\hfil\fi
+ \Ustartmath
+ \m@th\scriptstyle####
+ \Ustopmath
+ \hfil\crcr
+ }{%
+ \crcr\egroup\egroup
+ }
+ % from mathtools
+ \newenvironment{crampedsubarray}[1]{%
+ \vcenter\bgroup
+ \Let@ \restore@math@cr \default@tag
+ \let\math@cr@@\AMS@math@cr@@ % <--- the fix
+ \baselineskip \Umathstacknumup \scriptstyle
+ \advance\baselineskip \Umathstackdenomdown \scriptstyle
+ \lineskip \Umathstackvgap \scriptstyle
+ \lineskiplimit \lineskip
+ \ialign\bgroup\ifx c##1\hfil\fi
+ \Ustartmath
+ \crampedscriptstyle{####}
+ \Ustopmath
+ \hfil\crcr
+ }{%
+ \crcr\egroup\egroup
+ }
+ % from mathtools
+ \def\MT_smallmatrix_begin:N ##1{%
+ \Let@\restore@math@cr\default@tag
+ \let\math@cr@@\AMS@math@cr@@ % <--- the fix
+ \baselineskip6\ex@ \lineskip1.5\ex@ \lineskiplimit\lineskip
+ \csname MT_smallmatrix_##1_begin:\endcsname
+ }
+ % from amsmath
+ \renewenvironment{smallmatrix}{\null\,\vcenter\bgroup
+ \Let@\restore@math@cr\default@tag
+ \let\math@cr@@\AMS@math@cr@@ % <--- the fix
+ \baselineskip6\ex@ \lineskip1.5\ex@ \lineskiplimit\lineskip
+ \ialign\bgroup\hfil$\m@th\scriptstyle####$\hfil&&\thickspace\hfil
+ $\m@th\scriptstyle####$\hfil\crcr
+ }{%
+ \crcr\egroup\egroup\,%
+ }
}
-}
+\fi
+
% \end{macrocode}
% \end{macro}
@@ -5961,6 +6024,25 @@ colorlinks,
{}\box\z@
}
% \end{macrocode}
+% For LuaLaTeX we can use much less code as they have
+% their own direct \cs{cramped...} macros. Directly listed
+% from \verb|lualatex-math.sty| v1.9 2020/09/25 by Philipp Stephani. Quote: ``Here the
+% additional set of braces is absolutely necessary, otherwise the changed
+% mathematical style would be applied to the material after the
+% \cs{mathchoice} construct. As the original (mathtools) command works in both text and
+% math mode, we use \cs{ensuremath} here.''
+% \begin{macrocode}
+\ifx\directlua\@undefined\else
+ \def\MT_cramped_internal:Nn #1#2{
+ {
+ \ensuremath {
+ \use:c { cramped \cs_to_str:N #1 } #2
+ }
+ }
+ }
+\fi
+
+% \end{macrocode}
% \end{macro}
%
% \subsubsection{Cramped versions of \texttt{\textbackslash
@@ -6019,12 +6101,18 @@ colorlinks,
% \subsubsection{Cramped versions of subarray and \cs{substack}}
%
%
-% \changes{v1.22}{2019/07/22}{Added cramped versions of subarray and \cs{substack}}
-% This was suggested by Henri Menke in
+% \changes{v1.22}{2019/07/22}{Added cramped versions of subarray and
+% \cs{substack}} This was suggested by Henri Menke in
% \url{https://github.com/latex3/latex2e/issues/149} and
-% \url{https://chat.stackexchange.com/transcript/message/50943985#50943985}. As we are slowly moving away from the expl3 like syntax, we'll implement this with an adjusted copy of \env{subarray} from \pkg{amsmath}.
+% \url{https://chat.stackexchange.com/transcript/message/50943985#50943985}.
+% As we are slowly moving away from the expl3 like syntax, we'll
+% implement this
+% with an adjusted copy of \env{subarray} from \pkg{amsmath}.
+% \changes{v1.26}{2021/03/27}{Fresh copy of subarray from \pkg{amsmath}
+% including the lualatex branch}
% \begin{environment}{crampedsubarray}
% \begin{macrocode}
+\ifx\directlua\@undefined
\newenvironment{crampedsubarray}[1]{%
\vcenter\bgroup
\Let@ \restore@math@cr \default@tag
@@ -6039,12 +6127,32 @@ colorlinks,
% \changes{v1.25}{2021/03/18}{Added \cs{MT_cramped_internal:Nn}, see
% issue \#17}
% \begin{macrocode}
- %%$\m@th\scriptstyle\kern-\nulldelimiterspace\radical\z@{##}$% <-- changed line
- \span\MT_cramped_internal:Nn \scriptstyle {##}%
- \hfil\crcr%
+ %%$\m@th\scriptstyle\kern-\nulldelimiterspace\radical\z@{##}$% <-- changed line
+ \span\MT_cramped_internal:Nn \scriptstyle {##}%
+ \hfil\crcr
}{%
-\crcr\egroup\egroup
-}
+ \crcr\egroup\egroup
+}
+\else
+\newenvironment{crampedsubarray}[1]{%
+ \vcenter\bgroup
+ \Let@ \restore@math@cr \default@tag
+ \baselineskip \Umathstacknumup \scriptstyle
+ \advance\baselineskip \Umathstackdenomdown \scriptstyle
+ \lineskip \Umathstackvgap \scriptstyle
+ \lineskiplimit \lineskip
+ \ialign\bgroup\ifx c#1\hfil\fi
+ \Ustartmath
+% \end{macrocode}
+% Here we simply use the build in cramped command from LuaLaTeX
+% \begin{macrocode}
+ \crampedscriptstyle{##}
+ \Ustopmath
+ \hfil\crcr
+}{%
+ \crcr\egroup\egroup
+}
+\fi
% \end{macrocode}
% \end{environment}
% \begin{macro}{\crampedsubstack}
diff --git a/macros/latex/contrib/mathtools/mathtools.ins b/macros/latex/contrib/mathtools/mathtools.ins
index 82b7c16ff0..ab102f076b 100644
--- a/macros/latex/contrib/mathtools/mathtools.ins
+++ b/macros/latex/contrib/mathtools/mathtools.ins
@@ -10,15 +10,16 @@
%%
%% Copyright (C) 2002-2011 by Morten Hoegholm
%% Copyright (C) 2012-2019 by Lars Madsen
-%% Copyright (C) 2012-2020 by Lars Madsen, the LaTeX3 project
+%% Copyright (C) 2020- by Lars Madsen, the LaTeX3 project
+%%
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
-%% version 1.3 of this license or (at your option) any later
+%% version 1.3c of this license or (at your option) any later
%% version. The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
-%% and version 1.3 or later is part of all distributions of
-%% LaTeX version 2005/12/01 or later.
+%% and version 1.3c or later is part of all distributions of
+%% LaTeX version 2008/05/04 or later.
%%
%% This work has the LPPL maintenance status "maintained".
%%
@@ -32,7 +33,7 @@
\input docstrip.tex
\Msg{************************************************************************}
\Msg{* Installation}
-\Msg{* Package: mathtools 2020/03/24 v1.24}
+\Msg{* Package: mathtools 2021/03/18 v1.25}
\Msg{************************************************************************}
\keepsilent
@@ -44,15 +45,15 @@ This is a generated file.
Copyright (C) 2002-2011 by Morten Hoegholm
Copyright (C) 2012-2019 by Lars Madsen
-Copyright (C) 2020 by Lars Madsen, the LaTeX3 project
+Copyright (C) 2020- by Lars Madsen, the LaTeX3 project
This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either
-version 1.3 of this license or (at your option) any later
+version 1.3c of this license or (at your option) any later
version. The latest version of this license is in
http://www.latex-project.org/lppl.txt
-and version 1.3 or later is part of all distributions of
-LaTeX version 2005/12/01 or later.
+and version 1.3c or later is part of all distributions of
+LaTeX version 2008/05/04 or later.
This work has the LPPL maintenance status "maintained".
diff --git a/macros/latex/contrib/mathtools/mathtools.pdf b/macros/latex/contrib/mathtools/mathtools.pdf
index 0ca42bfa06..b0e8d1e7ff 100644
--- a/macros/latex/contrib/mathtools/mathtools.pdf
+++ b/macros/latex/contrib/mathtools/mathtools.pdf
Binary files differ
diff --git a/macros/latex/contrib/mathtools/mhsetup.ins b/macros/latex/contrib/mathtools/mhsetup.ins
deleted file mode 100644
index edf6baa824..0000000000
--- a/macros/latex/contrib/mathtools/mhsetup.ins
+++ /dev/null
@@ -1,93 +0,0 @@
-%%
-%% This is file `mhsetup.ins',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% mhsetup.dtx (with options: `install')
-%%
-%% This is a generated file.
-%%
-%% Copyright (C) 2002-2007,2010 by Morten Hoegholm
-%% Copyright (C) 2017-2019 by Lars Madsen
-%% Copyright (C) 2020- by Lars Madsen, The LaTeX3 team
-%%
-%% This work may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either
-%% version 1.3 of this license or (at your option) any later
-%% version. The latest version of this license is in
-%% http://www.latex-project.org/lppl.txt
-%% and version 1.3 or later is part of all distributions of
-%% LaTeX version 2005/12/01 or later.
-%%
-%% This work has the LPPL maintenance status "maintained".
-%%
-%% This Current Maintainer of this work is Lars Madsen
-%% <daleif@math.au.dk>, The LaTeX3 team https://github.com/latex3/mathtools
-%%
-%% This work consists of the main source file mhsetup.dtx
-%% and the derived files
-%% mhsetup.sty, mhsetup.pdf, mhsetup.ins, mhsetup.drv.
-%%
-\input docstrip.tex
-\Msg{************************************************************************}
-\Msg{* Installation}
-\Msg{* Package: mhsetup 2017/03/31 v1.3 mhsetup}
-\Msg{************************************************************************}
-
-\keepsilent
-\askforoverwritefalse
-
-\preamble
-
-This is a generated file.
-
-Copyright (C) 2002-2007,2010 by Morten Hoegholm
-Copyright (C) 2017-2019 by Lars Madsen
-Copyright (C) 2020- by Lars Madsen, The LaTeX3 team
-
-This work may be distributed and/or modified under the
-conditions of the LaTeX Project Public License, either
-version 1.3 of this license or (at your option) any later
-version. The latest version of this license is in
- http://www.latex-project.org/lppl.txt
-and version 1.3 or later is part of all distributions of
-LaTeX version 2005/12/01 or later.
-
-This work has the LPPL maintenance status "maintained".
-
-This Current Maintainer of this work is Lars Madsen
-<daleif@math.au.dk>, The LaTeX3 team https://github.com/latex3/mathtools
-
-This work consists of the main source file mhsetup.dtx
-and the derived files
- mhsetup.sty, mhsetup.pdf, mhsetup.ins, mhsetup.drv.
-
-\endpreamble
-
-\generate{%
- \file{mhsetup.ins}{\from{mhsetup.dtx}{install}}%
- \file{mhsetup.drv}{\from{mhsetup.dtx}{driver}}%
- \usedir{tex/latex/mh}%
- \file{mhsetup.sty}{\from{mhsetup.dtx}{package}}%
-}
-
-\obeyspaces
-\Msg{************************************************************************}
-\Msg{*}
-\Msg{* To finish the installation you have to move the following}
-\Msg{* file into a directory searched by TeX:}
-\Msg{*}
-\Msg{* mhsetup.sty}
-\Msg{*}
-\Msg{* To produce the documentation run the file `mhsetup.drv'}
-\Msg{* through LaTeX.}
-\Msg{*}
-\Msg{* Happy TeXing!}
-\Msg{*}
-\Msg{************************************************************************}
-
-\endbatchfile
-\endinput
-%%
-%% End of file `mhsetup.ins'.
diff --git a/macros/latex/contrib/mathtools/mhsetup.pdf b/macros/latex/contrib/mathtools/mhsetup.pdf
index cdade1846e..c1f853e0e2 100644
--- a/macros/latex/contrib/mathtools/mhsetup.pdf
+++ b/macros/latex/contrib/mathtools/mhsetup.pdf
Binary files differ