[latex3-commits] [latex3/latex2e] latex-lab/uf-review-05: display math sockets (d7a1d9c4)
github at latex-project.org
github at latex-project.org
Sun Nov 26 23:10:45 CET 2023
Repository : https://github.com/latex3/latex2e
On branch : latex-lab/uf-review-05
Link : https://github.com/latex3/latex2e/commit/d7a1d9c44d80ef72047d9810d46000b75470c84c
>---------------------------------------------------------------
commit d7a1d9c44d80ef72047d9810d46000b75470c84c
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Sun Nov 26 23:10:45 2023 +0100
display math sockets
>---------------------------------------------------------------
d7a1d9c44d80ef72047d9810d46000b75470c84c
required/latex-lab/latex-lab-math.dtx | 33 ++++++++++++---------------------
1 file changed, 12 insertions(+), 21 deletions(-)
diff --git a/required/latex-lab/latex-lab-math.dtx b/required/latex-lab/latex-lab-math.dtx
index 1caf2db4..340bd822 100644
--- a/required/latex-lab/latex-lab-math.dtx
+++ b/required/latex-lab/latex-lab-math.dtx
@@ -354,7 +354,8 @@
% \begin{enumerate}
% \item Add (some of) the math display commands that were \enquote{lifted from
% plain}, e.g., \cs{displaylines} \cs{eqalign}(??).
-% \item
+% \item The breqn packages changes catcodes and that isn't yet covered
+% by our mechanism.
% \end{enumerate}
%
%
@@ -545,7 +546,7 @@
\socket_new_plug:nnn
{tagsupport/math/display/begin}
{default}
- {}
+ { \@kernel at close@P }
\socket_new_plug:nnn
{tagsupport/math/display/end}
{default}
@@ -690,6 +691,10 @@
\socket_assign_plug:nn {tagsupport/math/inline/end}{noop}
\socket_assign_plug:nn {tagsupport/math/inline/formula/begin}{identity}
\socket_assign_plug:nn {tagsupport/math/inline/formula/end}{noop}
+ \socket_assign_plug:nn {tagsupport/math/display/begin}{noop}
+ \socket_assign_plug:nn {tagsupport/math/display/end}{noop}
+ \socket_assign_plug:nn {tagsupport/math/display/formula/begin}{identity}
+ \socket_assign_plug:nn {tagsupport/math/display/formula/end}{noop}
}
% \end{macrocode}
% \end{macro}
@@ -704,6 +709,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/begin}{default}
+ \socket_assign_plug:nn {tagsupport/math/display/end}{default}
\socket_assign_plug:nn {tagsupport/math/display/formula/begin}{default}
\socket_assign_plug:nn {tagsupport/math/display/formula/end}{default}
}
@@ -802,8 +809,9 @@
{
\tl_if_blank:nF {#1}
{
- \@@_tag_dollardollar_display:nn { equation* }{#1}
- #1
+ \@@_process:nn { equation* } {#1}
+ \socket_use:n {tagsupport/math/display/begin}
+ \socket_use:nn{tagsupport/math/display/formula/begin}{#1}
$$
}
}
@@ -821,19 +829,6 @@
}
}
-
-
-\cs_new_protected:Npn \@@_tag_dollardollar_display:nn #1#2 {
- \@@_process:nn {#1} {#2}
- \@kernel at close@P
- \@kernel at math@begin
-% \skip_set:Nn \belowdisplayskip {-\belowdisplayskip}
-% \skip_set:Nn \belowdisplayshortskip {-\belowdisplayshortskip}
-% \int_set:Nn \postdisplaypenalty {10000}
-%%
-% \group_insert_after:N \@@_tag_dollardollar_display_end:
-}
-
\cs_new_protected:Npn \@@_tag_dollardollar_display_end: {
% \typeout{== tag dollarldollar display end}
% \ShowTagging{struct-stack}
@@ -1735,10 +1730,6 @@
% \end{macrocode}
%
% \begin{macrocode}
-%
-% \end{macrocode}
-%
-% \begin{macrocode}
%</kernel>
% \end{macrocode}
%
More information about the latex3-commits
mailing list.