inner table sockets
This commit is contained in:
parent
bdd3cd7480
commit
ece360295a
@ -91,11 +91,11 @@
|
|||||||
|
|
||||||
\cs_set:Npn \endaligned {
|
\cs_set:Npn \endaligned {
|
||||||
\crcr
|
\crcr
|
||||||
\__luamml_amsmath_save_inner_table:n \@currenvir
|
\UseExpandableTaggingSocket{math/luamml/mtable/innertable/save}
|
||||||
\egroup
|
\egroup
|
||||||
\restorecolumn@
|
\restorecolumn@
|
||||||
\egroup
|
\egroup
|
||||||
\__luamml_amsmath_finalize_inner_table:
|
\UseTaggingSocket{math/luamml/mtable/innertable/finalize}
|
||||||
}
|
}
|
||||||
|
|
||||||
% gather
|
% gather
|
||||||
@ -394,10 +394,10 @@
|
|||||||
\crcr
|
\crcr
|
||||||
}{%
|
}{%
|
||||||
\crcr
|
\crcr
|
||||||
\__luamml_amsmath_save_smallmatrix:
|
\UseExpandableTaggingSocket{math/luamml/mtable/smallmatrix/save}
|
||||||
\egroup
|
\egroup
|
||||||
\egroup
|
\egroup
|
||||||
\__luamml_amsmath_finalize_inner_table:
|
\UseTaggingSocket{math/luamml/mtable/innertable/finalize}
|
||||||
\UseTaggingSocket{ math/luamml/annotate/false } {}{ \, }
|
\UseTaggingSocket{ math/luamml/annotate/false } {}{ \, }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
30
luamml.dtx
30
luamml.dtx
@ -663,6 +663,36 @@
|
|||||||
|
|
||||||
%</luatex>
|
%</luatex>
|
||||||
% \end{macrocode}
|
% \end{macrocode}
|
||||||
|
%
|
||||||
|
% These sockets save an inner table
|
||||||
|
% \begin{macrocode}
|
||||||
|
\str_if_exist:cF { l__socket_tagsupport/math/luamml/mtable/innertable/save_plug_str }
|
||||||
|
{
|
||||||
|
\NewSocket{tagsupport/math/luamml/mtable/innertable/save}{0}
|
||||||
|
\NewSocket{tagsupport/math/luamml/mtable/smallmatrix/save}{0}
|
||||||
|
\NewSocket{tagsupport/math/luamml/mtable/innertable/finalize}{0}
|
||||||
|
}
|
||||||
|
% \end{macrocode}
|
||||||
|
% \begin{macrocode}
|
||||||
|
%<*luatex>
|
||||||
|
\NewSocketPlug{tagsupport/math/luamml/mtable/innertable/save}{luamml}
|
||||||
|
{
|
||||||
|
\__luamml_amsmath_save_inner_table:n \@currenvir
|
||||||
|
}
|
||||||
|
\AssignSocketPlug{tagsupport/math/luamml/mtable/innertable/save}{luamml}
|
||||||
|
\NewSocketPlug{tagsupport/math/luamml/mtable/smallmatrix/save}{luamml}
|
||||||
|
{
|
||||||
|
\__luamml_amsmath_save_smallmatrix:
|
||||||
|
}
|
||||||
|
\AssignSocketPlug{tagsupport/math/luamml/mtable/smallmatrix/save}{luamml}
|
||||||
|
\NewSocketPlug{tagsupport/math/luamml/mtable/innertable/finalize}{luamml}
|
||||||
|
{
|
||||||
|
\__luamml_amsmath_finalize_inner_table:
|
||||||
|
}
|
||||||
|
\AssignSocketPlug{tagsupport/math/luamml/mtable/innertable/finalize}{luamml}
|
||||||
|
%</luatex>
|
||||||
|
% \end{macrocode}
|
||||||
|
|
||||||
%
|
%
|
||||||
% This socket finalize the \texttt{mtable} in alignments like align or gather.
|
% This socket finalize the \texttt{mtable} in alignments like align or gather.
|
||||||
% It takes an argument, the environment.
|
% It takes an argument, the environment.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user