Interne Links im Inhaltsverzeichnis verschwunden

"\"Christian H. Kuhn\"" (via tex-d-l Mailing List) <[email protected]> Fri, 3 Oct 2025 22:31:34 +0200
Newsgroups gmane.comp.tex.german
Message-ID <[email protected]>
Liebe Gemeinde,

für ein Projekt lerne ich gerade, wie man barrierefreie PDFs mit 
LuaLaTeX baut. Barrierefrei gelingt, aber offensichtlich besteht dabei 
eine Kollision mit dem Paket hyperref. Die Aktivierung von 
\DocumentMetadata lässt die internen Links im Inhaltsverzeichnis 
verschwinden.

Minimalbeispiel:

\DocumentMetadata
  {
   pdfversion = 2.0,
   pdfstandard=ua-2,
   pdfstandard=a-4f,
   tagging=on,
   lang=de
  }
\documentclass{scrartcl}
\usepackage{hyperref}
\begin{document}
\tableofcontents
\section{A}
a
\end{document}

Ohne \DocumentMetadata alles wie gewohnt. Mit \DocumentMetadata sind die 
Inhaltsverzeichniseinträge keine Links.

Fehlermeldungen im Log (nur Warnings):

(Loading tocbasic.sty)
LaTeX Warning: Command \@footnotemark  has changed.
                Check if current package is valid.

(Loading typearea.sty)
Class scrartcl Warning: `\@startsection' has been changed.
(scrartcl)              scrartcl needs it's own definition of 
`\@startsection'
(scrartcl)              to provide extended features for the optional 
argument
(scrartcl)              of `\section' etc.
(scrartcl)              Generally it defines `\@startsection' completely new
(scrartcl)              to achieve this. Because of the unexpected 
definition
(scrartcl)              an alternative approach will be used.
(scrartcl)              If this fails and if there isn't a new release of
(scrartcl)              KOMA-Script that fixes the problem, please
(scrartcl)              send a report to the KOMA-Script author.
(scrartcl)              Note, that this alternative approach does not
(scrartcl)              execute the elements of do-hooks:
(scrartcl)                - `heading/postinit',
(scrartcl)                - `heading/branch/star',
(scrartcl)                - `heading/branch/nostar',
(scrartcl)              and does always use `runin=bysign' and
(scrartcl)              `afterindent=bysign'.

Class scrartcl Warning: Unexpected definition of \@sect!
(scrartcl)              Please send information about this to
(scrartcl)              the KOMA-Script maintainer!
(scrartcl)              Maybe LaTeX will be broken by the redefinition
(scrartcl)              of \@sect on input line 3559.

Class scrartcl Warning: Unexpected definition of \@ssect!
(scrartcl)              Please send information about this to
(scrartcl)              the KOMA-Script maintainer!
(scrartcl)              Maybe LaTeX will be broken by the redefinition
(scrartcl)              of \@ssect on input line 3757.

Class scrartcl Warning: Unexpected definition of \@xsect!
(scrartcl)              Please send information about this to
(scrartcl)              the KOMA-Script maintainer!
(scrartcl)              Maybe LaTeX will be broken by the redefinition
(scrartcl)              of \@xsect on input line 3838.

Class scrartcl Warning: Incompatible usage of \@ssect detected.
(scrartcl)              You've used the KOMA-Script implementation of 
\@ssect
(scrartcl)              from within a non compatible caller, that does not
(scrartcl)              \scr@s@ct@@nn@m@ locally.
(scrartcl)              This could result in several error messages on 
input line 12.

Hyperref und pdf management scheinen sich nicht zu mögen. Wie schaffe 
ich es auf anderem Wege, interne Links im Inhaltsverzeichnis zu erhalten?

TIA
QNo

-- 
FAQ: http://texfragen.de/
Durchsuchbares Archiv: https://www.listserv.dfn.de/sympa/arc/tex-d-l 
Unsubscribe/Verwaltung: https://www.listserv.dfn.de/sympa/info/tex-d-l