diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/tagpdf/tagpdfdocu-patches.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/tagpdf/tagpdfdocu-patches.sty | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/tagpdf/tagpdfdocu-patches.sty b/Master/texmf-dist/tex/latex/tagpdf/tagpdfdocu-patches.sty index 3c283a8a3e3..102560ead07 100644 --- a/Master/texmf-dist/tex/latex/tagpdf/tagpdfdocu-patches.sty +++ b/Master/texmf-dist/tex/latex/tagpdf/tagpdfdocu-patches.sty @@ -1,5 +1,5 @@ %\RequirePackage[enable-debug]{expl3}[2018/06/14] -\ProvidesExplPackage {tagpdfdocu-patches} {2022-01-13} {0.93} +\ProvidesExplPackage {tagpdfdocu-patches} {2022-05-11} {0.94} {patches/commands for the tagpdf documentation} \RequirePackage{etoolbox} @@ -86,7 +86,11 @@ % no internal patches, but KOMA-only solution %%%%%%%% +% the structure should be opened rather early to catch the refstepcounter! \AddtoDoHook{heading/begingroup}{\tagpdfparaOff\use_none:n} +\cs_new_protected:Npn \__tag_struct_section_begin:n #1 {\tagstructbegin{tag=\prop_item:Nn\g_tag_section_level_prop{#1}}} +\AddtoDoHook{heading/postinit}{\__tag_struct_section_begin:n} +\AddtoDoHook{heading/endgroup}{\tagstructend\use_none:n} \prop_new:N \g_tag_section_level_prop \prop_gput:Nnn \g_tag_section_level_prop {section}{H1} @@ -98,7 +102,6 @@ { \@hangfrom {\hskip #2 - \tagstructbegin{tag=\prop_item:Nn\g_tag_section_level_prop{#1}} %\tl_if_empty:nF{#3} \tl_if_in:nnF{\@empty}{#3} { @@ -109,7 +112,7 @@ } {\tag_mc_begin:n {tag=\prop_item:Nn\g_tag_section_level_prop{#1}} #4 - \tag_mc_end:\tagstructend}% + \tag_mc_end:}% } % minisec is simply P, so we let paratagging handle this. |