[latex3-commits] [git/LaTeX3-latex3-latex2e] everymath: Load amsmath before cases if necessary (0ae1cbee)
Joseph Wright
joseph.wright at morningstar2.co.uk
Mon Jan 9 11:42:59 CET 2023
Repository : https://github.com/latex3/latex2e
On branch : everymath
Link : https://github.com/latex3/latex2e/commit/0ae1cbee018283055579e841ff700b7d34df89ea
>---------------------------------------------------------------
commit 0ae1cbee018283055579e841ff700b7d34df89ea
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Mon Jan 9 10:42:59 2023 +0000
Load amsmath before cases if necessary
>---------------------------------------------------------------
0ae1cbee018283055579e841ff700b7d34df89ea
required/latex-lab/latex-lab-mathcapture.dtx | 4 +-
.../testfiles-mathcapture/mathcapture-011.tlg | 65 +++++++++++++++++++++-
2 files changed, 67 insertions(+), 2 deletions(-)
diff --git a/required/latex-lab/latex-lab-mathcapture.dtx b/required/latex-lab/latex-lab-mathcapture.dtx
index 24401e2b..fc361f92 100644
--- a/required/latex-lab/latex-lab-mathcapture.dtx
+++ b/required/latex-lab/latex-lab-mathcapture.dtx
@@ -117,10 +117,12 @@
%
% Loading \pkg{amsmath} is an absolute requirement: this avoids needing to
% have conditional definitions and deals with how to define \cs{[}/\cs{]}
-% neatly.
+% neatly. The \pkg{cases} pacakge needs to be loaded after \pkg{amsmath},
+% so loading is forced.
% \begin{macrocode}
\tl_gput_right:Nn \@kernel at before@begindocument
{ \RequirePackage { amsmath } }
+\AddToHook { file/cases.sty/before } { \RequirePackage { amsmath } }
% \end{macrocode}
%
% \subsection{Data structures}
diff --git a/required/latex-lab/testfiles-mathcapture/mathcapture-011.tlg b/required/latex-lab/testfiles-mathcapture/mathcapture-011.tlg
index de294a36..b5200459 100644
--- a/required/latex-lab/testfiles-mathcapture/mathcapture-011.tlg
+++ b/required/latex-lab/testfiles-mathcapture/mathcapture-011.tlg
@@ -1,6 +1,69 @@
This is a generated file for the l3build validation system.
Don't change this file in any respect.
-(../cases.sty
+(amsmath.sty
+Package: amsmath ....-..-.. v... AMS math features
+\@mathmargin=\skip...
+For additional information on amsmath, use the `?' option.
+(amstext.sty
+Package: amstext ....-..-.. v... AMS text
+(amsgen.sty
+File: amsgen.sty ....-..-.. v... generic functions
+\@emptytoks=\toks...
+\ex@=\dimen...
+)) (amsbsy.sty
+Package: amsbsy ....-..-.. v... Bold Symbols
+\pmbraise@=\dimen...
+) (amsopn.sty
+Package: amsopn ....-..-.. v... operator names
+)
+\inf at bad=\count...
+LaTeX Info: Redefining \frac on input line ....
+\uproot@=\count...
+\leftroot@=\count...
+LaTeX Info: Redefining \overline on input line ....
+LaTeX Info: Redefining \colon on input line ....
+\classnum@=\count...
+\DOTSCASE@=\count...
+LaTeX Info: Redefining \ldots on input line ....
+LaTeX Info: Redefining \dots on input line ....
+LaTeX Info: Redefining \cdots on input line ....
+\Mathstrutbox@=\box...
+\strutbox@=\box...
+LaTeX Info: Redefining \big on input line ....
+LaTeX Info: Redefining \Big on input line ....
+LaTeX Info: Redefining \bigg on input line ....
+LaTeX Info: Redefining \Bigg on input line ....
+\big at size=\dimen...
+LaTeX Font Info: Redeclaring font encoding OML on input line ....
+LaTeX Font Info: Redeclaring font encoding OMS on input line ....
+\macc at depth=\count...
+LaTeX Info: Redefining \bmod on input line ....
+LaTeX Info: Redefining \pmod on input line ....
+LaTeX Info: Redefining \smash on input line ....
+LaTeX Info: Redefining \relbar on input line ....
+LaTeX Info: Redefining \Relbar on input line ....
+\c at MaxMatrixCols=\count...
+\dotsspace@=\muskip...
+\c at parentequation=\count...
+\dspbrk at lvl=\count...
+\tag at help=\toks...
+\row@=\count...
+\column@=\count...
+\maxfields@=\count...
+\andhelp@=\toks...
+\eqnshift@=\dimen...
+\alignsep@=\dimen...
+\tagshift@=\dimen...
+\tagwidth@=\dimen...
+\totwidth@=\dimen...
+\lineht@=\dimen...
+\@envbody=\toks...
+\multlinegap=\skip...
+\multlinetaggap=\skip...
+\mathdisplay at stack=\toks...
+LaTeX Info: Redefining \[ on input line ....
+LaTeX Info: Redefining \] on input line ....
+) (../cases.sty
Package: cases ....-..-.. ver 3.2
\numc at numwid=\dimen...
)
More information about the latex3-commits
mailing list.