diff options
Diffstat (limited to 'macros/latex/contrib/tagpdf/tagpdf.tex')
-rw-r--r-- | macros/latex/contrib/tagpdf/tagpdf.tex | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/macros/latex/contrib/tagpdf/tagpdf.tex b/macros/latex/contrib/tagpdf/tagpdf.tex index 89b0c73b0e..cc3295488e 100644 --- a/macros/latex/contrib/tagpdf/tagpdf.tex +++ b/macros/latex/contrib/tagpdf/tagpdf.tex @@ -15,8 +15,8 @@ } \DebugBlocksOff \makeatletter -\def\UlrikeFischer@package@version{0.98f} -\def\UlrikeFischer@package@date{2023-04-24} +\def\UlrikeFischer@package@version{0.98g} +\def\UlrikeFischer@package@date{2023-05-16} \makeatother \documentclass[DIV=12,parskip=half-,bibliography=totoc,a4paper]{article} @@ -558,6 +558,7 @@ command so that \pkg{tagpdf} can pick up the correct code path. { % testphase = phase-I, % tagging without paragraph tagging testphase = phase-II % tagging with paragraph tagging and other new stuff. + % testphase = phase-III % tagging with paragraph sec, toc, block tagging and more % pdfversion = 2.0 % pdfversion must be set here. } \documentclass{article} @@ -566,10 +567,26 @@ some text \end{document} \end{taglstlisting} -\minisec{Activation needed!} +\minisec{Deactivation} -It is not recommended anymore, but -the package can also be loaded normally with |\usepackage| (but it is +When loading \pkg{tagpdf} through the \texttt{testphase} keys, it is automatically activated. +To deactivate it while still retaining all the other new code from the latex-lab testphase files, +use in the preamble |\tagpdfsetup{activate-all=false}|. You can additionally also deactivate the +paratagging and the interword space code. +To suppress the loading of the package alltogether you can try + +\begin{taglstlisting} +\makeatletter +\disable@package@load{tagpdf}{} +\makeatother +\DocumentMetadata{...} +\end{taglstlisting} + + +\minisec{Loading as package needs activation!} + +It is not recommended anymore, but the package can also be loaded normally with |\usepackage| +(but it is still required to use \cs{DocumentMetadata} to load the \PDF\ management) but it will then -- apart from loading more packages and defining a lot of things -- not do much. You will have to \emph{activate} it with \verb+\tagpdfsetup+. @@ -1745,7 +1762,8 @@ These commands insert a structure previously stashed away as kid into the curren -A document should have at least one structure which contains the whole document. A suitable tag is \texttt{Document} or \texttt{Article}. I'm considering to automatically inserting it. +A document should have at least one structure which contains the whole document. A suitable tag is \texttt{Document}. +Such a root is now always added automatically. Its type can be changed with the key \texttt{activate}. |