From 9fc4fc7a3e0c2a085bf32447278e741e6667b206 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Tue, 23 Feb 2021 22:24:07 +0000
Subject: tagpdf (23feb21)

git-svn-id: svn://tug.org/texlive/trunk@57857 c570f23f-e606-0410-a88d-b1316a301751
---
 .../doc/latex/tagpdf/ex-patch-sectioning-koma.tex         | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

(limited to 'Master/texmf-dist/doc/latex/tagpdf/ex-patch-sectioning-koma.tex')

diff --git a/Master/texmf-dist/doc/latex/tagpdf/ex-patch-sectioning-koma.tex b/Master/texmf-dist/doc/latex/tagpdf/ex-patch-sectioning-koma.tex
index 08d30f0f490..52277eef3a0 100644
--- a/Master/texmf-dist/doc/latex/tagpdf/ex-patch-sectioning-koma.tex
+++ b/Master/texmf-dist/doc/latex/tagpdf/ex-patch-sectioning-koma.tex
@@ -8,6 +8,9 @@
 
 %no page break involved. So the example works in lua and generic mode
 
+\RequirePackage{pdfmanagement-testphase}
+\DeclareDocumentMetadata{pdfversion=1.7,uncompress}
+
 \documentclass{scrbook}
 \usepackage[english]{babel}
 
@@ -15,15 +18,11 @@
 
 \tagpdfifpdftexT
  {
-  %set language / can also be done with hyperref
-  \pdfcatalog{/Lang (en-US)}
   \usepackage[T1]{fontenc}
  }
 
 \tagpdfifluatexT
  {
-  %set language / can also be done with hyperref
-  \pdfextension catalog{/Lang (en-US)}
   \usepackage{fontspec}
   \usepackage{luacode}
  }
@@ -31,10 +30,8 @@
 
 \tagpdfsetup{tabsorder=structure,
              activate-all,
-             uncompress
              }
 
-\usepackage{lipsum}%\textheight3cm
 
 %%%%%%%%%%%%%%%
 %Marking the toc entries
@@ -68,9 +65,9 @@
 
 
 \renewcommand{\addtocentrydefault}[3]{%
- \ifstr{#3}{}{}
+ \Ifstr{#3}{}{}
    {%\
-   \ifstr{#2}{}
+   \Ifstr{#2}{}
     {%
      \addcontentsline{toc}{#1}
       {%
@@ -151,7 +148,7 @@
     #4
     \tagmcend\tagstructend}%
  }
- 
+
 \ExplSyntaxOff
 \AfterTOCHead{\tagstructbegin{tag=TOC}}
 \AfterStartingTOC{\tagstructend} %end TOC
-- 
cgit v1.2.3

