diff options
Diffstat (limited to 'macros/latex/contrib/tagpdf/tagpdf-mc-shared.dtx')
-rw-r--r-- | macros/latex/contrib/tagpdf/tagpdf-mc-shared.dtx | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/macros/latex/contrib/tagpdf/tagpdf-mc-shared.dtx b/macros/latex/contrib/tagpdf/tagpdf-mc-shared.dtx index 852f1d0846..bbf8b3f720 100644 --- a/macros/latex/contrib/tagpdf/tagpdf-mc-shared.dtx +++ b/macros/latex/contrib/tagpdf/tagpdf-mc-shared.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -%% File: tagpdf-mc.dtx +%% File: tagpdf-mc-shared.dtx % % Copyright (C) 2019-2022 Ulrike Fischer % @@ -22,11 +22,7 @@ % % for those people who are interested. %<*driver> -\RequirePackage{pdfmanagement-testphase} -\DeclareDocumentMetadata{} -\makeatletter -\declare@file@substitution{doc.sty}{doc-v3beta.sty} -\makeatother +\DocumentMetadata{} \documentclass{l3doc} \usepackage{array,booktabs,caption} \hypersetup{pdfauthor=Ulrike Fischer, @@ -50,7 +46,7 @@ % }^^A % } % -% \date{Version 0.93, released 2022-01-13} +% \date{Version 0.94, released 2022-05-11} % \maketitle % \begin{documentation} % \section{Public Commands} @@ -178,7 +174,7 @@ % \begin{macrocode} %<@@=tag> %<*header> -\ProvidesExplPackage {tagpdf-mc-code-shared} {2022-01-13} {0.93} +\ProvidesExplPackage {tagpdf-mc-code-shared} {2022-05-11} {0.94} {part of tagpdf - code related to marking chunks - code shared by generic and luamode } %</header> @@ -300,6 +296,7 @@ { \tl_new:c { g_@@_mc_label_\tl_to_str:n{#1}_used_tl } } +%</shared> % \end{macrocode} % % \end{macro} @@ -311,7 +308,9 @@ % % TODO: is testing for struct the right test? % \begin{macrocode} -\cs_new_protected:Npn \tag_mc_use:n #1 %#1: label name +%<base>\cs_new_protected:Npn \tag_mc_use:n #1 {} +%<*shared> +\cs_set_protected:Npn \tag_mc_use:n #1 %#1: label name { \@@_check_if_active_struct:T { @@ -332,6 +331,7 @@ } } } +%</shared> % \end{macrocode} % \end{macro} % \begin{macro} @@ -343,26 +343,33 @@ % and then stops all tagging. It creates a group. % It pushes and pops mc-chunks at the begin and end. % \begin{macrocode} -\cs_new_protected:Npn \tag_mc_artifact_group_begin:n #1 +%<base>\cs_new_protected:Npn \tag_mc_artifact_group_begin:n #1 {} +%<base>\cs_new_protected:Npn \tag_mc_artifact_group_end:{} +%<*shared> +\cs_set_protected:Npn \tag_mc_artifact_group_begin:n #1 { \tag_mc_end_push: \tag_mc_begin:n {artifact=#1} \tag_stop_group_begin: } -\cs_new_protected:Npn \tag_mc_artifact_group_end: +\cs_set_protected:Npn \tag_mc_artifact_group_end: { \tag_stop_group_end: \tag_mc_end: \tag_mc_begin_pop:n{} } +%</shared> % \end{macrocode} % \end{macro} % % \begin{macro}{\tag_mc_end_push:, \tag_mc_begin_pop:n} % % \begin{macrocode} -\cs_new_protected:Npn \tag_mc_end_push: +%<base>\cs_new_protected:Npn \tag_mc_end_push: {} +%<base>\cs_new_protected:Npn \tag_mc_begin_pop:n #1 {} +%<*shared> +\cs_set_protected:Npn \tag_mc_end_push: { \@@_check_if_active_mc:T { @@ -381,7 +388,7 @@ } } -\cs_new_protected:Npn \tag_mc_begin_pop:n #1 +\cs_set_protected:Npn \tag_mc_begin_pop:n #1 { \@@_check_if_active_mc:T { |