blob: 55f9c95c370bfa0bbc25518e2a91427e0e4e0bc0 (
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
|
% !Mode:: "TeX:DE:UTF-8:Main"
\documentclass{article}
\usepackage{tagpdf}
\tagpdfsetup{tabsorder=structure,
uncompress,activate-all}
\tagpdfifpdftexT
{
%set language / can also be done with hyperref
\pdfcatalog{/Lang (de-DE)}
\usepackage[T1]{fontenc}
\input glyphtounicode
\pdfgentounicode=1
}
\tagpdfifluatexT
{
%set language / can also be done with hyperref
\pdfextension catalog{/Lang (de-DE)}
\usepackage{fontspec}
\usepackage{unicode-math}
\usepackage{luacode}
\newfontface\zerowidthfont{freeserif}
}
\usepackage{graphicx}
% ndva doesn't read the alt text of the formulas
\begin{document}
\pagestyle{empty}
\tagstructbegin{tag=Document}
\tagstructbegin{tag=P}
\tagmcbegin{tag=P}
Ein Satz ohne Umlaute.
\tagmcend
\tagstructend
\tagstructbegin{tag=Formula}
\tagmcbegin {tag=Formula,alttext={Dies ist eine Formel}}
formula
\tagmcend
\tagstructend
\newpage
\tagstructbegin{tag=P}
\tagmcbegin{tag=P}
Ein Satz ohne Umlaute.
\tagmcend
\tagstructend
\tagstructbegin{tag=Formula,alttext=Dies ist eine zweite Formel}
\tagmcbegin {tag=Formula}
formula
\tagmcend
\tagstructend
\tagstructend
\end{document}
|