summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/pdfmanagement-testphase/pdfmanagement-firstaid.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-11-04 19:58:53 +0000
committerKarl Berry <karl@freefriends.org>2022-11-04 19:58:53 +0000
commitec15621ba0703851d4eb60c85e0ebe016192ed03 (patch)
tree494cfc499bfcd6f029b7130110e8c2df11735069 /Master/texmf-dist/source/latex/pdfmanagement-testphase/pdfmanagement-firstaid.dtx
parentc688d8a9a01696b4f39e65fa8e834c59d49436a0 (diff)
pdfmanagement-testphase (4nov22)
git-svn-id: svn://tug.org/texlive/trunk@64931 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/pdfmanagement-testphase/pdfmanagement-firstaid.dtx')
-rw-r--r--Master/texmf-dist/source/latex/pdfmanagement-testphase/pdfmanagement-firstaid.dtx86
1 files changed, 58 insertions, 28 deletions
diff --git a/Master/texmf-dist/source/latex/pdfmanagement-testphase/pdfmanagement-firstaid.dtx b/Master/texmf-dist/source/latex/pdfmanagement-testphase/pdfmanagement-firstaid.dtx
index e7d445088c3..45174deaae7 100644
--- a/Master/texmf-dist/source/latex/pdfmanagement-testphase/pdfmanagement-firstaid.dtx
+++ b/Master/texmf-dist/source/latex/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}