[latex3-commits] [git/LaTeX3-latex3-pdfresources] test-new-hooks: change hook order -- pgf patch was too late for luatex (f811754)
Ulrike Fischer
fischer at troubleshooting-tex.de
Mon May 11 14:56:10 CEST 2020
Repository : https://github.com/latex3/pdfresources
On branch : test-new-hooks
Link : https://github.com/latex3/pdfresources/commit/f811754e5ac1cc344cee4b3992128061d0d67737
>---------------------------------------------------------------
commit f811754e5ac1cc344cee4b3992128061d0d67737
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Mon May 11 14:56:10 2020 +0200
change hook order -- pgf patch was too late for luatex
>---------------------------------------------------------------
f811754e5ac1cc344cee4b3992128061d0d67737
pdfresources.dtx | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/pdfresources.dtx b/pdfresources.dtx
index 1d44cb4..d43bc3d 100644
--- a/pdfresources.dtx
+++ b/pdfresources.dtx
@@ -3870,6 +3870,17 @@
% it can not be avoided to recreate the objects (and so to get duplicates)
% as colorspace uses temporary macros whose contents is lost.
% \begin{macrocode}
+% this must be earlier, to avoid problems with luatex which has two pageresources
+% lua/tex
+\hook_gput_code:nnn {begindocument} {pdf}
+ {
+ \tl_if_exist:NT \spc at op
+ {
+ \def\spc at Pageresources#1{}
+ }
+
+ }
+
\hook_gput_code:nnn {begindocument/end} {pdf}
%\AtEndPreamble
{
@@ -3899,7 +3910,6 @@
{Page/Resources/ExtGState}
{SPCop}
{\@@_backend_object_ref:n {__spc_extgstate_op_true1}}
- \def\spc at Pageresources#1{}
}
}
% \end{macrocode}
More information about the latex3-commits
mailing list.