summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tagpdf/ex-patch-list.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-02-24 03:01:25 +0000
committerNorbert Preining <norbert@preining.info>2021-02-24 03:01:25 +0000
commit55f834f428a0c05dedecc8d33a1c5300e58c91fc (patch)
tree149edecdb34c91f142df481ba9bbb6d74f8f62f6 /macros/latex/contrib/tagpdf/ex-patch-list.tex
parent22774c08f9f3ee390346355cda22d5e5fa667d78 (diff)
CTAN sync 202102240301
Diffstat (limited to 'macros/latex/contrib/tagpdf/ex-patch-list.tex')
-rw-r--r--macros/latex/contrib/tagpdf/ex-patch-list.tex17
1 files changed, 9 insertions, 8 deletions
diff --git a/macros/latex/contrib/tagpdf/ex-patch-list.tex b/macros/latex/contrib/tagpdf/ex-patch-list.tex
index 6cf5edd8a9..f3f149b20c 100644
--- a/macros/latex/contrib/tagpdf/ex-patch-list.tex
+++ b/macros/latex/contrib/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}