summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tagpdf/tagpdf-checks.dtx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-03-27 03:02:20 +0000
committerNorbert Preining <norbert@preining.info>2024-03-27 03:02:20 +0000
commit31fa8cd73bab8480d38dae3a89ca578f337d6bbd (patch)
treeba550e99e0cb15dbf5405369d536b12b051c5155 /macros/latex/contrib/tagpdf/tagpdf-checks.dtx
parent904f56f2c26edc7eb11d5a27579bccbeca29c618 (diff)
CTAN sync 202403270302
Diffstat (limited to 'macros/latex/contrib/tagpdf/tagpdf-checks.dtx')
-rw-r--r--macros/latex/contrib/tagpdf/tagpdf-checks.dtx46
1 files changed, 43 insertions, 3 deletions
diff --git a/macros/latex/contrib/tagpdf/tagpdf-checks.dtx b/macros/latex/contrib/tagpdf/tagpdf-checks.dtx
index d92c8b36e5..63b0185c47 100644
--- a/macros/latex/contrib/tagpdf/tagpdf-checks.dtx
+++ b/macros/latex/contrib/tagpdf/tagpdf-checks.dtx
@@ -48,7 +48,7 @@
% }^^A
% }
%
-% \date{Version 0.98x, released 2024-02-29}
+% \date{Version 0.99a, released 2024-03-27}
% \maketitle
% \begin{documentation}
% \section{Commands}
@@ -295,7 +295,11 @@
% if there are (beside Root) other open structures on the stack.
% \end{function}
%
-
+% \begin{function}{tree-statistic}
+% Message issued at the end of the compilation
+% showing the number of objects to write
+% \end{function}
+%
% \begin{function}{show-struct,show-kids}
% These two messages are used in debug mode
% to show the current structures in the log and terminal.
@@ -327,7 +331,7 @@
% \begin{macrocode}
%<@@=tag>
%<*header>
-\ProvidesExplPackage {tagpdf-checks-code} {2024-02-29} {0.98x}
+\ProvidesExplPackage {tagpdf-checks-code} {2024-03-27} {0.99a}
{part of tagpdf - code related to checks, conditionals, debugging and messages}
%</header>
% \end{macrocode}
@@ -461,6 +465,22 @@
The~structures~are~automatically~closed,\\
but~their~nesting~can~be~wrong.
}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{tree-statistic}
+% Message issued at the end showing the estimated number of
+% structures and MC-childs
+% \begin{macrocode}
+\msg_new:nnn { tag } {tree-statistic}
+ {
+ Finalizing~the~tagging~structure:\\
+ Writing~out~\c_tilde_str
+ \int_use:N\c@g_@@_struct_abs_int\c_space_tl~structure~objects\\
+ with~\c_tilde_str
+ \int_use:N\c@g_@@_MCID_abs_int\c_space_tl'MC'~leaf~nodes.\\
+ Be~patient~if~there~are~lots~of~objects!
+ }
%</package>
% \end{macrocode}
% \end{macro}
@@ -1128,5 +1148,25 @@
% \begin{macrocode}
%</debug>
% \end{macrocode}
+%
+% \subsection{Benchmarks}
+% It doesn't make much sense to do benchmarks in debug mode or in combination
+% with a log-level as this would slow down the compilation.
+% So we add simple commands that can be activated if l3benchmark has been loaded.
+% TODO: is a warning needed?
+% \begin{macrocode}
+%<*package>
+\cs_new_protected:Npn \@@_check_benchmark_tic:{}
+\cs_new_protected:Npn \@@_check_benchmark_toc:{}
+\cs_new_protected:Npn \tag_check_benchmark_on:
+ {
+ \cs_if_exist:NT \benchmark_tic:
+ {
+ \cs_set_eq:NN \@@_check_benchmark_tic: \benchmark_tic:
+ \cs_set_eq:NN \@@_check_benchmark_toc: \benchmark_toc:
+ }
+ }
+%</package>
+% \end{macrocode}
% \end{implementation}
% \PrintIndex