diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/tagpdf/ex-patch-list.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/tagpdf/ex-patch-list.tex | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/Master/texmf-dist/doc/latex/tagpdf/ex-patch-list.tex b/Master/texmf-dist/doc/latex/tagpdf/ex-patch-list.tex index 6cf5edd8a9b..f3f149b20ce 100644 --- a/Master/texmf-dist/doc/latex/tagpdf/ex-patch-list.tex +++ b/Master/texmf-dist/doc/latex/tagpdf/ex-patch-list.tex @@ -6,8 +6,10 @@ %It uses a command to end \item (\meti). It is perhaps possible to hide this command % inside \item/end{list}, but with nested list it is not so easy. -% Pay attention to casing. Li/LI, Lbody/Lbody are different. +% Pay attention to casing. Li/LI, Lbody/Lbody are different. %no page break involved. So the example works in lua and generic mode +\RequirePackage{pdfmanagement-testphase} +\DeclareDocumentMetadata{pdfversion=1.7,lang=en-UK,uncompress} \documentclass{scrbook} \usepackage[english]{babel} @@ -27,7 +29,6 @@ \tagpdfsetup{tabsorder=structure, activate-all, - uncompress } \usepackage{lipsum}%\textheight3cm @@ -36,7 +37,7 @@ \makeatletter -\newcommand\uftag@enit@format@preset[1]{% +\newcommand\tag@enit@format@preset[1]{% \tagstructbegin{tag=LI}% \tagstructbegin{tag=Lbl}% \tagmcbegin{tag=Lbl}% @@ -48,9 +49,9 @@ \newcommand\meti{% end of \item \tagstructend %end of LBody \tagstructend %end of LI -} +} -\xpatchcmd\enit@preset{\@firstofone}{\uftag@enit@format@preset}{}{\fail} +\xpatchcmd\enit@preset{\@firstofone}{\tag@enit@format@preset}{}{\fail} \setlist{ before*=\tagstructbegin{tag=L}, @@ -64,12 +65,12 @@ \tagstructbegin{tag=Lbl}% \tagmcbegin{tag=Lbl}% #1\tagmcend}} -\makeatother +\makeatother % marking of the text inside the list can not be handled automatically -- one doesn't know the type % we use simple P here \newcommand\TAGP{\tagstructbegin{tag=P}\tagmcbegin{tag=P}} -\newcommand\PGAT{\tagmcend\tagstructend} - +\newcommand\PGAT{\tagmcend\tagstructend} + \begin{document} %I don't want to handle pagestyles, so set everything to empty: \pagestyle{empty}\renewcommand\chapterpagestyle{empty} |