summaryrefslogtreecommitdiff
path: root/macros/latex-dev/required/firstaid/latex2e-first-aid-for-external-files.dtx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-10-04 03:00:59 +0000
committerNorbert Preining <norbert@preining.info>2022-10-04 03:00:59 +0000
commit30b3429f0e138c93c5f1ba1d1a6d46728c0943e9 (patch)
tree6c15cc0a1c291188deaa6f1c37d469d4e4dd27c7 /macros/latex-dev/required/firstaid/latex2e-first-aid-for-external-files.dtx
parent0ec122c100e39ea118fdb2c4b6223ece8053f439 (diff)
CTAN sync 202210040300
Diffstat (limited to 'macros/latex-dev/required/firstaid/latex2e-first-aid-for-external-files.dtx')
-rw-r--r--macros/latex-dev/required/firstaid/latex2e-first-aid-for-external-files.dtx25
1 files changed, 23 insertions, 2 deletions
diff --git a/macros/latex-dev/required/firstaid/latex2e-first-aid-for-external-files.dtx b/macros/latex-dev/required/firstaid/latex2e-first-aid-for-external-files.dtx
index 1e6e286a73..2a1e2a8d5e 100644
--- a/macros/latex-dev/required/firstaid/latex2e-first-aid-for-external-files.dtx
+++ b/macros/latex-dev/required/firstaid/latex2e-first-aid-for-external-files.dtx
@@ -111,8 +111,8 @@
% \end{macrocode}
%
% \begin{macrocode}
-\def\LaTeXFirstAidDate{2022/02/20}
-\def\LaTeXFirstAidVersion{v1.0r}
+\def\LaTeXFirstAidDate{2022/06/23}
+\def\LaTeXFirstAidVersion{v1.0s}
% \end{macrocode}
%
% \begin{macrocode}
@@ -586,6 +586,27 @@
% \end{macrocode}
%
%
+% \subsection{First aid for \pkg{memoir}}
+%
+% The introduction of \cs{stockheight} and \cs{stockwidth} into the
+% kernel requires some first aid. This has to go in \emph{before}
+% loading the class, so we cannot check the version string here.
+% \begin{macrocode}
+\AddToHook{file/memoir.cls/before}[firstaid]{%
+ \expandafter\def\expandafter\@tempa\string\dimen{}%
+ \edef\kernel@stockheight{\expandafter\@tempa\meaning\stockheight}%
+ \edef\kernel@stockwidth{\expandafter\@tempa\meaning\stockwidth}%
+ \let\stockheight\@undefined
+ \let\stockwidth\@undefined
+}
+\AddToHook{file/memoir.cls/after}[firstaid]{%
+ \dimen\kernel@stockheight=\stockheight
+ \dimen\kernel@stockwidth=\stockwidth
+ \dimendef\stockheight=\kernel@stockheight
+ \dimendef\stockwidth=\kernel@stockwidth
+}
+% \end{macrocode}
+%
%
% \subsection[Temporary fixes for the kernel (until the next
% patch-level release)]