How to get tagging off in new LaTeX
Bruno Voisin via tex-live <[email protected]>
| Newsgroups | gmane.comp.tex.live |
|---|---|
| Message-ID | <[email protected]> |
That's not a TL-specific question, but I assume some other users here may wonder the same.
Yesterday's TUG news mentioned yesterday's LaTeX news (issue 42) which describes yesterday's new LaTeX release (2025-11-01). This new release is already in the TeX Live updates.
The first three pages of LT news describe the extensive changes to the tagging behaviour, which is now triggered by \DocumentMetadata{}. Reaching the second column of page 2 of the news, I was already lost (so many new tagging-related packages, keys, commands, behaviours), and my only concern henceforth has been: how can I make sure the new tagging feature is completely off for now -- until I get a better hold of what tagging is and brings, and how it works in LaTeX -- while still keeping the other benefits of \DocumentMetadata{}?
I appreciate getting PDF 2.0 by default, and T1 fonts, and the pdfmanagement niceties like
\ExplSyntaxOn
\AddToHook{env/sidewaysfigure/end}{\pdfmanagement_add:nnn{ThisPage}{Rotate}{90}}
\AddToHook{env/sidewaystable/end}{\pdfmanagement_add:nnn{ThisPage}{Rotate}{90}}
\ExplSyntaxOff
to automatically rotate pages containing sideways figures or tables. But I fear that tagging might break the journal packages (like REVTeX, but also others) that I need to use most of the time.
The LaTeX news are a bit unclear in this respect. Reading them, I have the impression \DocumentMetadata{}, without any argument, does trigger tagging. But then there is "[\DocumentMetadata] will now load directly all the code that one would get when using the tagging=off or the testphase=latest key", which gives the impression tagging won't be loaded ("tagging=off" means no tagging, right?).
So, in essence, my question is: how to de-activate tagging while keeping everything else \DocumentMetadata provides (PDF 2.0, T1 fonts and pdfmanagement)? Is this
\DocumentMetadata{tagging=off}
Or
\RequirePackage{pdfmanagement}
\SetKeys[document/metadata]{pdfversion=2.0}
plus something else for T1 fonts?
Also, I wasn't aware \DocumentMetadata{} before meant an alternative hyperref driver was used (LT news, bottom of page 1, column 2). I use to customize hyperref output at times, copying pieces of code from the drivers in tex/latex/hyperref (like hpdftex.def) and putting a modified version in the preamble of my document. If I get things right, another hyperref driver file is involved when \DocumentMetadata{} is used, from another location. Where should I look then? Are the hyperref changes scattered in the various files inside tex/latex/latex-lab/?
Bruno Voisin