summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-firstaid.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-firstaid.dtx')
-rw-r--r--macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-firstaid.dtx38
1 files changed, 25 insertions, 13 deletions
diff --git a/macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-firstaid.dtx b/macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-firstaid.dtx
index f02cc7ec55..e7d445088c 100644
--- a/macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-firstaid.dtx
+++ b/macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-firstaid.dtx
@@ -23,10 +23,9 @@
% for those people who are interested.
%
%<*driver>
-\RequirePackage{pdfmanagement-testphase}
\DocumentMetadata{pdfstandard=A-2b}
\documentclass[full]{l3doc}
-\usepackage{array,booktabs,hyperxmp}
+\usepackage{array,booktabs}
\hypersetup{pdfauthor=The LaTeX Project,pdftitle=pdfmanagement-firstaid
(LaTeX PDF management testphase bundle)}
\begin{document}
@@ -48,7 +47,7 @@
% }^^A
% }
%
-% \date{Version 0.95r, released 2022-08-24}
+% \date{Version 0.95s, released 2022-09-26}
%
% \maketitle
% \begin{documentation}
@@ -64,11 +63,11 @@
% |debug={firstaidoff={name1,name2,...},...}|.
% \begin{macrocode}
%<*package>
-\ProvidesExplPackage{pdfmanagement-firstaid}{2022-08-24}{0.95r}
+\ProvidesExplPackage{pdfmanagement-firstaid}{2022-09-26}{0.95s}
{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,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 +83,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
@@ -308,16 +311,25 @@
\declare@file@substitution{pdflscape.sty}{pdflscape-ltx.sty}
}
% \end{macrocode}
-% \subsection{hyperxmp}
-% We add some code at the end of hyperxmp.sty.
+%
+% \subsection{xmp}
+% This handles the new xmp code.
% \begin{macrocode}
-\bool_if:NT \g_@@_firstaid_hyperxmp_bool
+\bool_if:NT \g_@@_firstaid_xmp_bool
{
- \AddToHook
- {
- file/hyperxmp.sty/after
- }
- {\RequirePackage{hyperxmp-patches-tmp-ltx}}
+ \disable@package@load{hyperxmp}{\msg_warning:nnn{pdfmanagement}{firstaid-disabled}{hyperxmp}}
+ \disable@package@load{pdfx} {\msg_warning:nnn{pdfmanagement}{firstaid-disabled}{pdfx}}
+ \AddToHook
+ {
+ file/doclicense.sty/after
+ }
+ {
+ \hypersetup
+ {
+ pdfcopyright = {\doclicenseLongTextForHyperref},
+ pdflicenseurl = {\doclicenseURL},
+ }
+ }
}
%</package>
% \end{macrocode}