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,12 +75,27 @@
\prepnext@tok \prepnext@tok
} }
\cs_set:Npn \endarray { \IfPackageAtLeastTF {array} {2023/12/11} {
\crcr \cs_set:Npn \endarray {
\__luamml_array_save_array: \tbl_crcr:n{endarray}
\egroup \__luamml_array_save_array:
\egroup \egroup
\mode_if_math:T { \__luamml_array_finalize_array: } \UseTaggingSocket{tbl/finalize}
\@arrayright \tbl_restore_outer_cell_data:
\gdef \@preamble {} \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
\__luamml_array_save_array:
\egroup
\egroup
\mode_if_math:T { \__luamml_array_finalize_array: }
\@arrayright
\gdef \@preamble {}
}
} }