From 66f6e60b6dc60cc08482030b92df223b6a51b15f Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Sun, 29 Aug 2021 03:02:07 +0000
Subject: CTAN sync 202108290302

---
 .../l3backend-testphase.dtx                        | 61 +++++++++++++++++++---
 1 file changed, 54 insertions(+), 7 deletions(-)

(limited to 'macros/latex/contrib/pdfmanagement-testphase/l3backend-testphase.dtx')

diff --git a/macros/latex/contrib/pdfmanagement-testphase/l3backend-testphase.dtx b/macros/latex/contrib/pdfmanagement-testphase/l3backend-testphase.dtx
index 0102b1c574..7c902d8b92 100644
--- a/macros/latex/contrib/pdfmanagement-testphase/l3backend-testphase.dtx
+++ b/macros/latex/contrib/pdfmanagement-testphase/l3backend-testphase.dtx
@@ -45,7 +45,7 @@
 %    }^^A
 % }
 %
-% \date{Version 0.95h, released 2021-07-31}
+% \date{Version 0.95i, released 2021-08-28}
 %
 % \maketitle
 %
@@ -56,27 +56,27 @@
 %    \begin{macrocode}
 %<drivers>\ProvidesExplFile
 %<*dvipdfmx>
-  {l3backend-testphase-dvipdfmx.def}{2021-07-31}{}
+  {l3backend-testphase-dvipdfmx.def}{2021-08-28}{}
   {LaTeX~PDF~management~testphase~bundle~backend~support: dvipdfmx}
 %</dvipdfmx>
 %<*dvips>
-  {l3backend-testphase-dvips.def}{2021-07-31}{}
+  {l3backend-testphase-dvips.def}{2021-08-28}{}
   {LaTeX~PDF~management~testphase~bundle~backend~support: dvips}
 %</dvips>
 %<*dvisvgm>
-  {l3backend-testphase-dvisvgm.def}{2021-07-31}{}
+  {l3backend-testphase-dvisvgm.def}{2021-08-28}{}
   {LaTeX~PDF~management~testphase~bundle~backend~support: dvisvgm}
 %</dvisvgm>
 %<*luatex>
-  {l3backend-testphase-luatex.def}{2021-07-31}{}
+  {l3backend-testphase-luatex.def}{2021-08-28}{}
   {LaTeX~PDF~management~testphase~bundle~backend~support: PDF output (LuaTeX)}
 %</luatex>
 %<*pdftex>
-  {l3backend-testphase-pdftex.def}{2021-07-31}{}
+  {l3backend-testphase-pdftex.def}{2021-08-28}{}
   {LaTeX~PDF~management~testphase~bundle~backend~support: PDF output (pdfTeX)}
 %</pdftex>
 %<*xdvipdfmx>
-  {l3backend-testphase-xetex.def}{2021-07-31}{}
+  {l3backend-testphase-xetex.def}{2021-08-28}{}
   {LaTeX~PDF~management~testphase~bundle~backend~support: XeTeX}
 %</xdvipdfmx>
 %    \end{macrocode}
@@ -1153,6 +1153,53 @@
 %</dvisvgm>
 %    \end{macrocode}
 % \end{macro}
+%  \subsubsection{Additional annotation commands}
+% Starting with texlive 2021 pdftex and luatex offer commands to interrupt
+% a link. That can for example be used to exclude the header and footer from
+% the link. We add here backend support for this.
+%    \begin{macrocode}
+%<*drivers>
+\cs_new_protected:Npn \@@_backend_link_off:{}
+\cs_new_protected:Npn \@@_backend_link_on: {}
+%</drivers>
+%<*pdftex>
+\cs_if_exist:NT \pdfrunninglinkoff
+ {
+   \cs_set_protected:Npn \@@_backend_link_off:
+    {
+      \pdfrunninglinkoff
+    }
+   \cs_set_protected:Npn \@@_backend_link_on:
+    {
+      \pdfrunninglinkon
+    }
+ }
+%</pdftex>
+%<*luatex>
+\int_compare:nNnT {\tex_luatexversion:D } > {112}
+ {
+   \cs_set_protected:Npn \@@_backend_link_off:
+    {
+      \pdfextension linkstate 1
+    }
+   \cs_set_protected:Npn \@@_backend_link_on:
+    {
+      \pdfextension linkstate 0
+    }
+ }
+%</luatex>
+%<*dvipdfmx|xdvipdfmx>
+  \cs_set_protected:Npn \@@_backend_link_off:
+    {
+     \@@_backend:n { nolink }
+    }
+   \cs_set_protected:Npn \@@_backend_link_on:
+    {
+      \@@_backend:n { link }
+    }
+%</dvipdfmx|xdvipdfmx>
+%    \end{macrocode}
+%
 %  \subsubsection{Form XObject / backend }
 %  \begin{macro}{ \@@_backend_xform_new:nnnn }
 %  \begin{arguments}
-- 
cgit v1.2.3

