diff options
author | Karl Berry <karl@freefriends.org> | 2022-05-11 19:52:50 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-05-11 19:52:50 +0000 |
commit | 553e9726f51a42d6c41518390dad709caa19c9ca (patch) | |
tree | d1571f7d2a8896af998d50095d4bf24010379737 /Master/texmf-dist/tex/latex/tagpdf/tagpdfdocu-patches.sty | |
parent | e86d22fd7e27d2b130b3265fd12994e6f5c92d25 (diff) |
tagpdf (11may22)
git-svn-id: svn://tug.org/texlive/trunk@63282 c570f23f-e606-0410-a88d-b1316a301751
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. |