summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tagpdf/tagpdf-struct.dtx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-03-08 03:03:20 +0000
committerNorbert Preining <norbert@preining.info>2023-03-08 03:03:20 +0000
commita0867c71356c67c442bdebc0de39b7996f847bf7 (patch)
tree744a3932d78fb03b904b3355ea7b59abd0678055 /macros/latex/contrib/tagpdf/tagpdf-struct.dtx
parent4f55c9271affed648c1a939790a73083043752f5 (diff)
CTAN sync 202303080303
Diffstat (limited to 'macros/latex/contrib/tagpdf/tagpdf-struct.dtx')
-rw-r--r--macros/latex/contrib/tagpdf/tagpdf-struct.dtx26
1 files changed, 20 insertions, 6 deletions
diff --git a/macros/latex/contrib/tagpdf/tagpdf-struct.dtx b/macros/latex/contrib/tagpdf/tagpdf-struct.dtx
index c488ad823d..796ecf34e4 100644
--- a/macros/latex/contrib/tagpdf/tagpdf-struct.dtx
+++ b/macros/latex/contrib/tagpdf/tagpdf-struct.dtx
@@ -46,17 +46,22 @@
% }^^A
% }
%
-% \date{Version 0.98d, released 2023-02-15}
+% \date{Version 0.98e, released 2023-03-07}
% \maketitle
% \begin{documentation}
% \section{Public Commands}
-% \begin{function}{\tag_struct_begin:n,\tag_struct_end:}
+% \begin{function}{\tag_struct_begin:n,\tag_struct_end:,\tag_struct_end:n}
% \begin{syntax}
% \cs{tag_struct_begin:n}\Arg{key-values}\\
-% \cs{tag_struct_end:}
+% \cs{tag_struct_end:}\\
+% \cs{tag_struct_end:n}\Arg{tag}
% \end{syntax}
% These commands start and end a new structure.
% They don't start a group. They set all their values globally.
+% \cs{tag_struct_end:n} does nothing special normally (apart from
+% swallowing its argument, but if \texttt{tagpdf-debug} is loaded,
+% it will check if the \Arg{tag} (after expansion)
+% is identical to the current structure on the stack. The tag is not role mapped!
% \end{function}
% \begin{function}{\tag_struct_use:n}
% \begin{syntax}
@@ -242,7 +247,7 @@
% \begin{macrocode}
%<@@=tag>
%<*header>
-\ProvidesExplPackage {tagpdf-struct-code} {2023-02-15} {0.98d}
+\ProvidesExplPackage {tagpdf-struct-code} {2023-03-07} {0.98e}
{part of tagpdf - code related to storing structure}
%</header>
% \end{macrocode}
@@ -416,7 +421,9 @@
% to reference them in a Ref. The key is the destination.
% It is currently used by the toc-tagging and sec-tagging code.
% \begin{macrocode}
-\prop_new:N \g_@@_struct_dest_num_prop
+%</package>
+%<base>\prop_new:N \g_@@_struct_dest_num_prop
+%<*package>
% \end{macrocode}
% \end{variable}
%
@@ -1251,6 +1258,7 @@
% \begin{macrocode}
%<base>\cs_new_protected:Npn \tag_struct_begin:n #1 {\int_gincr:N \c@g_@@_struct_abs_int}
%<base>\cs_new_protected:Npn \tag_struct_end:{}
+%<base>\cs_new_protected:Npn \tag_struct_end:n{}
%<*package|debug>
%<package>\cs_set_protected:Npn \tag_struct_begin:n #1 %#1 key-val
%<debug>\cs_set_protected:Npn \tag_struct_begin:n #1 %#1 key-val
@@ -1398,6 +1406,12 @@
}
%<debug>{\@@_debug_struct_end_ignore:}
}
+
+\cs_set_protected:Npn \tag_struct_end:n #1
+ {
+%<debug>\@@_debug_struct_end_check:n{#1}
+ \tag_struct_end:
+ }
%</package|debug>
% \end{macrocode}
% \end{macro}
@@ -1552,7 +1566,7 @@
% \section{Attributes and attribute classes}
% \begin{macrocode}
%<*header>
-\ProvidesExplPackage {tagpdf-attr-code} {2023-02-15} {0.98d}
+\ProvidesExplPackage {tagpdf-attr-code} {2023-03-07} {0.98e}
{part of tagpdf - code related to attributes and attribute classes}
%</header>
% \end{macrocode}