[latex3-commits] [git/LaTeX3-latex3-pdfresources] testxmp: update firstaid for xmp changes (54affcc)
Ulrike Fischer
fischer at troubleshooting-tex.de
Thu Sep 8 18:50:20 CEST 2022
Repository : https://github.com/latex3/pdfresources
On branch : testxmp
Link : https://github.com/latex3/pdfresources/commit/54affcc7121d838f6a3eceb831b8a33d4e12982c
>---------------------------------------------------------------
commit 54affcc7121d838f6a3eceb831b8a33d4e12982c
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Thu Sep 8 18:50:20 2022 +0200
update firstaid for xmp changes
>---------------------------------------------------------------
54affcc7121d838f6a3eceb831b8a33d4e12982c
pdfmanagement-firstaid.dtx | 26 +++++++++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)
diff --git a/pdfmanagement-firstaid.dtx b/pdfmanagement-firstaid.dtx
index f02cc7e..c9105e1 100644
--- a/pdfmanagement-firstaid.dtx
+++ b/pdfmanagement-firstaid.dtx
@@ -68,7 +68,7 @@
{LaTeX PDF management testphase bundle / firstaid-patches}
%<@@=pdfmanagement>
-\clist_map_inline:nn {pgf,transparent,hyperxmp,pdflscape,xcolor,color,beamer,output,colorspace,fontspec}
+\clist_map_inline:nn {pgf,transparent,hyperxmp,xmp,pdflscape,xcolor,color,beamer,output,colorspace,fontspec}
{
\bool_new:c { g_@@_firstaid_#1_bool }
\bool_gset_true:c { g_@@_firstaid_#1_bool }
@@ -84,6 +84,10 @@
{ loading~pdfmanagement~firstaid~code~for~#1 }
\msg_new:nnn { pdfmanagement } { firstaid-changed }
{ package~#1~has~changed.~Check~if~patch~is~still~valid! }
+\msg_new:nnn { pdfmanagement } { firstaid-disabled }
+ { The~loading~of~package~#1~is~disabled.\\
+ It~is~not~compatible~with~the~PDF~management. }
+
% \end{macrocode}
% \subsection{Fontspec}
% When using luaLaTeX opacity is broken (issue \#30) as
@@ -319,6 +323,26 @@
}
{\RequirePackage{hyperxmp-patches-tmp-ltx}}
}
+% \end{macrocode}
+% \subsection{xmp}
+% This handles the new xmp code.
+% \begin{macrocode}
+\bool_if:NT \g_@@_firstaid_xmp_bool
+ {
+ \disable at package@load{hyperxmp}{\msg_warning:nnn{pdfmanagement}{firstaid-disabled}{hyperxmp}}
+ \disable at package@load{pdfx} {\msg_warning:nnn{pdfmanagement}{firstaid-disabled}{pdfx}}
+ \AddToHook
+ {
+ file/doclicense.sty/after
+ }
+ {
+ \hypersetup
+ {
+ pdfcopyright = {\doclicenseLongTextForHyperref},
+ pdflicenseurl = {\doclicenseURL},
+ }
+ }
+ }
%</package>
% \end{macrocode}
% \subsection{\pkg{colorspace}}
More information about the latex3-commits
mailing list.