[latex3-commits] [latex3/tagpdf] develop: use marginpar (27184b4)
github at latex-project.org
github at latex-project.org
Sat Mar 23 01:23:55 CET 2024
Repository : https://github.com/latex3/tagpdf
On branch : develop
Link : https://github.com/latex3/tagpdf/commit/27184b451c4c4d241c49758e84faa1801a6954ad
>---------------------------------------------------------------
commit 27184b451c4c4d241c49758e84faa1801a6954ad
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Sat Mar 23 01:23:55 2024 +0100
use marginpar
>---------------------------------------------------------------
27184b451c4c4d241c49758e84faa1801a6954ad
doc/tagpdf.tex | 17 +++++++++--------
doc/tagpdfdocu-patches.sty | 12 +++++++-----
2 files changed, 16 insertions(+), 13 deletions(-)
diff --git a/doc/tagpdf.tex b/doc/tagpdf.tex
index a08b4e6..10d218a 100644
--- a/doc/tagpdf.tex
+++ b/doc/tagpdf.tex
@@ -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.
@@ -2521,7 +2522,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
diff --git a/doc/tagpdfdocu-patches.sty b/doc/tagpdfdocu-patches.sty
index 17baec2..5e9b184 100644
--- a/doc/tagpdfdocu-patches.sty
+++ b/doc/tagpdfdocu-patches.sty
@@ -69,15 +69,17 @@
}
% ======== marginnote ==========
+% 2024-03-23 currently marginnote is no longer used, we use marginpar
% TODO marginnote has a bug (a \par is missing) so it messes up tagging.
% but currently unneeded as we marked them up as artifacts anyway as they don't contain
% meaningful contents
-\renewcommand*{\mn at parboxrestore}{\tagpdfparaOff}%
+%\renewcommand*{\mn at parboxrestore}{\tagpdfparaOff}%
-\NewDocumentCommand\sidenote{m}
- {
- \tag_mc_artifact_group_begin:n{notype}\tagpdfparaOff\marginnote{#1}\tag_mc_artifact_group_end:
- }
+%\NewDocumentCommand\sidenote{m}
+% {%
+% %\tag_mc_artifact_group_begin:n{notype}\tagpdfparaOff\marginnote{#1}\tag_mc_artifact_group_end:
+% \marginpar{#1}%
+% }
\ExplSyntaxOff
% ======== tikzpicture ==========
More information about the latex3-commits
mailing list.