summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tagpdf/ex-tagpdf-template.tex
blob: c59ff33da3fa589586b6659217db3226cdffd921 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
% !Mode:: "TeX:DE:UTF-8:Main"

%this is more or less minimal template that can be used as starting point
%it doesn't set everything that would be needed!

% \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{iftex}
\iftutex
  \usepackage{fontspec}
\else
  \usepackage[T1]{fontenc}
\fi

\tagpdfsetup
    {
      tabsorder=structure,
    }
\begin{document}
\pagestyle{empty} %

    a paragraph

\end{document}