[latex3-commits] [latex3/latex2e] UF-latex-lab-structelem-fakemath: move tagpdfparaOff (latex3/tagging-project#765) (c749060f4)

github at latex-project.org github at latex-project.org
Wed Nov 20 00:08:26 CET 2024


Repository : https://github.com/latex3/latex2e
On branch  : UF-latex-lab-structelem-fakemath
Link       : https://github.com/latex3/latex2e/commit/c749060f4cf7f41ff215a40dccd18ba3dba6c55f

>---------------------------------------------------------------

commit c749060f4cf7f41ff215a40dccd18ba3dba6c55f
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Wed Nov 20 00:08:26 2024 +0100

    move tagpdfparaOff (latex3/tagging-project#765)


>---------------------------------------------------------------

c749060f4cf7f41ff215a40dccd18ba3dba6c55f
 required/latex-lab/changes.txt                     |  1 +
 required/latex-lab/latex-lab-math.dtx              |  8 +++-----
 .../latex-lab/testfiles-math/mtag-007-gh765.lvt    | 22 ++++++++++++++++++++++
 .../latex-lab/testfiles-math/mtag-007-gh765.tlg    |  0
 4 files changed, 26 insertions(+), 5 deletions(-)

diff --git a/required/latex-lab/changes.txt b/required/latex-lab/changes.txt
index 997c756dc..36f4249f3 100644
--- a/required/latex-lab/changes.txt
+++ b/required/latex-lab/changes.txt
@@ -3,6 +3,7 @@
 	fakemath (tagging/764)
 	* latex-lab-math.dtx: made all main math sockets to tagging sockets and 
 	assign the plugs directly.
+	* disable para tagging also in $$-display (tagging/765)
 
 2024-11-18 Joseph Wright <Joseph.Wright at latex-project.org>
 	* latex-lab-math.dtx: Use "@@" for a couple of internals
diff --git a/required/latex-lab/latex-lab-math.dtx b/required/latex-lab/latex-lab-math.dtx
index 3d645a8ad..85ffab717 100644
--- a/required/latex-lab/latex-lab-math.dtx
+++ b/required/latex-lab/latex-lab-math.dtx
@@ -1533,11 +1533,13 @@
 
 
 % \begin{plugdecl}{default}
+% \changes{v0.6j}{2024-11-19}{moved \cs{tagpdfparaOff} into the socket, tagging/765}
 %    \begin{macrocode}
 \socket_new_plug:nnn
   {tagsupport/math/display/formula/begin}
   {default}
   {
+    \tagpdfparaOff
     \@@_luamml_structelem:
     \tag_socket_use:n{math/content}
     \tag_socket_use:n{math/struct/begin}
@@ -1981,6 +1983,7 @@
 %
 % The end code is added through a \cs{aftergroup} so we
 % store it inside a command.
+% \changes{v0.6j}{2024-11-19}{removed unneeded \cs{tagpdfparaOn}}
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_tag_dollardollar_display_end:
   {
@@ -1988,10 +1991,6 @@
     %  \ShowTagging{struct-stack}
     \para_raw_end:
 %    \end{macrocode}
-% TODO why is that needed? where is para-tagging disabled?
-%    \begin{macrocode}
-    \tagpdfparaOn
-%    \end{macrocode}
 %    The \cs{postdisplaypenalty} was temporarily set to 10000 inside
 %    the display and the \cs{belowdisplayskip} and the
 %    \cs{belowdisplayshortskip} was negated, so whatever was inserted
@@ -2391,7 +2390,6 @@
          \__tag_tool_close_P:
        }
   \tag_socket_use:nn{math/display/formula/begin}{}{}
-  \tagpdfparaOff
 %  \typeout{==>MC1}\ShowTagging{mc-current}
 }
 
diff --git a/required/latex-lab/testfiles-math/mtag-007-gh765.lvt b/required/latex-lab/testfiles-math/mtag-007-gh765.lvt
new file mode 100644
index 000000000..b8a5bea57
--- /dev/null
+++ b/required/latex-lab/testfiles-math/mtag-007-gh765.lvt
@@ -0,0 +1,22 @@
+\DocumentMetadata{testphase={phase-III,math,table}}
+\input{regression-test}
+\RequirePackage{tagpdf-debug}
+\documentclass{article}
+\begin{document}
+
+$$
+  a = 
+  \mbox{\LaTeX \begin{tabular}{l}a\end{tabular}} 
+  \begin{tabular}{l}b\end{tabular} 
+  \parbox{3cm}{some text}
+$$
+
+\begin{equation}
+  a = 
+  \mbox{\LaTeX \begin{tabular}{l}a\end{tabular}} 
+  \begin{tabular}{l}b\end{tabular} 
+  \parbox{3cm}{some text}
+\end{equation} 
+
+\ShowTagging{debug/structures}
+\end{document}
diff --git a/required/latex-lab/testfiles-math/mtag-007-gh765.tlg b/required/latex-lab/testfiles-math/mtag-007-gh765.tlg
new file mode 100644
index 000000000..e69de29bb





More information about the latex3-commits mailing list.