texlive[73046] Master/texmf-dist: tagpdf (5dec24)

commits+karl at tug.org commits+karl at tug.org
Thu Dec 5 22:23:00 CET 2024


Revision: 73046
          https://tug.org/svn/texlive?view=revision&revision=73046
Author:   karl
Date:     2024-12-05 22:23:00 +0100 (Thu, 05 Dec 2024)
Log Message:
-----------
tagpdf (5dec24)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/tagpdf/README.md
    trunk/Master/texmf-dist/doc/latex/tagpdf/ex-AF-file.pdf
    trunk/Master/texmf-dist/doc/latex/tagpdf/ex-alt-actualtext.pdf
    trunk/Master/texmf-dist/doc/latex/tagpdf/ex-attribute.pdf
    trunk/Master/texmf-dist/doc/latex/tagpdf/ex-formula-problem.pdf
    trunk/Master/texmf-dist/doc/latex/tagpdf/ex-list.pdf
    trunk/Master/texmf-dist/doc/latex/tagpdf/ex-mc-manual-para-split-obsolete.pdf
    trunk/Master/texmf-dist/doc/latex/tagpdf/ex-softhyphen.pdf
    trunk/Master/texmf-dist/doc/latex/tagpdf/ex-spaceglyph-listings.pdf
    trunk/Master/texmf-dist/doc/latex/tagpdf/ex-structure-obsolete.pdf
    trunk/Master/texmf-dist/doc/latex/tagpdf/ex-tagpdf-template.pdf
    trunk/Master/texmf-dist/doc/latex/tagpdf/tagpdf-code.pdf
    trunk/Master/texmf-dist/doc/latex/tagpdf/tagpdf.pdf
    trunk/Master/texmf-dist/doc/latex/tagpdf/tagpdf.tex
    trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-backend.dtx
    trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-checks.dtx
    trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-data.dtx
    trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-generic.dtx
    trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-luacode.dtx
    trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-shared.dtx
    trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-roles.dtx
    trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-space.dtx
    trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-struct.dtx
    trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-tree.dtx
    trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-user.dtx
    trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf.dtx
    trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-base.sty
    trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-debug-generic.sty
    trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-debug-lua.sty
    trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-debug.sty
    trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-luatex.def
    trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-mc-code-generic.sty
    trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-mc-code-lua.sty
    trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-latex-book.def
    trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-latex.def
    trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-mathml.def
    trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-pdf.def
    trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-pdf2.def
    trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-parent-child-2.csv
    trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-parent-child.csv
    trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf.lua
    trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf.sty
    trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdfdocu-patches.sty

Modified: trunk/Master/texmf-dist/doc/latex/tagpdf/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tagpdf/README.md	2024-12-05 21:22:45 UTC (rev 73045)
+++ trunk/Master/texmf-dist/doc/latex/tagpdf/README.md	2024-12-05 21:23:00 UTC (rev 73046)
@@ -1,6 +1,6 @@
 #tagpdf — A package to create tagged pdf
-Packageversion: 0.99j 
-Packagedate: 2024/11/22
+Packageversion: 0.99k 
+Packagedate: 2024/12/04
 Author: Ulrike Fischer, LaTeX Project Team
 
 ## License

Modified: trunk/Master/texmf-dist/doc/latex/tagpdf/ex-AF-file.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/tagpdf/ex-alt-actualtext.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/tagpdf/ex-attribute.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/tagpdf/ex-formula-problem.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/tagpdf/ex-list.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/tagpdf/ex-mc-manual-para-split-obsolete.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/tagpdf/ex-softhyphen.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/tagpdf/ex-spaceglyph-listings.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/tagpdf/ex-structure-obsolete.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/tagpdf/ex-tagpdf-template.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/tagpdf/tagpdf-code.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/tagpdf/tagpdf.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/tagpdf/tagpdf.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tagpdf/tagpdf.tex	2024-12-05 21:22:45 UTC (rev 73045)
+++ trunk/Master/texmf-dist/doc/latex/tagpdf/tagpdf.tex	2024-12-05 21:23:00 UTC (rev 73046)
@@ -16,8 +16,8 @@
  }
 \DebugBlocksOff
 \makeatletter
-\def\UlrikeFischer at package@version{0.99j}
-\def\UlrikeFischer at package@date{2024-11-22}
+\def\UlrikeFischer at package@version{0.99k}
+\def\UlrikeFischer at package@date{2024-12-04}
 \makeatother
 
 \documentclass[bibliography=totoc,a4paper]{article}
@@ -1171,7 +1171,8 @@
   it reverts to the parent number if a structure is closed. If only
   \pkg{tagpdf-base} is loaded nesting of structure is not tracked and
   so the command gives back the number of the last structure that has
-  been created.
+  been created. In luatex this number can also be retrieved with the 
+  lua function \verb+ltx.tag.get_struct_num()+.  
 
 \item \verb+struct_counter+: This returns a number and works also if
   only \pkg{tagpdf-base} has been loaded. It gives back the state of
@@ -1179,6 +1180,10 @@
   that has been created. This can be used to detect if in a piece of
   code there are structure commands. Be aware that this is a \LaTeX{}
   counter and so is reset in some places.
+  In luatex this number can also be retrieved with the 
+  lua function \verb+ltx.tag.get_struct_counter()+. The number of the next
+  structure to be created is then \verb+ltx.tag.get_struct_counter()+ increased by
+  one), this can also be retrieved with the function \verb+ltx.tag.get_struct_num_next()+.
 
 \item \verb+mc_counter+: This returns a number and works also if only
   \pkg{tagpdf-base} has been loaded. It gives back the state of the

Modified: trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-backend.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-backend.dtx	2024-12-05 21:22:45 UTC (rev 73045)
+++ trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-backend.dtx	2024-12-05 21:23:00 UTC (rev 73046)
@@ -47,13 +47,13 @@
 %    }^^A
 % }
 %
-% \date{Version 0.99j, released 2024-11-22}
+% \date{Version 0.99k, released 2024-12-04}
 % \maketitle
 % \begin{implementation}
 %    \begin{macrocode}
 %<@@=tag>
 %<*luatex>
-\ProvidesExplFile {tagpdf-luatex.def} {2024-11-22} {0.99j}
+\ProvidesExplFile {tagpdf-luatex.def} {2024-12-04} {0.99k}
   {tagpdf~driver~for~luatex}
 %    \end{macrocode}
 % \section{Loading the lua}
@@ -174,8 +174,8 @@
 
 local ProvidesLuaModule = {
     name          = "tagpdf",
-    version       = "0.99j",       --TAGVERSION
-    date          = "2024-11-22", --TAGDATE
+    version       = "0.99k",       --TAGVERSION
+    date          = "2024-12-04", --TAGDATE
     description   = "tagpdf lua code",
     license       = "The LATEX Project Public License 1.3c"
 }
@@ -234,6 +234,9 @@
  ltx.@@.trace.show_prop: shows a prop
  ltx.@@.trace.log
  ltx.@@.trace.showspaces : boolean
+ 
+ ltx.tag.get_structnum: number, shows the current structure number
+ ltx.tag.get_structnum_next: number, shows the next structure number 
 --]]
 
 %    \end{macrocode}
@@ -309,6 +312,7 @@
 % Now we setup the main table structure. ltx is used by other latex code too!
 %    \begin{macrocode}
 ltx             = ltx        or { }
+ltx.tag         = ltx.tag       or { } -- user commands
 ltx.@@          = ltx.@@        or { }
 ltx.@@.mc       = ltx.@@.mc     or  { } -- mc data
 ltx.@@.struct   = ltx.@@.struct or  { } -- struct data
@@ -321,6 +325,35 @@
 ltx.@@.func     = ltx.@@.func   or  { } -- functions
 ltx.@@.conf     = ltx.@@.conf   or  { } -- configuration variables
 %    \end{macrocode}
+%
+% \section{User commands to access data}
+% Code like the one in luamml will have to access the current state in some places.
+
+% \begin{macro}{\}
+%    \begin{macrocode}
+local @@_get_struct_num = 
+ function()
+  local a = token.get_macro("g__tag_struct_stack_current_tl")
+  return a
+ end
+ 
+local @@_get_struct_counter = 
+ function()
+  local a = tex.getcount("c at g_@@_struct_abs_int")
+  return a
+ end
+  
+local @@_get_struct_num_next = 
+ function()
+  local a = tex.getcount("c at g_@@_struct_abs_int") + 1
+  return a
+ end
+  
+ltx.tag.get_struct_num = @@_get_struct_num
+ltx.tag.get_struct_counter = @@_get_struct_counter
+ltx.tag.get_struct_num_next = @@_get_struct_num_next
+%    \end{macrocode}
+% \end{macro}
 % \section{Logging functions}
 %
 % \begin{macro}{@@_log,ltx.@@.trace.log}

Modified: trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-checks.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-checks.dtx	2024-12-05 21:22:45 UTC (rev 73045)
+++ trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-checks.dtx	2024-12-05 21:23:00 UTC (rev 73046)
@@ -48,7 +48,7 @@
 %    }^^A
 % }
 %
-% \date{Version 0.99j, released 2024-11-22}
+% \date{Version 0.99k, released 2024-12-04}
 % \maketitle
 % \begin{documentation}
 % \section{Commands}
@@ -331,7 +331,7 @@
 %    \begin{macrocode}
 %<@@=tag>
 %<*header>
-\ProvidesExplPackage {tagpdf-checks-code} {2024-11-22} {0.99j}
+\ProvidesExplPackage {tagpdf-checks-code} {2024-12-04} {0.99k}
  {part of tagpdf - code related to checks, conditionals, debugging and messages}
 %</header>
 %    \end{macrocode}

Modified: trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-data.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-data.dtx	2024-12-05 21:22:45 UTC (rev 73045)
+++ trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-data.dtx	2024-12-05 21:23:00 UTC (rev 73046)
@@ -47,7 +47,7 @@
 %    }^^A
 % }
 %
-% \date{Version 0.99j, released 2024-11-22}
+% \date{Version 0.99k, released 2024-12-04}
 % \maketitle
 % \begin{documentation}
 % This files contains a various data files which are read in
@@ -61,7 +61,7 @@
 % latex-lab has also a namespace module, which takes precedence!
 %    \begin{macrocode}
 %<*ns-latex>
-%% \ProvidesExplFile {tagpdf-ns-latex.def} {2024-11-22} {0.99j}
+%% \ProvidesExplFile {tagpdf-ns-latex.def} {2024-12-04} {0.99k}
 %% {latex} {https://www.latex-project.org/ns/dflt/2022}{}
 title,        Title,    pdf2,
 part,         Title,    pdf2,
@@ -93,7 +93,7 @@
 % It is bound to change
 %    \begin{macrocode}
 %<*ns-latex-book>
-%% \ProvidesExplFile {tagpdf-ns-latex-book.def} {2024-11-22} {0.99j}
+%% \ProvidesExplFile {tagpdf-ns-latex-book.def} {2024-12-04} {0.99k}
 %% {latex-book} {https://www.latex-project.org/ns/book/2022}{}
 chapter,       H1,pdf2,
 section,       H2,pdf2,
@@ -107,7 +107,7 @@
 % \section{The pdf namespace data}
 %    \begin{macrocode}
 %<*ns-pdf>
-%% \ProvidesExplFile {tagpdf-ns-pdf.def} {2024-11-22} {0.99j}
+%% \ProvidesExplFile {tagpdf-ns-pdf.def} {2024-12-04} {0.99k}
 %%  {pdf}   {http://iso.org/pdf/ssn}{}
 StructTreeRoot,StructTreeRoot,pdf,D,
 Document,Document,pdf,D,   
@@ -175,7 +175,7 @@
 % \section{The pdf 2.0 namespace data}
 %    \begin{macrocode}
 %<*ns-pdf2>
-%% \ProvidesExplFile {tagpdf-ns-pdf2.def} {2024-11-22} {0.99j} 
+%% \ProvidesExplFile {tagpdf-ns-pdf2.def} {2024-12-04} {0.99k} 
 %%  {pdf2}  {http://iso.org/pdf2/ssn}{}
 StructTreeRoot,StructTreeRoot,pdf2,D,
 Document,Document,pdf2,D,   
@@ -232,7 +232,7 @@
 % \section{The mathml namespace data}
 %    \begin{macrocode}
 %<*ns-mathml>
-%% \ProvidesExplFile {tagpdf-ns-mathml.def} {2024-11-22} {0.99j}
+%% \ProvidesExplFile {tagpdf-ns-mathml.def} {2024-12-04} {0.99k}
 % {mathml}{http://www.w3.org/1998/Math/MathML}{}
 abs,abs,mathml,
 and,and,mathml,
@@ -467,7 +467,7 @@
 % This will perhaps change in future.
 %    \begin{macrocode}
 %<*parent-child>
-%% \ProvidesExplFile {tagpdf-parent-child.csv} {2024-11-22} {0.99j}
+%% \ProvidesExplFile {tagpdf-parent-child.csv} {2024-12-04} {0.99k}
 ,,,StructTreeRoot,Document,Art,Part,Div,Sect,BlockQuote,NonStruct,TOC,TOCI,Index,Private,Quote,Note,Reference,BibEntry,P,Hn,H,Lbl,Code,Span,Link,Annot,Form,Ruby,RB,RT,RP,Warichu,WT,WP,L,LI,LBody,Table,TR,TH,TD,THead,TBody,TFoot,Caption,Figure,Formula,MC
 Document,both,document level,1,0..n,∅,‡,‡,∅,0..n,‡,∅,∅,∅,0..n,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅
 Art,1.7,grouping,∅,0..n,∅,‡,‡,0..n,0..n,‡,∅,∅,∅,0..n,∅,0..n,∅,∅,∅,0..1,0..1,∅,∅,∅,0..n,0..n,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,0..n,∅,∅,0..n,0..n,∅,∅,∅,0..n,0..n,∅,∅
@@ -522,7 +522,7 @@
 % This will perhaps change in future.
 %    \begin{macrocode}
 %<*parent-child-2>
-%% \ProvidesExplFile {tagpdf-parent-child-2.csv} {2024-11-22} {0.99j}
+%% \ProvidesExplFile {tagpdf-parent-child-2.csv} {2024-12-04} {0.99k}
 ,,,StructTreeRoot,Document,DocumentFragment,Art,Part,Div,Sect,Aside,BlockQuote,NonStruct,TOC,TOCI,Index,Private,Title,Sub,Quote,Note,Reference,BibEntry,P,Hn,H,Lbl,Code,Em,Strong,Span,Link,Annot,Form,Ruby,RB,RT,RP,Warichu,WT,WP,FENote,L,LI,LBody,Table,TR,TH,TD,THead,TBody,TFoot,Caption,Figure,Formula,math,mathml,Artifact,MC
 Document,both,document level,1,0..n,0..n,∅,‡,‡,∅,0..n,0..n,‡,∅,∅,∅,0..n,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,0..n,∅
 DocumentFragment,2.0,document level,∅,0..n,0..n,0..n,‡,‡,0..n,0..n,0..n,‡,∅,∅,∅,0..n,∅,∅,∅,∅*,∅,∅,∅,∅,∅,∅,∅*,∅,∅,∅,∅*,∅*,∅,∅,∅,∅,∅,∅,∅,∅,∅*,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅*,∅,∅,∅,∅,0..n,∅

Modified: trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-generic.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-generic.dtx	2024-12-05 21:22:45 UTC (rev 73045)
+++ trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-generic.dtx	2024-12-05 21:23:00 UTC (rev 73046)
@@ -46,7 +46,7 @@
 %    }^^A
 % }
 %
-% \date{Version 0.99j, released 2024-11-22}
+% \date{Version 0.99k, released 2024-12-04}
 % \maketitle
 % \begin{documentation}
 % \end{documentation}
@@ -55,11 +55,11 @@
 %    \begin{macrocode}
 %<@@=tag>
 %<*generic>
-\ProvidesExplPackage {tagpdf-mc-code-generic} {2024-11-22} {0.99j}
+\ProvidesExplPackage {tagpdf-mc-code-generic} {2024-12-04} {0.99k}
  {part of tagpdf - code related to marking chunks - generic mode}
 %</generic>
 %<*debug>
-\ProvidesExplPackage {tagpdf-debug-generic} {2024-11-22} {0.99j}
+\ProvidesExplPackage {tagpdf-debug-generic} {2024-12-04} {0.99k}
  {part of tagpdf - debugging code related to marking chunks - generic mode}
 %</debug>
 %    \end{macrocode}

Modified: trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-luacode.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-luacode.dtx	2024-12-05 21:22:45 UTC (rev 73045)
+++ trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-luacode.dtx	2024-12-05 21:23:00 UTC (rev 73046)
@@ -46,7 +46,7 @@
 %    }^^A
 % }
 %
-% \date{Version 0.99j, released 2024-11-22}
+% \date{Version 0.99k, released 2024-12-04}
 % \maketitle
 % \begin{implementation}
 % The code is split into three parts: code shared by all engines,
@@ -86,11 +86,11 @@
 %    \begin{macrocode}
 %<@@=tag>
 %<*luamode>
-\ProvidesExplPackage {tagpdf-mc-code-lua} {2024-11-22} {0.99j}
+\ProvidesExplPackage {tagpdf-mc-code-lua} {2024-12-04} {0.99k}
   {tagpdf - mc code only for the luamode }
 %</luamode>
 %<*debug>
-\ProvidesExplPackage {tagpdf-debug-lua} {2024-11-22} {0.99j}
+\ProvidesExplPackage {tagpdf-debug-lua} {2024-12-04} {0.99k}
  {part of tagpdf - debugging code related to marking chunks - lua mode}
 %</debug>
 %    \end{macrocode}

Modified: trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-shared.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-shared.dtx	2024-12-05 21:22:45 UTC (rev 73045)
+++ trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-mc-shared.dtx	2024-12-05 21:23:00 UTC (rev 73046)
@@ -46,7 +46,7 @@
 %    }^^A
 % }
 %
-% \date{Version 0.99j, released 2024-11-22}
+% \date{Version 0.99k, released 2024-12-04}
 % \maketitle
 % \begin{documentation}
 % \section{Public Commands}
@@ -207,7 +207,7 @@
 %    \begin{macrocode}
 %<@@=tag>
 %<*header>
-\ProvidesExplPackage {tagpdf-mc-code-shared} {2024-11-22} {0.99j}
+\ProvidesExplPackage {tagpdf-mc-code-shared} {2024-12-04} {0.99k}
   {part of tagpdf - code related to marking chunks -
    code shared by generic and luamode }
 %</header>

Modified: trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-roles.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-roles.dtx	2024-12-05 21:22:45 UTC (rev 73045)
+++ trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-roles.dtx	2024-12-05 21:23:00 UTC (rev 73046)
@@ -46,7 +46,7 @@
 %    }^^A
 % }
 %
-% \date{Version 0.99j, released 2024-11-22}
+% \date{Version 0.99k, released 2024-12-04}
 % \maketitle
 % \begin{documentation}
 % \begin{function}
@@ -98,7 +98,7 @@
 %    \begin{macrocode}
 %<@@=tag>
 %<*header>
-\ProvidesExplPackage {tagpdf-roles-code} {2024-11-22} {0.99j}
+\ProvidesExplPackage {tagpdf-roles-code} {2024-12-04} {0.99k}
  {part of tagpdf - code related to roles and structure names}
 %</header>
 %    \end{macrocode}

Modified: trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-space.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-space.dtx	2024-12-05 21:22:45 UTC (rev 73045)
+++ trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-space.dtx	2024-12-05 21:23:00 UTC (rev 73046)
@@ -46,7 +46,7 @@
 %    }^^A
 % }
 %
-% \date{Version 0.99j, released 2024-11-22}
+% \date{Version 0.99k, released 2024-12-04}
 % \maketitle
 % \begin{documentation}
 % \begin{function}{activate/space (setup-key),interwordspace (deprecated)}
@@ -66,7 +66,7 @@
 %    \begin{macrocode}
 %<@@=tag>
 %<*header>
-\ProvidesExplPackage {tagpdf-space-code} {2024-11-22} {0.99j}
+\ProvidesExplPackage {tagpdf-space-code} {2024-12-04} {0.99k}
  {part of tagpdf - code related to real space chars}
 %</header>
 %    \end{macrocode}

Modified: trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-struct.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-struct.dtx	2024-12-05 21:22:45 UTC (rev 73045)
+++ trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-struct.dtx	2024-12-05 21:23:00 UTC (rev 73046)
@@ -47,7 +47,7 @@
 %    }^^A
 % }
 %
-% \date{Version 0.99j, released 2024-11-22}
+% \date{Version 0.99k, released 2024-12-04}
 % \maketitle
 % \begin{documentation}
 % \section{Public Commands}
@@ -308,7 +308,7 @@
 %    \begin{macrocode}
 %<@@=tag>
 %<*header>
-\ProvidesExplPackage {tagpdf-struct-code} {2024-11-22} {0.99j}
+\ProvidesExplPackage {tagpdf-struct-code} {2024-12-04} {0.99k}
  {part of tagpdf - code related to storing structure}
 %</header>
 %    \end{macrocode}
@@ -2118,7 +2118,7 @@
 % \section{Attributes and attribute classes}
 %    \begin{macrocode}
 %<*header>
-\ProvidesExplPackage {tagpdf-attr-code} {2024-11-22} {0.99j}
+\ProvidesExplPackage {tagpdf-attr-code} {2024-12-04} {0.99k}
   {part of tagpdf - code related to attributes and attribute classes}
 %</header>
 %    \end{macrocode}

Modified: trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-tree.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-tree.dtx	2024-12-05 21:22:45 UTC (rev 73045)
+++ trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-tree.dtx	2024-12-05 21:23:00 UTC (rev 73046)
@@ -47,13 +47,13 @@
 %    }^^A
 % }
 %
-% \date{Version 0.99j, released 2024-11-22}
+% \date{Version 0.99k, released 2024-12-04}
 % \maketitle
 % \begin{implementation}
 %    \begin{macrocode}
 %<@@=tag>
 %<*header>
-\ProvidesExplPackage {tagpdf-tree-code} {2024-11-22} {0.99j}
+\ProvidesExplPackage {tagpdf-tree-code} {2024-12-04} {0.99k}
  {part of tagpdf - code related to writing trees and dictionaries to the pdf}
 %</header>
 %    \end{macrocode}

Modified: trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-user.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-user.dtx	2024-12-05 21:22:45 UTC (rev 73045)
+++ trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf-user.dtx	2024-12-05 21:23:00 UTC (rev 73046)
@@ -47,7 +47,7 @@
 %    }^^A
 % }
 %
-% \date{Version 0.99j, released 2024-11-22}
+% \date{Version 0.99k, released 2024-12-04}
 % \maketitle
 % \begin{documentation}
 % \section{Setup commands}
@@ -322,7 +322,7 @@
 %    \begin{macrocode}
 %<@@=tag>
 %<*header>
-\ProvidesExplPackage {tagpdf-user} {2024-11-22} {0.99j}
+\ProvidesExplPackage {tagpdf-user} {2024-12-04} {0.99k}
   {tagpdf - user commands}
 %</header>
 %    \end{macrocode}
@@ -426,7 +426,7 @@
 %<*base>
 \providecommand\tag_socket_use:n[1]{}
 \providecommand\tag_socket_use:nn[2]{}
-\providecommand\tag_socket_use:nnn[3]{}
+\providecommand\tag_socket_use:nnn[3]{#3}
 \providecommand\tag_socket_use_expandable:n[1]{}
 \providecommand\socket_use_expandable:nw [1] {
   \use:c { __socket_#1_plug_ \str_use:c { l__socket_#1_plug_str } :w }

Modified: trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf.dtx	2024-12-05 21:22:45 UTC (rev 73045)
+++ trunk/Master/texmf-dist/source/latex/tagpdf/tagpdf.dtx	2024-12-05 21:23:00 UTC (rev 73046)
@@ -47,7 +47,7 @@
 %    }^^A
 % }
 %
-% \date{Version 0.99j, released 2024-11-22}
+% \date{Version 0.99k, released 2024-12-04}
 % \maketitle% 
 % 
 % \begin{documentation}
@@ -153,7 +153,7 @@
 %    \begin{macrocode}
 %<@@=tag>
 %<*package>
-\ProvidesExplPackage {tagpdf} {2024-11-22} {0.99j}
+\ProvidesExplPackage {tagpdf} {2024-12-04} {0.99k}
   { LaTeX kernel code for PDF tagging }
 
 \bool_if:nF
@@ -179,7 +179,7 @@
 %    \end{macrocode}
 %<*debug>
 %    \begin{macrocode}
-\ProvidesExplPackage {tagpdf-debug} {2024-11-22} {0.99j}
+\ProvidesExplPackage {tagpdf-debug} {2024-12-04} {0.99k}
   { debug code for tagpdf }
 \@ifpackageloaded{tagpdf}{}{\PackageWarning{tagpdf-debug}{tagpdf~not~loaded,~quitting}\endinput}
 %    \end{macrocode}
@@ -202,7 +202,7 @@
 % we define a base package with dummy functions
 %    \begin{macrocode}
 %<*base>
-\ProvidesExplPackage {tagpdf-base} {2024-11-22} {0.99j}
+\ProvidesExplPackage {tagpdf-base} {2024-12-04} {0.99k}
   {part of tagpdf - provide base, no-op versions of the user commands }
 %</base>
 %    \end{macrocode} 

Modified: trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-base.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-base.sty	2024-12-05 21:22:45 UTC (rev 73045)
+++ trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-base.sty	2024-12-05 21:23:00 UTC (rev 73046)
@@ -25,7 +25,7 @@
 %% and all files in that bundle must be distributed together.
 %% 
 %% File: tagpdf.dtx
-\ProvidesExplPackage {tagpdf-base} {2024-11-22} {0.99j}
+\ProvidesExplPackage {tagpdf-base} {2024-12-04} {0.99k}
   {part of tagpdf - provide base, no-op versions of the user commands }
 \cs_new_protected:Npn \__tag_whatsits: {}
 \AddToHook{begindocument}
@@ -145,7 +145,7 @@
   }
 \providecommand\tag_socket_use:n[1]{}
 \providecommand\tag_socket_use:nn[2]{}
-\providecommand\tag_socket_use:nnn[3]{}
+\providecommand\tag_socket_use:nnn[3]{#3}
 \providecommand\tag_socket_use_expandable:n[1]{}
 \providecommand\socket_use_expandable:nw [1] {
   \use:c { __socket_#1_plug_ \str_use:c { l__socket_#1_plug_str } :w }

Modified: trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-debug-generic.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-debug-generic.sty	2024-12-05 21:22:45 UTC (rev 73045)
+++ trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-debug-generic.sty	2024-12-05 21:23:00 UTC (rev 73046)
@@ -19,7 +19,7 @@
 %% and all files in that bundle must be distributed together.
 %% 
 %% File: tagpdf-mc-generic.dtx
-\ProvidesExplPackage {tagpdf-debug-generic} {2024-11-22} {0.99j}
+\ProvidesExplPackage {tagpdf-debug-generic} {2024-12-04} {0.99k}
  {part of tagpdf - debugging code related to marking chunks - generic mode}
 \cs_set_protected:Npn \tag_mc_begin:n #1 %#1 keyval
   {

Modified: trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-debug-lua.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-debug-lua.sty	2024-12-05 21:22:45 UTC (rev 73045)
+++ trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-debug-lua.sty	2024-12-05 21:23:00 UTC (rev 73046)
@@ -19,7 +19,7 @@
 %% and all files in that bundle must be distributed together.
 %% 
 %% File: tagpdf-mc-luacode.dtx
-\ProvidesExplPackage {tagpdf-debug-lua} {2024-11-22} {0.99j}
+\ProvidesExplPackage {tagpdf-debug-lua} {2024-12-04} {0.99k}
  {part of tagpdf - debugging code related to marking chunks - lua mode}
 \cs_set_protected:Npn \__tag_mc_handle_stash:n #1 %1 mcidnum
   {

Modified: trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-debug.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-debug.sty	2024-12-05 21:22:45 UTC (rev 73045)
+++ trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-debug.sty	2024-12-05 21:23:00 UTC (rev 73046)
@@ -26,7 +26,7 @@
 %% and all files in that bundle must be distributed together.
 %% 
 %% File: tagpdf.dtx
-\ProvidesExplPackage {tagpdf-debug} {2024-11-22} {0.99j}
+\ProvidesExplPackage {tagpdf-debug} {2024-12-04} {0.99k}
   { debug code for tagpdf }
 \@ifpackageloaded{tagpdf}{}{\PackageWarning{tagpdf-debug}{tagpdf~not~loaded,~quitting}\endinput}
 \prop_gput:Nnn \g_msg_module_type_prop { tag / debug} {}

Modified: trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-luatex.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-luatex.def	2024-12-05 21:22:45 UTC (rev 73045)
+++ trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-luatex.def	2024-12-05 21:23:00 UTC (rev 73046)
@@ -19,7 +19,7 @@
 %% and all files in that bundle must be distributed together.
 %% 
 %% File: tagpdf-backend.dtx
-\ProvidesExplFile {tagpdf-luatex.def} {2024-11-22} {0.99j}
+\ProvidesExplFile {tagpdf-luatex.def} {2024-12-04} {0.99k}
   {tagpdf~driver~for~luatex}
 {
   \fontencoding{TU}\fontfamily{lmr}\fontseries{m}\fontshape{n}\fontsize{10pt}{10pt}\selectfont

Modified: trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-mc-code-generic.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-mc-code-generic.sty	2024-12-05 21:22:45 UTC (rev 73045)
+++ trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-mc-code-generic.sty	2024-12-05 21:23:00 UTC (rev 73046)
@@ -19,7 +19,7 @@
 %% and all files in that bundle must be distributed together.
 %% 
 %% File: tagpdf-mc-generic.dtx
-\ProvidesExplPackage {tagpdf-mc-code-generic} {2024-11-22} {0.99j}
+\ProvidesExplPackage {tagpdf-mc-code-generic} {2024-12-04} {0.99k}
  {part of tagpdf - code related to marking chunks - generic mode}
 \tl_new:N \l__tag_mc_ref_abspage_tl
 

Modified: trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-mc-code-lua.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-mc-code-lua.sty	2024-12-05 21:22:45 UTC (rev 73045)
+++ trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-mc-code-lua.sty	2024-12-05 21:23:00 UTC (rev 73046)
@@ -19,7 +19,7 @@
 %% and all files in that bundle must be distributed together.
 %% 
 %% File: tagpdf-mc-luacode.dtx
-\ProvidesExplPackage {tagpdf-mc-code-lua} {2024-11-22} {0.99j}
+\ProvidesExplPackage {tagpdf-mc-code-lua} {2024-12-04} {0.99k}
   {tagpdf - mc code only for the luamode }
 \hook_gput_code:nnn{begindocument}{tagpdf/mc}
   {

Modified: trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-latex-book.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-latex-book.def	2024-12-05 21:22:45 UTC (rev 73045)
+++ trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-latex-book.def	2024-12-05 21:23:00 UTC (rev 73046)
@@ -19,7 +19,7 @@
 %% and all files in that bundle must be distributed together.
 %% 
 %% File: tagpdf-data.dtx
-%% \ProvidesExplFile {tagpdf-ns-latex-book.def} {2024-11-22} {0.99j}
+%% \ProvidesExplFile {tagpdf-ns-latex-book.def} {2024-12-04} {0.99k}
 %% {latex-book} {https://www.latex-project.org/ns/book/2022}{}
 chapter,       H1,pdf2,
 section,       H2,pdf2,

Modified: trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-latex.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-latex.def	2024-12-05 21:22:45 UTC (rev 73045)
+++ trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-latex.def	2024-12-05 21:23:00 UTC (rev 73046)
@@ -19,7 +19,7 @@
 %% and all files in that bundle must be distributed together.
 %% 
 %% File: tagpdf-data.dtx
-%% \ProvidesExplFile {tagpdf-ns-latex.def} {2024-11-22} {0.99j}
+%% \ProvidesExplFile {tagpdf-ns-latex.def} {2024-12-04} {0.99k}
 %% {latex} {https://www.latex-project.org/ns/dflt/2022}{}
 title,        Title,    pdf2,
 part,         Title,    pdf2,

Modified: trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-mathml.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-mathml.def	2024-12-05 21:22:45 UTC (rev 73045)
+++ trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-mathml.def	2024-12-05 21:23:00 UTC (rev 73046)
@@ -19,7 +19,7 @@
 %% and all files in that bundle must be distributed together.
 %% 
 %% File: tagpdf-data.dtx
-%% \ProvidesExplFile {tagpdf-ns-mathml.def} {2024-11-22} {0.99j}
+%% \ProvidesExplFile {tagpdf-ns-mathml.def} {2024-12-04} {0.99k}
 abs,abs,mathml,
 and,and,mathml,
 annotation,annotation,mathml,

Modified: trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-pdf.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-pdf.def	2024-12-05 21:22:45 UTC (rev 73045)
+++ trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-pdf.def	2024-12-05 21:23:00 UTC (rev 73046)
@@ -19,7 +19,7 @@
 %% and all files in that bundle must be distributed together.
 %% 
 %% File: tagpdf-data.dtx
-%% \ProvidesExplFile {tagpdf-ns-pdf.def} {2024-11-22} {0.99j}
+%% \ProvidesExplFile {tagpdf-ns-pdf.def} {2024-12-04} {0.99k}
 %%  {pdf}   {http://iso.org/pdf/ssn}{}
 StructTreeRoot,StructTreeRoot,pdf,D,
 Document,Document,pdf,D,

Modified: trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-pdf2.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-pdf2.def	2024-12-05 21:22:45 UTC (rev 73045)
+++ trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-ns-pdf2.def	2024-12-05 21:23:00 UTC (rev 73046)
@@ -19,7 +19,7 @@
 %% and all files in that bundle must be distributed together.
 %% 
 %% File: tagpdf-data.dtx
-%% \ProvidesExplFile {tagpdf-ns-pdf2.def} {2024-11-22} {0.99j}
+%% \ProvidesExplFile {tagpdf-ns-pdf2.def} {2024-12-04} {0.99k}
 %%  {pdf2}  {http://iso.org/pdf2/ssn}{}
 StructTreeRoot,StructTreeRoot,pdf2,D,
 Document,Document,pdf2,D,

Modified: trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-parent-child-2.csv
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-parent-child-2.csv	2024-12-05 21:22:45 UTC (rev 73045)
+++ trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-parent-child-2.csv	2024-12-05 21:23:00 UTC (rev 73046)
@@ -19,7 +19,7 @@
 %% and all files in that bundle must be distributed together.
 %% 
 %% File: tagpdf-data.dtx
-%% \ProvidesExplFile {tagpdf-parent-child-2.csv} {2024-11-22} {0.99j}
+%% \ProvidesExplFile {tagpdf-parent-child-2.csv} {2024-12-04} {0.99k}
 ,,,StructTreeRoot,Document,DocumentFragment,Art,Part,Div,Sect,Aside,BlockQuote,NonStruct,TOC,TOCI,Index,Private,Title,Sub,Quote,Note,Reference,BibEntry,P,Hn,H,Lbl,Code,Em,Strong,Span,Link,Annot,Form,Ruby,RB,RT,RP,Warichu,WT,WP,FENote,L,LI,LBody,Table,TR,TH,TD,THead,TBody,TFoot,Caption,Figure,Formula,math,mathml,Artifact,MC
 Document,both,document level,1,0..n,0..n,∅,‡,‡,∅,0..n,0..n,‡,∅,∅,∅,0..n,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,0..n,∅
 DocumentFragment,2.0,document level,∅,0..n,0..n,0..n,‡,‡,0..n,0..n,0..n,‡,∅,∅,∅,0..n,∅,∅,∅,∅*,∅,∅,∅,∅,∅,∅,∅*,∅,∅,∅,∅*,∅*,∅,∅,∅,∅,∅,∅,∅,∅,∅*,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅*,∅,∅,∅,∅,0..n,∅

Modified: trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-parent-child.csv
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-parent-child.csv	2024-12-05 21:22:45 UTC (rev 73045)
+++ trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf-parent-child.csv	2024-12-05 21:23:00 UTC (rev 73046)
@@ -19,7 +19,7 @@
 %% and all files in that bundle must be distributed together.
 %% 
 %% File: tagpdf-data.dtx
-%% \ProvidesExplFile {tagpdf-parent-child.csv} {2024-11-22} {0.99j}
+%% \ProvidesExplFile {tagpdf-parent-child.csv} {2024-12-04} {0.99k}
 ,,,StructTreeRoot,Document,Art,Part,Div,Sect,BlockQuote,NonStruct,TOC,TOCI,Index,Private,Quote,Note,Reference,BibEntry,P,Hn,H,Lbl,Code,Span,Link,Annot,Form,Ruby,RB,RT,RP,Warichu,WT,WP,L,LI,LBody,Table,TR,TH,TD,THead,TBody,TFoot,Caption,Figure,Formula,MC
 Document,both,document level,1,0..n,∅,‡,‡,∅,0..n,‡,∅,∅,∅,0..n,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅
 Art,1.7,grouping,∅,0..n,∅,‡,‡,0..n,0..n,‡,∅,∅,∅,0..n,∅,0..n,∅,∅,∅,0..1,0..1,∅,∅,∅,0..n,0..n,∅,∅,∅,∅,∅,∅,∅,∅,∅,∅,0..n,∅,∅,0..n,0..n,∅,∅,∅,0..n,0..n,∅,∅

Modified: trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf.lua
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf.lua	2024-12-05 21:22:45 UTC (rev 73045)
+++ trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf.lua	2024-12-05 21:23:00 UTC (rev 73046)
@@ -24,8 +24,8 @@
 
 local ProvidesLuaModule = {
     name          = "tagpdf",
-    version       = "0.99j",       --TAGVERSION
-    date          = "2024-11-22", --TAGDATE
+    version       = "0.99k",       --TAGVERSION
+    date          = "2024-12-04", --TAGDATE
     description   = "tagpdf lua code",
     license       = "The LATEX Project Public License 1.3c"
 }
@@ -81,6 +81,9 @@
  ltx.__tag.trace.show_prop: shows a prop
  ltx.__tag.trace.log
  ltx.__tag.trace.showspaces : boolean
+
+ ltx.tag.get_structnum: number, shows the current structure number
+ ltx.tag.get_structnum_next: number, shows the next structure number
 --]]
 
 local mctypeattributeid  = luatexbase.new_attribute ("g__tag_mc_type_attr")
@@ -127,6 +130,7 @@
 local explicit_disc = 1
 local regular_disc = 3
 ltx             = ltx        or { }
+ltx.tag         = ltx.tag       or { } -- user commands
 ltx.__tag          = ltx.__tag        or { }
 ltx.__tag.mc       = ltx.__tag.mc     or  { } -- mc data
 ltx.__tag.struct   = ltx.__tag.struct or  { } -- struct data
@@ -138,6 +142,28 @@
 ltx.__tag.trace    = ltx.__tag.trace  or  { } -- show commands
 ltx.__tag.func     = ltx.__tag.func   or  { } -- functions
 ltx.__tag.conf     = ltx.__tag.conf   or  { } -- configuration variables
+
+local __tag_get_struct_num =
+ function()
+  local a = token.get_macro("g__tag_struct_stack_current_tl")
+  return a
+ end
+
+local __tag_get_struct_counter =
+ function()
+  local a = tex.getcount("c at g__tag_struct_abs_int")
+  return a
+ end
+
+local __tag_get_struct_num_next =
+ function()
+  local a = tex.getcount("c at g__tag_struct_abs_int") + 1
+  return a
+ end
+
+ltx.tag.get_struct_num = __tag_get_struct_num
+ltx.tag.get_struct_counter = __tag_get_struct_counter
+ltx.tag.get_struct_num_next = __tag_get_struct_num_next
 local __tag_log =
  function (message,loglevel)
   if (loglevel or 3) <= tex.count["l__tag_loglevel_int"] then

Modified: trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf.sty	2024-12-05 21:22:45 UTC (rev 73045)
+++ trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdf.sty	2024-12-05 21:23:00 UTC (rev 73046)
@@ -28,7 +28,7 @@
 %% and all files in that bundle must be distributed together.
 %% 
 %% File: tagpdf.dtx
-\ProvidesExplPackage {tagpdf} {2024-11-22} {0.99j}
+\ProvidesExplPackage {tagpdf} {2024-12-04} {0.99k}
   { LaTeX kernel code for PDF tagging }
 
 \bool_if:nF

Modified: trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdfdocu-patches.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdfdocu-patches.sty	2024-12-05 21:22:45 UTC (rev 73045)
+++ trunk/Master/texmf-dist/tex/latex/tagpdf/tagpdfdocu-patches.sty	2024-12-05 21:23:00 UTC (rev 73046)
@@ -1,5 +1,5 @@
 %\RequirePackage[enable-debug]{expl3}[2018/06/14]
-\ProvidesExplPackage {tagpdfdocu-patches} {2024-11-22} {0.99j}
+\ProvidesExplPackage {tagpdfdocu-patches} {2024-12-04} {0.99k}
  {patches/commands for the tagpdf documentation}
 \RequirePackage{etoolbox,xpatch}
 



More information about the tex-live-commits mailing list.