[latex3-commits] [latex3/tagpdf] faster-ref: adapt toc code to new ref handling (b590128)

github at latex-project.org github at latex-project.org
Tue Sep 10 00:41:38 CEST 2024


Repository : https://github.com/latex3/tagpdf
On branch  : faster-ref
Link       : https://github.com/latex3/tagpdf/commit/b590128b2f6bf6499395abbcf183af889bc3d7bf

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

commit b590128b2f6bf6499395abbcf183af889bc3d7bf
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Tue Sep 10 00:41:38 2024 +0200

    adapt toc code to new ref handling


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

b590128b2f6bf6499395abbcf183af889bc3d7bf
 tagpdf.dtx | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/tagpdf.dtx b/tagpdf.dtx
index 0473adb..f03c9b2 100644
--- a/tagpdf.dtx
+++ b/tagpdf.dtx
@@ -202,7 +202,19 @@
       {
         \tag_if_active:T
           {
-            \tag_struct_gput:nnn {#1}{ref}{\__tag_struct_Ref_num:nN { #2 }}
+            \tag_struct_gput:nnn {#1}{ref}{\@@_struct_Ref_num:nN { #2 }}
+          }
+      }
+  }
+\AddToHook{package/latex-lab-testphase-toc/after}
+  {
+    \cs_set_protected:Npn \g_@@_struct_ref_by_dest:
+      {
+        \prop_map_inline:Nn\g_@@_struct_ref_by_dest_prop
+          {
+            \@@_struct_gput_data_ref:nn
+              { ##1 }
+              { \@@_struct_Ref_dest:nN{ ##2 }}
           }
       }
   }  





More information about the latex3-commits mailing list.