[latex3-commits] [latex3/latex2e] latex-lab/uf-review-05: start with display math sockets (1dbe3b52)

github at latex-project.org github at latex-project.org
Sun Nov 26 00:47:25 CET 2023


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

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

commit 1dbe3b52979e8c47ddb4065d65bb14f54cb6267d
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sun Nov 26 00:47:25 2023 +0100

    start with display math sockets


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

1dbe3b52979e8c47ddb4065d65bb14f54cb6267d
 required/latex-lab/latex-lab-math.dtx | 57 ++++++++++++++++++++++++++++++++++-
 1 file changed, 56 insertions(+), 1 deletion(-)

diff --git a/required/latex-lab/latex-lab-math.dtx b/required/latex-lab/latex-lab-math.dtx
index 84ebb96a..1caf2db4 100644
--- a/required/latex-lab/latex-lab-math.dtx
+++ b/required/latex-lab/latex-lab-math.dtx
@@ -519,6 +519,59 @@
 %    \end{macrocode}
 % \end{plugdecl}
 % 
+% \subsubsection{Main display math sockets}
+% 
+% \begin{socketdecl}
+%   {
+%     tagsupport/math/display/begin,
+%     tagsupport/math/display/end,
+%     tagsupport/math/display/formula/begin,
+%     tagsupport/math/display/formula/end,
+%   }
+%   The first two sockets are meant to embed display
+%   math into the surrounding (so to close/reopen e.g. MC-chunks and
+%   P-structure).
+%   The other two implement the actual formula structure.                 
+%    \begin{macrocode}
+\socket_new:nn {tagsupport/math/display/begin}{0}
+\socket_new:nn {tagsupport/math/display/end}{0}
+\socket_new:nn {tagsupport/math/display/formula/begin}{1} %
+\socket_new:nn {tagsupport/math/display/formula/end}{0}
+%    \end{macrocode}
+%\end{socketdecl}
+
+% \begin{plugdecl}{default}
+%    \begin{macrocode}
+\socket_new_plug:nnn
+  {tagsupport/math/display/begin}
+  {default}
+  {}
+\socket_new_plug:nnn
+  {tagsupport/math/display/end}
+  {default}
+  {}  
+%    \end{macrocode}
+% \end{plugdecl}
+
+
+% \begin{plugdecl}{default}
+%    \begin{macrocode}
+\socket_new_plug:nnn
+  {tagsupport/math/display/formula/begin}
+  {default}
+  { 
+   \@kernel at math@begin
+   #1 
+  }
+\socket_new_plug:nnn
+  {tagsupport/math/display/formula/end}
+  {default}
+  {  
+  }  
+%    \end{macrocode}
+% \end{plugdecl}
+%
+% \subsubsection{Internal sockets}
 % \begin{socketdecl}{tagsupport/math/content}
 % The math content is stored in associated files and used for 
 % actual and alternative text. As the exact text is still
@@ -651,6 +704,8 @@
     \socket_assign_plug:nn {tagsupport/math/inline/end}{MC}
     \socket_assign_plug:nn {tagsupport/math/inline/formula/begin}{default}
     \socket_assign_plug:nn {tagsupport/math/inline/formula/end}{default}
+    \socket_assign_plug:nn {tagsupport/math/display/formula/begin}{default}
+    \socket_assign_plug:nn {tagsupport/math/display/formula/end}{default}
   } 
 %    \end{macrocode}
 % \end{macro}
@@ -782,7 +837,7 @@
 \cs_new_protected:Npn \@@_tag_dollardollar_display_end: {
 %  \typeout{== tag dollarldollar display end}
 %  \ShowTagging{struct-stack}
-  \tagpdfparaOff
+ % \tagpdfparaOff
   \para_raw_end:
   \tagpdfparaOn
   \l_@@_tmpa_skip \lastskip





More information about the latex3-commits mailing list.