diff options
author | Norbert Preining <norbert@preining.info> | 2022-12-24 03:01:20 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-12-24 03:01:20 +0000 |
commit | da0bd16b0ba9d42d044af47137003788f0b7f773 (patch) | |
tree | c7681ad6dfc80d15e6439d6e981c48046acee3f8 /macros/latex/contrib/tagpdf/tagpdf-user.dtx | |
parent | b2b552bfe4933283e7d61d721bea40b0dd2bb9fb (diff) |
CTAN sync 202212240301
Diffstat (limited to 'macros/latex/contrib/tagpdf/tagpdf-user.dtx')
-rw-r--r-- | macros/latex/contrib/tagpdf/tagpdf-user.dtx | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/macros/latex/contrib/tagpdf/tagpdf-user.dtx b/macros/latex/contrib/tagpdf/tagpdf-user.dtx index bd2e26ec92..a70c14bb21 100644 --- a/macros/latex/contrib/tagpdf/tagpdf-user.dtx +++ b/macros/latex/contrib/tagpdf/tagpdf-user.dtx @@ -46,7 +46,7 @@ % }^^A % } % -% \date{Version 0.97, released 2022-08-24} +% \date{Version 0.98, released 2022-12-22} % \maketitle % \begin{documentation} % \section{Setup commands} @@ -246,7 +246,7 @@ % \begin{macrocode} %<@@=tag> %<*header> -\ProvidesExplPackage {tagpdf-user} {2022-08-24} {0.97} +\ProvidesExplPackage {tagpdf-user} {2022-12-22} {0.98} {tagpdf - user commands} %</header> % \end{macrocode} @@ -520,8 +520,10 @@ % \subsection{Structure destinations} % In TeXlive 2022 pdftex and luatex will offer support for structure destinations. % The pdfmanagement has already backend support. We activate them if the -% prerequisites are there: The pdf version should be 2.0, structures should be activated, +% prerequisites are there: structures should be activated, % the code in the pdfmanagement must be there. +% Structure destinations are actually PDF 2.0 only but they don't harm in +% older PDF and can improve html export. % \begin{macrocode} \AddToHook{begindocument/before} { @@ -530,7 +532,6 @@ { \g_@@_active_struct_dest_bool } { \g_@@_active_struct_bool } { \cs_if_exist_p:N \pdf_activate_structure_destination: } - { ! \pdf_version_compare_p:Nn < {2.0} } } { \tl_set:Nn \l_pdf_current_structure_destination_tl { __tag/struct/\g__tag_struct_stack_current_tl } @@ -559,15 +560,17 @@ % Probably one should add some checks if we are already in a paragraph. % % -% \begin{macro}{\l_@@_para_bool,\l_@@_para_show_bool,\g_@@_para_int} +% \begin{macro}{\l_@@_para_bool,\l_@@_para_show_bool,\g_@@_para_int,\l_@@_para_tag_default_tl} % At first some variables. % \begin{macrocode} \bool_new:N \l_@@_para_bool \bool_new:N \l_@@_para_show_bool \int_new:N \g_@@_para_begin_int \int_new:N \g_@@_para_end_int +\tl_new:N \l_@@_para_tag_default_tl +\tl_set:Nn \l_@@_para_tag_default_tl { P } \tl_new:N \l_@@_para_tag_tl -\tl_set:Nn \l_@@_para_tag_tl { P } +\tl_set:Nn \l_@@_para_tag_tl { \l_@@_para_tag_default_tl } % \end{macrocode} % \end{macro} % @@ -603,7 +606,7 @@ \llap{\color_select:n{red}\tiny\int_use:N\g_@@_para_begin_int\ } \tag_mc_end: } - \tag_mc_begin:n {tag=\l_@@_para_tag_tl} + \tag_mc_begin:n {} } } \AddToHook{para/end} |