diff options
Diffstat (limited to 'macros/latex/contrib/tagpdf/tagpdf.dtx')
-rw-r--r-- | macros/latex/contrib/tagpdf/tagpdf.dtx | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/macros/latex/contrib/tagpdf/tagpdf.dtx b/macros/latex/contrib/tagpdf/tagpdf.dtx index 5406505c59..95154859ee 100644 --- a/macros/latex/contrib/tagpdf/tagpdf.dtx +++ b/macros/latex/contrib/tagpdf/tagpdf.dtx @@ -33,9 +33,10 @@ % \end{syntax} % \end{function} % -% \begin{function}{ \tag_stop_group_begin:, \tag_stop_group_end: } +% \begin{function}{ \tag_stop_group_begin:, \tag_stop_group_end:, \tag_stop: } % We need a command to stop tagging in some places. -% This simply switches the two local booleans. +% This simply switches the two local booleans. The grouping commands +% can be used to group the effect. % \end{function} % % \begin{function}{activate-space (setup-key)} @@ -80,7 +81,7 @@ % \begin{macrocode} %<@@=tag> %<*package> -\ProvidesExplPackage {tagpdf} {2022-01-13} {0.93} +\ProvidesExplPackage {tagpdf} {2022-05-11} {0.94} { A package to experiment with pdf tagging } \bool_if:nF @@ -98,7 +99,7 @@ { Activate~it~with \MessageBreak \string\RequirePackage{pdfmanagement-testphase}\MessageBreak - \string\DeclareDocumentMetadata{<options>}\MessageBreak + \string\DocumentMetadata{<options>}\MessageBreak before~\string\documentclass } } @@ -106,7 +107,7 @@ % \end{macrocode} %<*debug> % \begin{macrocode} -\ProvidesExplPackage {tagpdf-debug} {2022-01-13} {0.93} +\ProvidesExplPackage {tagpdf-debug} {2022-05-11} {0.94} { debug code for tagpdf } \@ifpackageloaded{tagpdf}{}{\PackageWarning{tagpdf-debug}{tagpdf~not~loaded,~quitting}\endinput} \end{macrocode} @@ -140,13 +141,24 @@ % \begin{macrocode} \RequirePackage{l3ref-tmp} % \end{macrocode} -% +% To be on the safe side for now, load also the base definitions +% \begin{macrocode} +\RequirePackage{tagpdf-base} +%</package> +% \end{macrocode} +% \begin{macrocode} +%<*base> +\ProvidesExplPackage {tagpdf-base} {2022-05-11} {0.94} + {part of tagpdf - provide base, no-op versions of the user commands } +%</base> +% \end{macrocode} % \section{Temporary code} % This is code which will be removed when proper support exists in LaTeX % \subsection{a LastPage label} % See also issue \#2 in Accessible-xref % \begin{macro}{\@@_lastpagelabel:} % \begin{macrocode} +%<*package> \cs_new_protected:Npn \@@_lastpagelabel: { \legacy_if:nT { @filesw } @@ -302,7 +314,7 @@ \cs_generate_variant:Nn \pdf_object_ref:n {e} \cs_generate_variant:Nn \pdfannot_dict_put:nnn {nnx} \cs_generate_variant:Nn \pdffile_embed_stream:nnn {nxx,oxx} -\cs_generate_variant:Nn \prop_gput:Nnn {Nxx} +\cs_generate_variant:Nn \prop_gput:Nnn {Nxx,Nen} \cs_generate_variant:Nn \prop_put:Nnn {Nxx} \cs_generate_variant:Nn \ref_label:nn { nv } \cs_generate_variant:Nn \seq_set_split:Nnn{Nne} @@ -427,6 +439,11 @@ \bool_set_false:N \l_@@_active_mc_bool } \cs_set_eq:NN \tag_stop_group_end: \group_end: +\cs_new_protected:Npn \tag_stop: + { + \bool_set_false:N \l_@@_active_struct_bool + \bool_set_false:N \l_@@_active_mc_bool + } % \end{macrocode} % \end{macro} % |