summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tagpdf/ex-tagpdf-template.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-01-14 03:01:14 +0000
committerNorbert Preining <norbert@preining.info>2022-01-14 03:01:14 +0000
commit45623da68203ac8d7aa04b779a6ed65c92c3f866 (patch)
tree151ca3ede3ee826360d4b32c0029cfc106346ec9 /macros/latex/contrib/tagpdf/ex-tagpdf-template.tex
parentee3f9ca89b21a2174f7e427d9d48247b1912e130 (diff)
CTAN sync 202201140301
Diffstat (limited to 'macros/latex/contrib/tagpdf/ex-tagpdf-template.tex')
-rw-r--r--macros/latex/contrib/tagpdf/ex-tagpdf-template.tex24
1 files changed, 14 insertions, 10 deletions
diff --git a/macros/latex/contrib/tagpdf/ex-tagpdf-template.tex b/macros/latex/contrib/tagpdf/ex-tagpdf-template.tex
index a2b0db1164..c59ff33da3 100644
--- a/macros/latex/contrib/tagpdf/ex-tagpdf-template.tex
+++ b/macros/latex/contrib/tagpdf/ex-tagpdf-template.tex
@@ -2,15 +2,22 @@
%this is more or less minimal template that can be used as starting point
%it doesn't set everything that would be needed!
-\RequirePackage{pdfmanagement-testphase}
-\DeclareDocumentMetadata
- {
- uncompress,
- pdfversion=2.0
- }
+
+% \DocumentMetadata requires a new pdfmanagement-testphase version! Older versions
+% should use \DeclareDocumentMetadata
+
+% with a new LaTeX it will not longer be needed to load pdfmanagment-testphase!
+\IfFormatAtLeastTF{2022-06-01}{}
+ {\RequirePackage{pdfmanagement-testphase}}
+\DocumentMetadata
+ {uncompress,
+ pdfversion=2.0,
+ testphase=tagpdf %load and activate tagpdf
+ }
+
\documentclass{scrartcl}
\usepackage[english]{babel}
-\usepackage{tagpdf}
+
\usepackage{iftex}
\iftutex
\usepackage{fontspec}
@@ -21,9 +28,6 @@
\tagpdfsetup
{
tabsorder=structure,
- activate, %adds Document structure
- paratagging, %activates tagging of paragraphs.
- interwordspace %actives interword spaces (lualatex, pdflatex)
}
\begin{document}
\pagestyle{empty} %