diff options
Diffstat (limited to 'macros/latex/contrib/tagpdf/tagpdfdocu-patches.sty')
-rw-r--r-- | macros/latex/contrib/tagpdf/tagpdfdocu-patches.sty | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/macros/latex/contrib/tagpdf/tagpdfdocu-patches.sty b/macros/latex/contrib/tagpdf/tagpdfdocu-patches.sty index da42672f44..6ba1ee8d3f 100644 --- a/macros/latex/contrib/tagpdf/tagpdfdocu-patches.sty +++ b/macros/latex/contrib/tagpdf/tagpdfdocu-patches.sty @@ -1,5 +1,5 @@ %\RequirePackage[enable-debug]{expl3}[2018/06/14] -\ProvidesExplPackage {tagpdfdocu-patches} {2021-07-03} {0.91} +\ProvidesExplPackage {tagpdfdocu-patches} {2021-08-27} {0.92} {patches/commands for the tagpdf documentation} \RequirePackage{etoolbox} %%%% @@ -11,15 +11,23 @@ %% so let's test it here and patch \@outputpage %% we also disable paratagging, not for the tagging but to avoid that the small %% numbers gives overfull vbox messages ... +\bool_new:N \g__tag_docu_saved_in_mc_bool \patchcmd\@outputpage {\hb@xt@\textwidth{\@thehead}} { \hb@xt@\textwidth { \bool_set_false:N \l__tag_para_bool - \tag_mc_artifact_group_begin:n{pagination} + \bool_gset_eq:NN \g__tag_docu_saved_in_mc_bool \g__tag_in_mc_bool + \bool_gset_false:N \g__tag_in_mc_bool + \hfil + \tag_mc_begin:n {artifact=pagination} + \tag_stop_group_begin: \@thehead - \tag_mc_artifact_group_end: + \tag_stop_group_end: + \tag_mc_end: + \bool_gset_eq:NN \g__tag_in_mc_bool\g__tag_docu_saved_in_mc_bool + \hfil } } {}{\fail} @@ -29,9 +37,16 @@ \hb@xt@\textwidth { \bool_set_false:N \l__tag_para_bool - \tag_mc_artifact_group_begin:n{pagination} + \bool_gset_eq:NN \g__tag_docu_saved_in_mc_bool \g__tag_in_mc_bool + \bool_gset_false:N \g__tag_in_mc_bool + \hfil + \tag_mc_begin:n {artifact=pagination} + \tag_stop_group_begin: \@thefoot - \tag_mc_artifact_group_end: + \tag_stop_group_end: + \tag_mc_end: + \bool_gset_eq:NN \g__tag_in_mc_bool\g__tag_docu_saved_in_mc_bool + \hfil } } {}{\fail} |