diff options
author | Norbert Preining <norbert@preining.info> | 2022-11-04 03:01:54 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-11-04 03:01:54 +0000 |
commit | be4efcdb2f47821698dc8dbde89722b4f0c2e4b0 (patch) | |
tree | 614bb8f887beb481b24b6ad755bbba023fad6845 /macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-firstaid.dtx | |
parent | c3c9975778ff2848e51f6debf733abe8ca930bd3 (diff) |
CTAN sync 202211040301
Diffstat (limited to 'macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-firstaid.dtx')
-rw-r--r-- | macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-firstaid.dtx | 86 |
1 files changed, 58 insertions, 28 deletions
diff --git a/macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-firstaid.dtx b/macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-firstaid.dtx index e7d445088c..45174deaae 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-firstaid.dtx +++ b/macros/latex/contrib/pdfmanagement-testphase/pdfmanagement-firstaid.dtx @@ -47,7 +47,7 @@ % }^^A % } % -% \date{Version 0.95s, released 2022-09-26} +% \date{Version 0.95t, released 2022-11-03} % % \maketitle % \begin{documentation} @@ -63,7 +63,7 @@ % |debug={firstaidoff={name1,name2,...},...}|. % \begin{macrocode} %<*package> -\ProvidesExplPackage{pdfmanagement-firstaid}{2022-09-26}{0.95s} +\ProvidesExplPackage{pdfmanagement-firstaid}{2022-11-03}{0.95t} {LaTeX PDF management testphase bundle / firstaid-patches} %<@@=pdfmanagement> @@ -86,6 +86,9 @@ \msg_new:nnn { pdfmanagement } { firstaid-disabled } { The~loading~of~package~#1~is~disabled.\\ It~is~not~compatible~with~the~PDF~management. } +\msg_new:nnn { pdfmanagement } { firstaid-too-old } + { Package~#1~is~too~old~and~not~compatible.\\ + Get~at~least~version~#2.} % \end{macrocode} % \subsection{Fontspec} @@ -124,24 +127,35 @@ } % \end{macrocode} % \subsection{Output routine} -% This load as few patches for the LaTeX output routine commands. They add -% hooks for the interruption of links and for paragraph tagging. +% The patches for the LaTeX output routine commands for the tagging +% of the header/footer, the suppressing of links +% and the patch to multicol for the para tagging +% by default, but must be requested with the key \texttt{testphase=new-or-1}. +% But until latex-lab has been updated we must ensure that they are loaded with +% the various phases. % \begin{macrocode} \bool_if:NT \g_@@_firstaid_output_bool { - \RequirePackage{output-patches-tmp-ltx} - } % \end{macrocode} - -% \subsection{\pkg{beamer}} -% \pkg{beamer} makes use of the now unsupported syntax |linkbordercolor={.5 .5 .5}|. -% To avoid an error we define this color as a name. +% This catches also phase-II and tagpdf. % \begin{macrocode} -\bool_if:NT \g_@@_firstaid_beamer_bool - { - \color_set:nnn{.5~.5~.5}{rgb}{0.5,0.5,0.5} + \file_if_exist:nF {new-or-1-latex-lab-testphase.ltx} + { + \AddToHook{package/latex-lab-testphase-new-or/after} + {\RequirePackage{output-patches-tmp-ltx}} +% \end{macrocode} +% This is for phase-I +% \begin{macrocode} + \AddToHook{package/tagpdf/after} + {\RequirePackage{output-patches-tmp-ltx}} + } } % \end{macrocode} + +% \subsection{\pkg{beamer}} +% \pkg{beamer} made use of the now unsupported syntax |linkbordercolor={.5 .5 .5}|. +% This has been changed so the patch has been removed. +% % \subsection{\pkg{color}} % % \pkg{color} is not incompatible, but the new \pkg{hyperref} driver makes use of @@ -296,19 +310,35 @@ % \end{macrocode} % \subsection{\pkg{transparent}} -% We simply replace by the new version. +% We check if the new version is used and issue a warning otherwise % \begin{macrocode} \bool_if:NT \g_@@_firstaid_transparent_bool { - \declare@file@substitution{transparent.sty}{transparent-ltx.sty} + \AddToHook{package/transparent/after} + { + \@ifpackagelater{transparent}{2022-10-27}{} + { + \msg_warning:nnnn{pdfmanagement}{firstaid-too-old} + {transparent} + {1.5~from~2022-10-27} + } + } } % \end{macrocode} % \subsection{\pkg{pdflscape}} -% We simply replace by the new version. +% We check if the new version is used and issue a warning otherwise % \begin{macrocode} \bool_if:NT \g_@@_firstaid_pdflscape_bool { - \declare@file@substitution{pdflscape.sty}{pdflscape-ltx.sty} + \AddToHook{package/pdflscape/after} + { + \@ifpackagelater{pdflscape}{2022-10-27}{} + { + \msg_warning:nnnn{pdfmanagement}{firstaid-too-old} + {pdflscape} + {0.13~from~2022-10-27} + } + } } % \end{macrocode} % @@ -319,17 +349,17 @@ { \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}, - } - } + \AddToHook{package/doclicense/after} + { + \AtBeginDocument + { + \hypersetup + { + pdfcopyright = {\doclicenseLongTextForHyperref}, + pdflicenseurl = {\doclicenseURL}, + } + } + } } %</package> % \end{macrocode} |