[latex3-commits] [git/LaTeX3-latex3-latex2e] everymath: Adjust where "cases" is loaded (327f56ed)
Joseph Wright
joseph.wright at morningstar2.co.uk
Tue Jan 17 10:13:34 CET 2023
Repository : https://github.com/latex3/latex2e
On branch : everymath
Link : https://github.com/latex3/latex2e/commit/327f56edaef2aaa94c865ecd623e3572fdd0fe1e
>---------------------------------------------------------------
commit 327f56edaef2aaa94c865ecd623e3572fdd0fe1e
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Tue Jan 17 09:13:34 2023 +0000
Adjust where "cases" is loaded
>---------------------------------------------------------------
327f56edaef2aaa94c865ecd623e3572fdd0fe1e
required/latex-lab/latex-lab-mathcapture.dtx | 4 +---
required/latex-lab/latex-lab-mathpkg.dtx | 2 ++
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/required/latex-lab/latex-lab-mathcapture.dtx b/required/latex-lab/latex-lab-mathcapture.dtx
index ad25d44b..28191619 100644
--- a/required/latex-lab/latex-lab-mathcapture.dtx
+++ b/required/latex-lab/latex-lab-mathcapture.dtx
@@ -128,12 +128,10 @@
%
% Loading \pkg{amsmath} is an absolute requirement: this avoids needing to
% have conditional definitions and deals with how to define \cs{[}/\cs{]}
-% neatly. The \pkg{cases} pacakge needs to be loaded after \pkg{amsmath},
-% so loading is forced.
+% neatly.
% \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/latex-lab-mathpkg.dtx b/required/latex-lab/latex-lab-mathpkg.dtx
index aa5fd2d4..14d8e943 100644
--- a/required/latex-lab/latex-lab-mathpkg.dtx
+++ b/required/latex-lab/latex-lab-mathpkg.dtx
@@ -86,7 +86,9 @@
}
% \end{macrocode}
%
+% Force loading of \pkg{amsmath} before \pkg{cases}.
% \begin{macrocode}
+\AddToHook {package/cases/before}{\RequirePackage{amsmath}}
\AddToHook{package/cases/after}{
\RegisterMathEnvironment{subnumcases}
}
More information about the latex3-commits
mailing list.