summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tagpdf/tagpdf.dtx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-05-31 03:04:25 +0000
committerNorbert Preining <norbert@preining.info>2022-05-31 03:04:25 +0000
commit3edd04afa0bdf4e328d976fe85603e2421e36d2a (patch)
tree772b169a412a8479c33e330349b9e5508bf135ca /macros/latex/contrib/tagpdf/tagpdf.dtx
parente86bbda34fc68baf4c550857dde06eb51a304c0d (diff)
CTAN sync 202205310304
Diffstat (limited to 'macros/latex/contrib/tagpdf/tagpdf.dtx')
-rw-r--r--macros/latex/contrib/tagpdf/tagpdf.dtx23
1 files changed, 20 insertions, 3 deletions
diff --git a/macros/latex/contrib/tagpdf/tagpdf.dtx b/macros/latex/contrib/tagpdf/tagpdf.dtx
index 95154859ee..32b4100163 100644
--- a/macros/latex/contrib/tagpdf/tagpdf.dtx
+++ b/macros/latex/contrib/tagpdf/tagpdf.dtx
@@ -81,7 +81,7 @@
% \begin{macrocode}
%<@@=tag>
%<*package>
-\ProvidesExplPackage {tagpdf} {2022-05-11} {0.94}
+\ProvidesExplPackage {tagpdf} {2022-05-29} {0.95}
{ A package to experiment with pdf tagging }
\bool_if:nF
@@ -107,7 +107,7 @@
% \end{macrocode}
%<*debug>
% \begin{macrocode}
-\ProvidesExplPackage {tagpdf-debug} {2022-05-11} {0.94}
+\ProvidesExplPackage {tagpdf-debug} {2022-05-29} {0.95}
{ debug code for tagpdf }
\@ifpackageloaded{tagpdf}{}{\PackageWarning{tagpdf-debug}{tagpdf~not~loaded,~quitting}\endinput}
\end{macrocode}
@@ -148,10 +148,27 @@
% \end{macrocode}
% \begin{macrocode}
%<*base>
-\ProvidesExplPackage {tagpdf-base} {2022-05-11} {0.94}
+\ProvidesExplPackage {tagpdf-base} {2022-05-29} {0.95}
{part of tagpdf - provide base, no-op versions of the user commands }
%</base>
% \end{macrocode}
+% The no-op version should behave a near enough to the real code as
+% possible, so we define a command which a special in the relevant backends:
+% \begin{macrocode}
+%<*base>
+\AddToHook{begindocument}
+ {
+ \str_case:VnF \c_sys_backend_str
+ {
+ { luatex } { \cs_new_protected:Npn \@@_whatsits: {} }
+ { dvisvgm } { \cs_new_protected:Npn \@@_whatsits: {} }
+ }
+ {
+ \cs_new_protected:Npn \@@_whatsits: {\tex_special:D {} }
+ }
+ }
+%</base>
+% \end{macrocode}
% \section{Temporary code}
% This is code which will be removed when proper support exists in LaTeX
% \subsection{a LastPage label}