[latex3-commits] [git/LaTeX3-latex3-pdfresources] splitting: moving code (32956b3)
Ulrike Fischer
fischer at troubleshooting-tex.de
Mon Jul 13 23:51:55 CEST 2020
Repository : https://github.com/latex3/pdfresources
On branch : splitting
Link : https://github.com/latex3/pdfresources/commit/32956b3bee6d62570c5eee0b7da8951d6168a6d0
>---------------------------------------------------------------
commit 32956b3bee6d62570c5eee0b7da8951d6168a6d0
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Mon Jul 13 23:51:55 2020 +0200
moving code
>---------------------------------------------------------------
32956b3bee6d62570c5eee0b7da8951d6168a6d0
l3pdfmeta.dtx | 4 +++-
pdfresources-patches.dtx | 3 +++
pdfresources.dtx | 8 ++++++--
testfiles/annot.pvt | 2 ++
testfiles/xform-preamble.pvt | 3 ++-
5 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/l3pdfmeta.dtx b/l3pdfmeta.dtx
index 4660fd6..f9b9d51 100644
--- a/l3pdfmeta.dtx
+++ b/l3pdfmeta.dtx
@@ -112,7 +112,9 @@
\RequirePackage{l3pdf}
\RequirePackage{lthooks} %
% %load backend driver
- %\file_input:n {l3\g__sys_backend_tl-pdf.def}
+ \ExplSyntaxOn\makeatletter
+ \file_input:n {l3\g__sys_backend_tl-pdf.def}
+ \ExplSyntaxOff\makeatother
\bool_gset_true:N \g_@@_Core_active_bool
\keys_set_filter:nnn { pdf / setup } { init } { #1 }
}
diff --git a/pdfresources-patches.dtx b/pdfresources-patches.dtx
index d5a1414..d18936e 100644
--- a/pdfresources-patches.dtx
+++ b/pdfresources-patches.dtx
@@ -75,7 +75,10 @@
% ColorSpace and Pattern (Shadings are added to the xform resources and so probably
% unproblematic for now).
% \begin{macrocode}
+%<@@=pdf>
%<*package>
+\ProvidesExplPackage {pdfresources-patches} {2020-07-13} {0.7}
+ {experimental pdf-resource management / patches}
% patches for xetex/dvips doesn't make much sense for colorspace and
% transparent. But pgf should be tested sometimes.
\RequirePackage{etoolbox}
diff --git a/pdfresources.dtx b/pdfresources.dtx
index df13233..85924e7 100644
--- a/pdfresources.dtx
+++ b/pdfresources.dtx
@@ -752,7 +752,7 @@
% \end{function}
% \begin{macrocode}
%<*package>
-\cs_set_eq:NN \pdfannot_link_last: \@@_backend_link_last:
+\cs_new:Nn \pdfannot_link_last: { \@@_backend_link_last: }
%</package>
% \end{macrocode}
% \begin{function}[added = 2020-06-29]{ \pdfannot_last: }
@@ -783,7 +783,11 @@
% \end{function}
% \begin{macrocode}
%<*package>
-\cs_set_eq:NN \pdfannot_link_margin:n \@@_backend_link_margin:n
+\cs_new_protected:Npn \pdfannot_link_margin:n #1
+ {
+ \@@_backend_link_margin:n { #1 }
+ }
+
%</package>
% \end{macrocode}
diff --git a/testfiles/annot.pvt b/testfiles/annot.pvt
index 0209ba8..d4a6003 100644
--- a/testfiles/annot.pvt
+++ b/testfiles/annot.pvt
@@ -1,4 +1,6 @@
\input{regression-test}
+\RequirePackage{pdfresources}
+\DeclareDocumentMetaData{}
\documentclass{article}
\usepackage{pdfresources}
\ExplSyntaxOn
diff --git a/testfiles/xform-preamble.pvt b/testfiles/xform-preamble.pvt
index f031215..c943213 100644
--- a/testfiles/xform-preamble.pvt
+++ b/testfiles/xform-preamble.pvt
@@ -1,6 +1,7 @@
\input{regression-test}
+\RequirePackage{pdfresources}
+\DeclareDocumentMetaData{}
\documentclass{article}
-\usepackage{pdfresources}
\ExplSyntaxOn
\pdf_xform_new:nnn {myxformA}{/yyy~(bla)}{yyyyy}
\ExplSyntaxOff
More information about the latex3-commits
mailing list.