summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tagpdf/tagpdf.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/tagpdf/tagpdf.tex')
-rw-r--r--macros/latex/contrib/tagpdf/tagpdf.tex26
1 files changed, 13 insertions, 13 deletions
diff --git a/macros/latex/contrib/tagpdf/tagpdf.tex b/macros/latex/contrib/tagpdf/tagpdf.tex
index 59eacee0b4..b8b718482b 100644
--- a/macros/latex/contrib/tagpdf/tagpdf.tex
+++ b/macros/latex/contrib/tagpdf/tagpdf.tex
@@ -16,8 +16,8 @@
}
\DebugBlocksOff
\makeatletter
-\def\UlrikeFischer@package@version{0.98x}
-\def\UlrikeFischer@package@date{2024-02-29}
+\def\UlrikeFischer@package@version{0.99a}
+\def\UlrikeFischer@package@date{2024-03-27}
\makeatother
\documentclass[bibliography=totoc,a4paper]{article}
@@ -34,8 +34,8 @@
\usepackage[style=numeric]{biblatex}
\addbibresource{tagpdf.bib}
-\usepackage[noparboxrestore]{marginnote}
\reversemarginpar
+\NewDocumentCommand\sidenote{m}{\marginpar{#1}}
\usepackage{booktabs}
\setlength\belowcaptionskip{10pt}
\usepackage{tcolorbox}
@@ -384,10 +384,11 @@ command so that \pkg{tagpdf} can pick up the correct code path.
\begin{taglstlisting}
\DocumentMetadata
{
- % 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.
+ % testphase = phase-I, % tagging without paragraph tagging
+ % testphase = phase-II, % tagging with paragraph tagging
+ testphase = phase-III, % tagging with paragraph sec, toc, blocks and more
+ pdfversion = 2.0, % pdfversion must be set here.
+ pdfstandard=ua-2, % pdfstandard can be set too
}
\documentclass{article}
\begin{document}
@@ -1028,7 +1029,7 @@ The key-val list understands the following keys:
The validators complain if some text is not marked up, but it is not
quite clear if this is a serious problem.
- The\sidenote{lua mode only} lua mode will mark up everything unmarked as
+ The\sidenote{lua mode} lua mode will mark up everything unmarked as
\texttt{artifact=notype}. You can suppress this behavior by setting the
tagpdfsetup key \texttt{activate/tagunmarked} to false. See section
\ref{ssec:setup}.
@@ -1199,7 +1200,7 @@ This (expandable) command returns the values of some variables. Currently, the w
\subsubsection{Luamode: global or not global -- that is the question}\label{sec:global-local}
-In\sidenote{Luamode mode only} luamode the mc-commands set and unset an
+In\sidenote{lua mode} luamode the mc-commands set and unset an
attribute to mark the nodes. One can view such an attribute like a font
change or a color: they affect all following chars and glue nodes until
stopped.
@@ -1858,7 +1859,8 @@ The key-val list understands the following keys:
\item[\PrintKeyName{lang}] This key allows to set the language for
a structure element. The value should be a bcp-identifier,
- e.g. |de-De|.
+ e.g. |de-De|. It can also be set \enquote{from the outside} for all
+ structures in the current group with \cs{tagpdfsetup} and the |text/lang| key.
\item[\PrintKeyName{ref}] This key allows to add references to
other structure elements, it adds the |/Ref| array to the
@@ -2472,8 +2474,6 @@ perhaps insert break points.
\section{Storing and reusing boxes}\label{sec:savebox}
-\section{Saving and using boxes}
-
\TeX{} allows to store material in boxes and to use these box once or
multiple times in other places. This poses some challenges to tagging. The
listings in the following examples uses low-level \TeX{} box commands to
@@ -2523,7 +2523,7 @@ The box can in both modes be used without problems many times.
We assume in the following that the box contains only well balanced tagging
commands and no parts that are \enquote{untagged}. It should be possible to
-copy the whole box inside a \verb+\tagstructbegin+/\verb+\tagstructend+
+copy the whole box inside a \verb+\tagstructbegin+/\hspace{0pt}\verb+\tagstructend+
pair. So the following is fine as box content
\begin{taglstlisting}
box=\tagstructbegin{...}\tagmcbegin{} balanced content\tagmcend\tagstructend