From 66f6e60b6dc60cc08482030b92df223b6a51b15f Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Sun, 29 Aug 2021 03:02:07 +0000 Subject: CTAN sync 202108290302 --- macros/latex/contrib/tagpdf/ex-patch-list.tex | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'macros/latex/contrib/tagpdf/ex-patch-list.tex') 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 -- cgit v1.2.3