[latex3-commits] [git/LaTeX3-latex3-latex2e] develop+master: sigh (b7255b3e)

Frank Mittelbach frank.mittelbach at latex-project.org
Thu Jan 7 21:12:45 CET 2021


Repository : https://github.com/latex3/latex2e
On branch  : develop+master
Link       : https://github.com/latex3/latex2e/commit/b7255b3e7512cd39a895a2a776f89f2c35d74a76

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

commit b7255b3e7512cd39a895a2a776f89f2c35d74a76
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Thu Jan 7 21:12:45 2021 +0100

    sigh


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

b7255b3e7512cd39a895a2a776f89f2c35d74a76
 required/firstaid/latex2e-first-aid-for-external-files.dtx | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/required/firstaid/latex2e-first-aid-for-external-files.dtx b/required/firstaid/latex2e-first-aid-for-external-files.dtx
index c8621e3c..eea4ae1b 100644
--- a/required/firstaid/latex2e-first-aid-for-external-files.dtx
+++ b/required/firstaid/latex2e-first-aid-for-external-files.dtx
@@ -383,14 +383,15 @@
 \ExplSyntaxOff
 %    \end{macrocode}
 %
-% Same issue with \pkg{pgfmorepages}.
+% Same issue with \pkg{pgfmorepages} but slightly different implementation (sigh).
 %
 %    \begin{macrocode}
 \ExplSyntaxOn
-\AddToHook{file/after/pgfmorepages.sty}[firstaid]{%
-  \cs_gset_eq:NN \shipout \pgfpages at originalshipout 
-  \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D
-  \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout
+\AddToHook{file/after/pgfmorepages.sty}[firstaid]{
+  \cs_set_nopar:Npn \pgfhookintoshipout {
+    \cs_set_eq:NN \pgfpages at originalshipout \tex_shipout:D
+    \cs_set_eq:NN \tex_shipout:D \pgfpages at interceptshipout
+  }
 }
 \ExplSyntaxOff
 %    \end{macrocode}





More information about the latex3-commits mailing list.