[latex3-commits] [latex3/latex2e] UF-latex-lab-tikz: move into pgfpicture for tikz command, handle figure better (b7298d3b)
github at latex-project.org
github at latex-project.org
Fri Oct 11 16:32:27 CEST 2024
Repository : https://github.com/latex3/latex2e
On branch : UF-latex-lab-tikz
Link : https://github.com/latex3/latex2e/commit/b7298d3be972f1b79047d632bed48f5fe72ab279
>---------------------------------------------------------------
commit b7298d3be972f1b79047d632bed48f5fe72ab279
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Fri Oct 11 16:32:27 2024 +0200
move into pgfpicture for tikz command, handle figure better
>---------------------------------------------------------------
b7298d3be972f1b79047d632bed48f5fe72ab279
required/latex-lab/latex-lab-tikz.dtx | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/required/latex-lab/latex-lab-tikz.dtx b/required/latex-lab/latex-lab-tikz.dtx
index 3d438ae6..cae4929a 100644
--- a/required/latex-lab/latex-lab-tikz.dtx
+++ b/required/latex-lab/latex-lab-tikz.dtx
@@ -144,7 +144,7 @@
%
% \begin{plugdecl}{text (tagsupport/tikzpicture/begin),text (tagsupport/tikzpicture/end)}
% This plug handles the \tikzname\ picture as a text object. So the graphical parts
-% are tagged as artifact, but when we encounter a node with activate tagging there.
+% are tagged as artifact, but when we encounter a node we activate tagging there.
% \begin{macrocode}
\NewSocketPlug{tagsupport/tikzpicture/begin}{text}
{
@@ -184,8 +184,10 @@
% \end{plugdecl}
%
% \begin{plugdecl}{figure (tagsupport/tikzpicture/begin),figure (tagsupport/tikzpicture/end)}
-% This plug handles the \tikzname\ picture as a figure. So the graphical parts and all
-% text nodes are tagged as artifact. Around the graphic is a Figure environment which will
+% This plug handles the \tikzname\ picture as a figure.
+% So the graphical parts and all
+% text nodes are tagged as a Figure and internally
+% tagging is suspended. Around the graphic is a Figure environment which will
% use a alt text given in the optional argument. Currently the bbox is not set!
% \begin{macrocode}
\NewSocketPlug{tagsupport/tikzpicture/begin}{figure}
@@ -201,7 +203,7 @@
%,attribute=bbox
}
\bool_set_false:N\l__tag_tikzpicture_usetext_bool
- \tagmcbegin{artifact}
+ \tagmcbegin{tag=Figure}
}
\NewSocketPlug{tagsupport/tikzpicture/end}{figure}
@@ -222,13 +224,13 @@
% We add the sockets to the environment and then suspend tagging.
% TODO: check how to handle the command and if we can use some inner environment
% \begin{macrocode}
-\AddToHook{env/tikzpicture/before}
+\AddToHook{cmd/pgfpicture/before}
{
\UseTaggingSocket{tikzpicture/begin}
\SuspendTagging{\tikzpicture}
}
-\AddToHook{env/tikzpicture/after}
+\AddToHook{cmd/endpgfpicture/after}
{
\ResumeTagging{\tikzpicture}
\UseTaggingSocket{tikzpicture/end}
More information about the latex3-commits
mailing list.