Adapt array patch for new array version

This commit is contained in:
Marcel Fabian Krüger 2024-08-24 14:18:09 +02:00
parent 9c757878ee
commit 92d3b9bd5b

View File

@ -56,18 +56,18 @@
\do@row@strut \do@row@strut
\or \or
\setbox \ar@mcellbox \vbox \@startpbox { \@nextchar } \setbox \ar@mcellbox \vbox \@startpbox { \@nextchar }
\insert@column \insert@pcolumn
\@endpbox \@endpbox
\ar@align@mcell \ar@align@mcell
\do@row@strut \do@row@strut
\or \or
\vtop \@startpbox { \@nextchar } \vtop \@startpbox { \@nextchar }
\insert@column \insert@pcolumn
\@endpbox \@endpbox
\do@row@strut \do@row@strut
\or \or
\vbox \@startpbox { \@nextchar } \vbox \@startpbox { \@nextchar }
\insert@column \insert@pcolumn
\@endpbox \@endpbox
\do@row@strut \do@row@strut
\fi \fi
@ -75,7 +75,21 @@
\prepnext@tok \prepnext@tok
} }
\cs_set:Npn \endarray { \IfPackageAtLeastTF {array} {2023/12/11} {
\cs_set:Npn \endarray {
\tbl_crcr:n{endarray}
\__luamml_array_save_array:
\egroup
\UseTaggingSocket{tbl/finalize}
\tbl_restore_outer_cell_data:
\egroup
\mode_if_math:T { \__luamml_array_finalize_array: }
\@arrayright
\gdef \@preamble {}
}
} {
\cs_new_eq:NN \insert@pcolumn \insert@column
\cs_set:Npn \endarray {
\crcr \crcr
\__luamml_array_save_array: \__luamml_array_save_array:
\egroup \egroup
@ -83,4 +97,5 @@
\mode_if_math:T { \__luamml_array_finalize_array: } \mode_if_math:T { \__luamml_array_finalize_array: }
\@arrayright \@arrayright
\gdef \@preamble {} \gdef \@preamble {}
}
} }