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,6 +75,20 @@
\prepnext@tok \prepnext@tok
} }
\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 { \cs_set:Npn \endarray {
\crcr \crcr
\__luamml_array_save_array: \__luamml_array_save_array:
@ -84,3 +98,4 @@
\@arrayright \@arrayright
\gdef \@preamble {} \gdef \@preamble {}
} }
}