[latex3-commits] [latex3/tagpdf] testtikzpicture: switch tikzpictures WIP (d3d93a1)
github at latex-project.org
github at latex-project.org
Mon Mar 25 20:05:21 CET 2024
Repository : https://github.com/latex3/tagpdf
On branch : testtikzpicture
Link : https://github.com/latex3/tagpdf/commit/d3d93a1e062b19e92c99d40619358ac5f38d37c5
>---------------------------------------------------------------
commit d3d93a1e062b19e92c99d40619358ac5f38d37c5
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Mon Mar 25 20:05:21 2024 +0100
switch tikzpictures WIP
>---------------------------------------------------------------
d3d93a1e062b19e92c99d40619358ac5f38d37c5
doc/tagpdf.tex | 13 +++----------
tagpdf-struct.dtx | 2 +-
2 files changed, 4 insertions(+), 11 deletions(-)
diff --git a/doc/tagpdf.tex b/doc/tagpdf.tex
index 7f146c3..0a96f0c 100644
--- a/doc/tagpdf.tex
+++ b/doc/tagpdf.tex
@@ -741,12 +741,9 @@ To tag a \PDF{} three tasks must be carried out:
\minisec{Structure}
-\tagpdfparaOff
\newlength\ydistance\setlength\ydistance{-0.8cm}
-\tagstructbegin{tag=Figure,alt={Illustration of structure},attribute=bbox}%
-\tagmcbegin{tag=Figure}%
-\begin{tikzpicture}[remember picture,baseline=(root.north)]
+\begin{tikzpicture}[remember picture,baseline=(root.north),alt=Illustration of structure]
\node[draw,anchor=base west] (root) at (0,0) {Sect (start section)};
\node[draw,anchor=base west] at (0.3,\ydistance) {H (header section)};
@@ -758,18 +755,14 @@ To tag a \PDF{} three tasks must be carried out:
\node[draw,anchor=base west](dref) at (0.6,7\ydistance){mc-chunk 4};
\node[draw,anchor=base west] at (0.3,8\ydistance){/P (end paragraph)};
\node[draw,anchor=base west] at (0,9\ydistance){/Sect (end section)};
-\end{tikzpicture}
-\begin{tikzpicture}[remember picture, overlay]
+\begin{scope}[overlay]
\draw[->,red](aref)-|(a);
\draw[->,red](bref)-|(b);
\draw[->,red](cref)-|(c);
\draw[->,red](dref)-|(d);
-
+\end{scope}
\end{tikzpicture}
-\tagmcend\tagstructend
-
-\tagpdfparaOn
\end{tcolorbox}
diff --git a/tagpdf-struct.dtx b/tagpdf-struct.dtx
index 16b8f11..7451e4d 100644
--- a/tagpdf-struct.dtx
+++ b/tagpdf-struct.dtx
@@ -378,7 +378,7 @@
% and the keys from the two following lists
% (the root has a special set of properties).
% the values of the prop should be already escaped properly
-% when the entries are created (title,lange,alt,E,actualtext)
+% when the entries are created (title,lang,alt,E,actualtext)
% \begin{variable}
% {
% \c_@@_struct_StructTreeRoot_entries_seq,
More information about the latex3-commits
mailing list.