summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tagpdf/ex-alt-actualtext.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-08-29 03:02:07 +0000
committerNorbert Preining <norbert@preining.info>2021-08-29 03:02:07 +0000
commit66f6e60b6dc60cc08482030b92df223b6a51b15f (patch)
treee64c800b73c0989d7e812b4a703088ceb131e0c4 /macros/latex/contrib/tagpdf/ex-alt-actualtext.tex
parentb11ef0810f2b6a651ce97d7e639f9c85efeedbd5 (diff)
CTAN sync 202108290302
Diffstat (limited to 'macros/latex/contrib/tagpdf/ex-alt-actualtext.tex')
-rw-r--r--macros/latex/contrib/tagpdf/ex-alt-actualtext.tex20
1 files changed, 9 insertions, 11 deletions
diff --git a/macros/latex/contrib/tagpdf/ex-alt-actualtext.tex b/macros/latex/contrib/tagpdf/ex-alt-actualtext.tex
index 822f1091be..148a010701 100644
--- a/macros/latex/contrib/tagpdf/ex-alt-actualtext.tex
+++ b/macros/latex/contrib/tagpdf/ex-alt-actualtext.tex
@@ -7,29 +7,27 @@
\usepackage{tagpdf}
\tagpdfsetup{tabsorder=structure,
- uncompress,activate-all}
-\tagpdfifpdftexT
- {
- \usepackage[T1]{fontenc}
- }
-
-\tagpdfifluatexT
- {
+ activate}
+\usepackage{iftex}
+\iftutex
\usepackage{fontspec}
\usepackage{unicode-math}
\usepackage{luacode}
\newfontface\zerowidthfont{freeserif}
- }
+\else
+ \usepackage[T1]{fontenc}
+\fi
+
\usepackage{graphicx}
% This is not a perfectly tagged document!
+% It doesn't use paratagging!
% one sentence is not marked (luatex will mark it as artifact)
% with pdflatex there is a encoding problem with the math
\begin{document}
\pagestyle{empty}
-\tagstructbegin{tag=Document}
%This isn't read by voice software
Etwas unmarkierter Text.
@@ -175,5 +173,5 @@ Etwas unmarkierter Text.
\includegraphics[width=1cm]{example-image-duck}
\tagmcend
-\tagstructend
+
\end{document}