blob: 07a5960cb5ef183549571a633618fcb21a150bb7 (
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
|
% !Mode:: "TeX:DE:UTF-8:Main"
%!!!!!!!
% manual tagging without paratagging. Won't work correctly in later phases.
%
\DocumentMetadata{testphase=phase-I,pdfversion=1.7,uncompress}
\documentclass{book}
\usepackage[english,ngerman]{babel}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{iftex}
\iftutex
\usepackage{fontspec}
\usepackage{luacode}
\else
\usepackage[T1]{fontenc}
\fi
\tagpdfsetup{tabsorder=structure}
\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{}
\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}
|