[latex3-commits] [latex3/tagpdf] develop: clean up outdated code (b1ee9d1)

github at latex-project.org github at latex-project.org
Mon Dec 18 00:27:50 CET 2023


Repository : https://github.com/latex3/tagpdf
On branch  : develop
Link       : https://github.com/latex3/tagpdf/commit/b1ee9d1668f62e84d0a6ca7d020e16c430f4308e

>---------------------------------------------------------------

commit b1ee9d1668f62e84d0a6ca7d020e16c430f4308e
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Mon Dec 18 00:27:50 2023 +0100

    clean up outdated code


>---------------------------------------------------------------

b1ee9d1668f62e84d0a6ca7d020e16c430f4308e
 tagpdf-user.dtx | 25 +++++++++++--------------
 tagpdf.dtx      |  9 ---------
 2 files changed, 11 insertions(+), 23 deletions(-)

diff --git a/tagpdf-user.dtx b/tagpdf-user.dtx
index bbfccf7..20ba4ed 100644
--- a/tagpdf-user.dtx
+++ b/tagpdf-user.dtx
@@ -159,7 +159,7 @@
 % \end{function}
 %
 % \section{Extension commands}
-% The following commands and code parts are not core command of tagpdf.
+% The following commands and code parts are not core commands of tagpdf.
 % They either provide work-arounds for missing functionality elsewhere,
 % or do a first step to apply tagpdf commands to document commands.
 %
@@ -634,7 +634,7 @@
 % \end{macro}
 %
 % \section{Commands to extend document commands}
-% The following commands and code parts are not core command of tagpdf.
+% The following commands and code parts are not core commands of tagpdf.
 % They either provide work-arounds for missing functionality elsewhere,
 % or do a first step to apply tagpdf commands to document commands.
 % This part should be regularly revisited to check if the code should go to a
@@ -668,23 +668,20 @@
 % \end{macro}
 % 
 % \subsection{Structure destinations}
-% In TeXlive 2022 pdftex and luatex will offer support for structure destinations.
-% The  pdfmanagement has already backend support. We activate them if the
-% prerequisites are there: structures should be activated,
-% the code in the pdfmanagement must be there.
+% Since TeXlive 2022 pdftex and luatex offer support for structure destinations
+% and the pdfmanagement has backend support for. We activate them if
+% structures are actually created.
 % Structure destinations are actually PDF 2.0  only but they don't harm in 
 % older PDF and can improve html export. 
 %    \begin{macrocode}
 \AddToHook{begindocument/before}
   {
-    \bool_lazy_all:nT
+    \bool_lazy_and:nnT
+      { \g_@@_active_struct_dest_bool }
+      { \g_@@_active_struct_bool }
       {
-        { \g_@@_active_struct_dest_bool }
-        { \g_@@_active_struct_bool }
-        { \cs_if_exist_p:N \pdf_activate_structure_destination: }
-      }
-      {
-        \tl_set:Nn \l_pdf_current_structure_destination_tl { _@@/struct/\g_@@_struct_stack_current_tl }
+        \tl_set:Nn \l_pdf_current_structure_destination_tl 
+           { _@@/struct/\g_@@_struct_stack_current_tl }
         \pdf_activate_structure_destination:
       }
    }
@@ -801,7 +798,7 @@
 %    \end{macrocode}
 % \end{macro}
 %
-% TEMPORARLY FIX (2023-11-17). Until latex-lab is update we must adapt a sec command:
+% TEMPORARLY FIX (2023-11-17). Until latex-lab is updated we must adapt a sec command:
 %    \begin{macrocode}
 \AddToHook{package/latex-lab-testphase-sec/after}
  {
diff --git a/tagpdf.dtx b/tagpdf.dtx
index 2110578..16f6ee4 100644
--- a/tagpdf.dtx
+++ b/tagpdf.dtx
@@ -24,15 +24,6 @@
 %
 % \fi
 % \begin{documentation}
-% \begin{function}{\ref_value:nnn}
-% This is a temporary definition which will be removed once properties have been 
-% released. It allows to locally set a default value if the label or the attribute
-% doesn't exist. 
-% \begin{syntax}
-% \cs{ref_value:nnn}\Arg{label}\Arg{attribute}\Arg{fallback default}
-% \end{syntax}
-% \end{function}
-%
 % \begin{function}{
 %  \tag_stop:, \tag_start:,
 %  \tagstop, \tagstart }





More information about the latex3-commits mailing list.