From 66f6e60b6dc60cc08482030b92df223b6a51b15f Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Sun, 29 Aug 2021 03:02:07 +0000
Subject: CTAN sync 202108290302

---
 macros/latex/contrib/tagpdf/ex-formula-problem.tex | 18 +++++++-----------
 1 file changed, 7 insertions(+), 11 deletions(-)

(limited to 'macros/latex/contrib/tagpdf/ex-formula-problem.tex')

diff --git a/macros/latex/contrib/tagpdf/ex-formula-problem.tex b/macros/latex/contrib/tagpdf/ex-formula-problem.tex
index 4f5032a5e5..31b311500b 100644
--- a/macros/latex/contrib/tagpdf/ex-formula-problem.tex
+++ b/macros/latex/contrib/tagpdf/ex-formula-problem.tex
@@ -8,26 +8,22 @@
 \usepackage{tagpdf}
 
 \tagpdfsetup{tabsorder=structure,
-             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}
 % ndva doesn't read the alt text of the formulas
 \begin{document}
 \pagestyle{empty}
 
-\tagstructbegin{tag=Document}
 
 \tagstructbegin{tag=P}
   \tagmcbegin{tag=P}
@@ -55,5 +51,5 @@
  \tagmcend
 \tagstructend
 
-\tagstructend
+
 \end{document} 
\ No newline at end of file
-- 
cgit v1.2.3

