summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tagpdf/ex-formula-problem.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/tagpdf/ex-formula-problem.tex
Initial commit
Diffstat (limited to 'macros/latex/contrib/tagpdf/ex-formula-problem.tex')
-rw-r--r--macros/latex/contrib/tagpdf/ex-formula-problem.tex59
1 files changed, 59 insertions, 0 deletions
diff --git a/macros/latex/contrib/tagpdf/ex-formula-problem.tex b/macros/latex/contrib/tagpdf/ex-formula-problem.tex
new file mode 100644
index 0000000000..55f9c95c37
--- /dev/null
+++ b/macros/latex/contrib/tagpdf/ex-formula-problem.tex
@@ -0,0 +1,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} \ No newline at end of file