[latex3-commits] [latex3/latex2e] latex-lab/uf-review-05: more move to sockets (3ef0eba1)

github at latex-project.org github at latex-project.org
Sat Nov 25 00:52:18 CET 2023


Repository : https://github.com/latex3/latex2e
On branch  : latex-lab/uf-review-05
Link       : https://github.com/latex3/latex2e/commit/3ef0eba1c0dc77a42640d728151147c0f4301c56

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

commit 3ef0eba1c0dc77a42640d728151147c0f4301c56
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sat Nov 25 00:52:18 2023 +0100

    more move to sockets


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

3ef0eba1c0dc77a42640d728151147c0f4301c56
 required/latex-lab/latex-lab-math.dtx | 25 +++++++++++++------------
 1 file changed, 13 insertions(+), 12 deletions(-)

diff --git a/required/latex-lab/latex-lab-math.dtx b/required/latex-lab/latex-lab-math.dtx
index 980737eb..d681c2ff 100644
--- a/required/latex-lab/latex-lab-math.dtx
+++ b/required/latex-lab/latex-lab-math.dtx
@@ -539,11 +539,20 @@
 \socket_new_plug:nnn
   {tagsupport/math/inline/formula/begin}
   {tag/dflt}
-  {\@kernel at math@begin #1}
+  {  
+    \socket_use:n{tagsupport/math/content}
+    \socket_use:n{tagsupport/math/struct/begin}
+    % inner formula if multiple parts (not really implemented yet)
+    \socket_use:n{tagsupport/math/substruct/begin}
+    #1
+  }
 \socket_new_plug:nnn
   {tagsupport/math/inline/formula/end}
   {tag/dflt}
-  {\@kernel at math@end}  
+  {  
+    \socket_use:n{tagsupport/math/substruct/end}
+    \socket_use:n{tagsupport/math/struct/end}
+  }  
 %    \end{macrocode}
 % \end{plugdecl}
 % 
@@ -641,12 +650,8 @@
     \tl_if_blank:nF {#1}
       {
         \@@_process:nn { math } {#1} % $
-% fairly simple this one
 %    \end{macrocode}
-% We do not want math tagging in fakemath or when measuring,
-% so we imitate the test inside \cs{@@_process:nn} for now,
-% see https://github.com/latex3/tagging-project/issues/5
-% TODO: use socket to get more control about typesetting variants (tagged, drop etc)?
+%  We do not want math tagging in fakemath or when measuring,
 %    \begin{macrocode}
       \bool_lazy_or:nnTF 
         {\legacy_if_p:n { measuring@ }}
@@ -663,11 +668,10 @@
   }
 %    \end{macrocode}
 % \end{macro}
+% 
 % \begin{macro}{\@@_grab_dollardollar:w}
 %   And for the classical \TeX{} display structure.
 %    \begin{macrocode}
-
-
 \cs_new_protected:Npn \@@_grab_dollardollar:w % $$
   #1 $$
   {
@@ -1104,9 +1108,6 @@
 % have macro control.
 %    \begin{macrocode}
 
-\tl_new:N\tmpmathcontent
-
-
 \def\@kernel at math@begin {
 %  \typeout{==>~math~begin}
 % needs different handling if we support nesting





More information about the latex3-commits mailing list.