diff options
author | Norbert Preining <norbert@preining.info> | 2023-12-19 03:00:50 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-12-19 03:00:50 +0000 |
commit | 60e9a31bad8271499f6b5f9280174e76bd62814f (patch) | |
tree | c33ee4a5f7e5fb95bab9a06c6a5121e1f4728db1 /macros/latex/contrib/tagpdf/tagpdf-checks.dtx | |
parent | e7154d152b4c047832de9bd4cf0d2bc3efe4125a (diff) |
CTAN sync 202312190300
Diffstat (limited to 'macros/latex/contrib/tagpdf/tagpdf-checks.dtx')
-rw-r--r-- | macros/latex/contrib/tagpdf/tagpdf-checks.dtx | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/macros/latex/contrib/tagpdf/tagpdf-checks.dtx b/macros/latex/contrib/tagpdf/tagpdf-checks.dtx index 9b4de607d4..80d865405d 100644 --- a/macros/latex/contrib/tagpdf/tagpdf-checks.dtx +++ b/macros/latex/contrib/tagpdf/tagpdf-checks.dtx @@ -18,7 +18,7 @@ % % The development version of the bundle can be found at % -% https://github.com/u-fischer/tagpdf +% https://github.com/latex3/tagpdf % % for those people who are interested. % @@ -48,7 +48,7 @@ % }^^A % } % -% \date{Version 0.98q, released 2023-11-19} +% \date{Version 0.98r, released 2023-12-18} % \maketitle % \begin{documentation} % \section{Commands} @@ -313,7 +313,7 @@ % \begin{macrocode} %<@@=tag> %<*header> -\ProvidesExplPackage {tagpdf-checks-code} {2023-11-19} {0.98q} +\ProvidesExplPackage {tagpdf-checks-code} {2023-12-18} {0.98r} {part of tagpdf - code related to checks, conditionals, debugging and messages} %</header> % \end{macrocode} @@ -1030,7 +1030,7 @@ % \begin{macrocode} \msg_new:nnn { tag / debug } {struct-begin} { - Struct~\tag_get:n{struct_num}~begin~#1~with~options:~\tl_to_str:n{#2}~[\msg_line_context:] + Struct~\tag_get:n{struct_num}~begin~#1~with~options:~\tl_to_str:n{#2}~\\[\msg_line_context:] } \msg_new:nnn { tag / debug } {struct-end} { @@ -1088,7 +1088,27 @@ } } } - +% \end{macrocode} +% This tracks tag stop and start. +% The tag-stop message should go before the int is increased. +% The tag-start message after the int is decreased. +% \begin{macrocode} +\msg_new:nnn { tag / debug } {tag-stop} + { + \int_if_zero:nTF + {#1} + {Tagging~stopped} + {Tagging~(not)~stopped~(already~inactive)}\\ + level:~#1~==>~\int_eval:n{#1+1}\tl_if_empty:nF{#2}{,~label:~#2}~[\msg_line_context:] + } +\msg_new:nnn { tag / debug } {tag-start} + { + \int_if_zero:nTF + {#1} + {Tagging~restarted} + {Tagging~(not)~restarted}\\ + level:~\int_eval:n{#1+1}~==>~#1\tl_if_empty:nF{#2}{,~label:~#2}~[\msg_line_context:] + } % \end{macrocode} % \begin{macrocode} %</debug> |