[latex3-commits] [latex3/latex2e] latex-lab/uf-review-05: repair tagging if subparts are suppressed (f6874711)
github at latex-project.org
github at latex-project.org
Thu Jan 11 21:19:00 CET 2024
Repository : https://github.com/latex3/latex2e
On branch : latex-lab/uf-review-05
Link : https://github.com/latex3/latex2e/commit/f6874711f14443aef2f946af51b295fbbad98138
>---------------------------------------------------------------
commit f6874711f14443aef2f946af51b295fbbad98138
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Thu Jan 11 21:19:00 2024 +0100
repair tagging if subparts are suppressed
>---------------------------------------------------------------
f6874711f14443aef2f946af51b295fbbad98138
required/latex-lab/latex-lab-math.dtx | 22 ++++++++++++++++++++--
1 file changed, 20 insertions(+), 2 deletions(-)
diff --git a/required/latex-lab/latex-lab-math.dtx b/required/latex-lab/latex-lab-math.dtx
index 07213a7f..01e68021 100644
--- a/required/latex-lab/latex-lab-math.dtx
+++ b/required/latex-lab/latex-lab-math.dtx
@@ -633,8 +633,8 @@
% \end{macrocode}
% mathml handling doesn't like subparts, so we disable them for now:
% \begin{macrocode}
- \AssignSocketPlug{tagsupport/math/substruct/begin}{noop}
- \AssignSocketPlug{tagsupport/math/substruct/end}{noop}
+ \AssignSocketPlug{tagsupport/math/substruct/begin}{single}
+ \AssignSocketPlug{tagsupport/math/substruct/end}{single}
}
}
\AddToHook{begindocument}{\@@_AF_process_mathml_files:}
@@ -986,6 +986,24 @@
% \end{macrocode}
% \end{plugdecl}
+% \begin{plugdecl}{single}
+% We need an option to disable subparts as it is unclear
+% if consumers can handle them:
+% \begin{macrocode}
+\socket_new_plug:nnn
+ {tagsupport/math/substruct/begin}
+ {single}
+ {
+ \typeout{====>subpart~splitting~deactivated}
+ \typeout{====>grabbed~math=\meaning\g_@@_grabbed_math_tl}
+ \tag_mc_begin:n{}
+ }
+\socket_new_plug:nnn
+ {tagsupport/math/substruct/end}
+ {single}
+ { \tag_mc_end:}
+% \end{macrocode}
+% \end{plugdecl}
%
% \begin{socketdecl}{tagsupport/math/end}
% A socket used at the end of the math (before the closing dollar(s))
More information about the latex3-commits
mailing list.