[latex3-commits] [latex3/latex2e] latex-lab/uf-review-05: add math/end socket for luamml flags (0c358f35)

github at latex-project.org github at latex-project.org
Wed Dec 27 19:22:13 CET 2023


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

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

commit 0c358f353bb02cc823988742029161c3160f7874
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Wed Dec 27 19:22:13 2023 +0100

    add math/end socket for luamml flags


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

0c358f353bb02cc823988742029161c3160f7874
 required/latex-lab/latex-lab-math.dtx | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/required/latex-lab/latex-lab-math.dtx b/required/latex-lab/latex-lab-math.dtx
index 829df649..2a912e06 100644
--- a/required/latex-lab/latex-lab-math.dtx
+++ b/required/latex-lab/latex-lab-math.dtx
@@ -499,6 +499,9 @@
 %   The first two sockets are meant to embed inline
 %   math into the surrounding (so to close/reopen e.g. MC-chunks).
 %   The other two implement the actual formula structure.  
+%   The formula sockets are despite their naming not symmetric:
+%   the begin socket is issued after the math has started, while 
+%   the end socket is after the math!                               
 %    \begin{macrocode}
 \socket_new:nn {tagsupport/math/inline/begin}{0}
 \socket_new:nn {tagsupport/math/inline/end}{0}
@@ -536,6 +539,7 @@
     % inner formula if multiple parts (not really implemented yet)
     \socket_use:n{tagsupport/math/substruct/begin}
     #1
+    \socket_use:n{tagsupport/math/end}
   }
 \socket_new_plug:nnn
   {tagsupport/math/inline/formula/end}
@@ -560,6 +564,9 @@
 %   math into the surrounding (so to close/reopen e.g. MC-chunks and
 %   P-structure).
 %   The other two implement the actual formula structure. 
+%   The formula sockets are despite their naming not symmetric:
+%   the begin socket is issued after the math has started, while 
+%   the end socket is after the math!                
 %    \begin{macrocode}
 \socket_new:nn {tagsupport/math/display/begin}{0}
 \socket_new:nn {tagsupport/math/display/end}{0}
@@ -593,6 +600,7 @@
     \socket_use:n{tagsupport/math/struct/begin}
     \socket_use:n{tagsupport/math/substruct/begin}
     #1 
+    \socket_use:n{tagsupport/math/end}
   }
 \socket_new_plug:nnn
   {tagsupport/math/display/formula/end}
@@ -746,7 +754,14 @@
 % \end{plugdecl}  
 
 % 
-% 
+% \begin{socketdecl}{tagsupport/math/end}
+%  A socket used at the end of the math (before the closing dollar(s))
+%  which can e.g. set a flag for luamml.
+%    \begin{macrocode}
+\socket_new:nn {tagsupport/math/end}{0}
+%    \end{macrocode}
+% \end{socketdecl}
+ 
 % 
 %  \begin{macro}{\__tag_math_disable:}
 %  Similar to the table code we collect the plugs that should be





More information about the latex3-commits mailing list.