blob: 8ce5b624b83100b6bb55489049970f030878e02e (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
% !Mode:: "TeX:DE:UTF-8:Main"
\RequirePackage{pdfmanagement-testphase}
\DeclareDocumentMetadata{pdfversion=1.7,uncompress}
\documentclass{book}
\usepackage[english,ngerman]{babel}
\usepackage{tagpdf}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{iftex}
\iftutex
\usepackage{fontspec}
\usepackage{luacode}
\else
\usepackage[T1]{fontenc}
\fi
\tagpdfsetup{tabsorder=structure,
activate
}
\newsavebox\mybox
% this works only as we have only one page. Footer/header must be handle in the output routine.
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\cfoot{\tagmcbegin{artifact=pagination}\thepage\tagmcend}
\begin{document}
\tagstructbegin{tag=Sect}
\tagstructbegin{tag=H}
\tagmcbegin{tag=H}
\section{Section}
\tagmcend
\tagstructend
\tagstructbegin{tag=P}
\tagmcbegin{tag=P,raw=/Alt (x)}
a paragraph\par x
\tagmcend
\tagstructend
\tagstructbegin{tag=L} %List
\tagstructbegin{tag=LI}
\tagstructbegin{tag=Lbl}
\tagmcbegin{tag=Lbl}
1.
\tagmcend
\tagstructend
\tagstructbegin{tag=LBody}
\tagmcbegin{tag=P}
List item body
\tagmcend
\tagstructend %lbody
\tagstructend %Li
\tagstructbegin{tag=LI}
\tagstructbegin{tag=Lbl}
\tagmcbegin{tag=Lbl}
2.
\tagmcend
\tagstructend
\tagstructbegin{tag=LBody}
\tagmcbegin{tag=P}
another List item body
\tagmcend
\tagstructend %lbody
\tagstructend %Li
\tagstructend %L
\tagstructend %Sect
\end{document}
|