summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tagpdf/ex-patch-list.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/tagpdf/ex-patch-list.tex')
-rw-r--r--macros/latex/contrib/tagpdf/ex-patch-list.tex24
1 files changed, 12 insertions, 12 deletions
diff --git a/macros/latex/contrib/tagpdf/ex-patch-list.tex b/macros/latex/contrib/tagpdf/ex-patch-list.tex
index f3f149b20c..d6485c86fe 100644
--- a/macros/latex/contrib/tagpdf/ex-patch-list.tex
+++ b/macros/latex/contrib/tagpdf/ex-patch-list.tex
@@ -6,29 +6,29 @@
%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.
+% not really up-to-date, with paratagging one could simplify things.
+
% 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}
+\DeclareDocumentMetadata{pdfversion=1.7,uncompress}
\documentclass{scrbook}
\usepackage[english]{babel}
\usepackage{tagpdf}
-\tagpdfifpdftexT
- {
- \usepackage[T1]{fontenc}
- }
-
-\tagpdfifluatexT
- {
+\usepackage{iftex}
+\iftutex
\usepackage{fontspec}
\usepackage{luacode}
- }
+\else
+ \usepackage[T1]{fontenc}
+\fi
+
\tagpdfsetup{tabsorder=structure,
- activate-all,
+ activate,
}
\usepackage{lipsum}%\textheight3cm
@@ -75,7 +75,7 @@
%I don't want to handle pagestyles, so set everything to empty:
\pagestyle{empty}\renewcommand\chapterpagestyle{empty}
-\tagstructbegin{tag=Document}
+
\begin{itemize}
\item \TAGP Ducks say quack\PGAT\meti
@@ -92,5 +92,5 @@
\item[marmots] \TAGP brown\PGAT\meti
\end{description}
-\tagstructend %Document
+
\end{document} \ No newline at end of file