diff options
Diffstat (limited to 'macros/latex/contrib/tagpdf/tagpdfdocu-patches.sty')
-rw-r--r-- | macros/latex/contrib/tagpdf/tagpdfdocu-patches.sty | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/macros/latex/contrib/tagpdf/tagpdfdocu-patches.sty b/macros/latex/contrib/tagpdf/tagpdfdocu-patches.sty index 40dc38289f..ec5042709a 100644 --- a/macros/latex/contrib/tagpdf/tagpdfdocu-patches.sty +++ b/macros/latex/contrib/tagpdf/tagpdfdocu-patches.sty @@ -1,11 +1,14 @@ %\RequirePackage[enable-debug]{expl3}[2018/06/14] -\ProvidesExplPackage {tagpdfdocu-patches} {2021/03/22} {0.80} +\ProvidesExplPackage {tagpdfdocu-patches} {2021-06-14} {0.82} {patches/commands for the tagpdf documentation} %%%%% % tableofcontents +% no internal patches, but KOMA-only solution +% TODO it must be checked how best practice is now for the table of contents. %%%%% + \AfterTOCHead{\tag_struct_begin:n{tag=TOC}} \AfterStartingTOC{\tag_struct_end:} %end TOC %Marking the toc entries @@ -78,6 +81,7 @@ %%%%%%%%% % Sectioning commands +% no internal patches, but KOMA-only solution %%%%%%%% \AddtoDoHook{heading/begingroup}{\tagpdfparaOff\use_none:n} @@ -106,10 +110,10 @@ \tag_mc_end:\tagstructend}% } -%minisec is simply P, H6 doesn't work .... -% so we let paratagging handle this. But we add a strong structure -% should changed to H6 as it is no longer required to have H6 only after H5 -%but need to check how to disable paratagging ... +% minisec is simply P, so we let paratagging handle this. +% But we add a strong structure +% TODO: Should changed to H6 as it is no longer required to have H6 only after H5 +% but need to check how to disable paratagging ... \cs_new:Nn \__tag_docu_tag_minisec:n { \tag_struct_begin:n {tag=Strong} @@ -124,7 +128,8 @@ %%%% %% Lists - +%% patches enumitem internals! +%%%% \AddToHook{env/itemize/begin}{\par\tagstructbegin{tag=L}}%\par is needed to close the paragraph before. \AddToHook{env/itemize/end}{\par\tagstructend\tagstructend\tagstructend}%LBody,LI,L \AddToHook{env/enumerate/begin}{\par\tagstructbegin{tag=L}} @@ -204,7 +209,9 @@ % TODO % ======= bibliography ======== -% biblatex. There are some entry mc-chunks somewhere. +% biblatex. Creates some empty mc-chunks. +% no internal patches, but redefining begentry/finentry is not safe. +% better hook is needed. \newbibmacro*{begentry}{\tagstructbegin{tag=BibEntry}\tagmcbegin{tag=BibEntry}} \newbibmacro*{finentry}{\finentry\tagmcend\tagstructend} |