summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tagpdf/tagpdf-checks.dtx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-09-01 03:01:08 +0000
committerNorbert Preining <norbert@preining.info>2023-09-01 03:01:08 +0000
commita6340ee3ba0294ecd24259d39642d27d804187b2 (patch)
treecc82e5c3e6d1b796a6f2a530aea279ff238b556c /macros/latex/contrib/tagpdf/tagpdf-checks.dtx
parent7cda3a1cc32bd43dab837e2b73046dab2aeaec98 (diff)
CTAN sync 202309010301
Diffstat (limited to 'macros/latex/contrib/tagpdf/tagpdf-checks.dtx')
-rw-r--r--macros/latex/contrib/tagpdf/tagpdf-checks.dtx34
1 files changed, 31 insertions, 3 deletions
diff --git a/macros/latex/contrib/tagpdf/tagpdf-checks.dtx b/macros/latex/contrib/tagpdf/tagpdf-checks.dtx
index 5bb332ee86..68123ff86c 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.98k, released 2023-08-04}
+% \date{Version 0.98l, released 2023-08-30}
% \maketitle
% \begin{documentation}
% \section{Commands}
@@ -85,6 +85,7 @@
% \cs{ShowTagging}{mc-data = num} & log+term & lua-only\\
% \cs{ShowTagging}{mc-current} & log+term & \\
% \cs{ShowTagging}{struck-stack= [log\verb+|+show]} & log or term+stop \\
+% \cs{ShowTagging}{debug/structures = num} & log+termn & debug mode only
% \end{tabular}
%
% \subsection{Messages in checks and commands}
@@ -312,7 +313,7 @@
% \begin{macrocode}
%<@@=tag>
%<*header>
-\ProvidesExplPackage {tagpdf-checks-code} {2023-08-04} {0.98k}
+\ProvidesExplPackage {tagpdf-checks-code} {2023-08-30} {0.98l}
{part of tagpdf - code related to checks, conditionals, debugging and messages}
%</header>
% \end{macrocode}
@@ -446,13 +447,40 @@
The~structures~are~automatically~closed,\\
but~their~nesting~can~be~wrong.
}
+%</package>
% \end{macrocode}
% \end{macro}
-%
+% The following messages are only needed in debug mode.
+% \begin{macro}{show-struct,show-kids}
+% This two messages are used to show the current structures in the log and terminal.
+% \begin{macrocode}
+%<*debug>
+\msg_new:nnn { tag/debug } { show-struct }
+ {
+ =========================\\
+ The~structure~#1~
+ \tl_if_empty:nTF {#2}
+ { is~empty \\>~ . }
+ { contains: #2 }
+ \\
+ }
+\msg_new:nnn { tag/debug } { show-kids }
+ {
+ The~structure~has~the~following~kids:
+ \tl_if_empty:nTF {#2}
+ { \\>~ NONE }
+ { #2 }
+ \\
+ =========================
+ }
+%</debug>
+% \end{macrocode}
+% \end{macro}
% \subsection{Attributes}
% Not much yet, as attributes aren't used so much.
% \begin{macro}{attr-unknown}
% \begin{macrocode}
+%<*package>
\msg_new:nnn { tag } {attr-unknown} { attribute~#1~is~unknown}
% \end{macrocode}
% \end{macro}