2021-04-29 02:07:53 +02:00
|
|
|
\ProvidesExplPackage {luamml-patches-array} {2021-04-23} {0.0.1-alpha}
|
|
|
|
{Feel free to add a description here}
|
|
|
|
|
|
|
|
\lua_now:n { require'luamml-array' }
|
|
|
|
|
2021-04-30 19:03:36 +02:00
|
|
|
\cs_set:Npn \@classz {
|
|
|
|
\@classx
|
|
|
|
\@tempcnta \count@
|
|
|
|
\prepnext@tok
|
|
|
|
\@addtopreamble {
|
|
|
|
\ifcase \@chnum
|
|
|
|
\hfil
|
|
|
|
\hskip 1sp
|
|
|
|
\d@llarbegin
|
2021-06-22 16:59:38 +02:00
|
|
|
\cs_if_eq:NNTF \d@llarbegin \begingroup {
|
|
|
|
\insert@column
|
|
|
|
\d@llarend
|
|
|
|
} {
|
|
|
|
\__luamml_array_init_col:
|
|
|
|
\insert@column
|
2021-06-27 00:43:30 +02:00
|
|
|
\luamml_flag_save:nn {} {mtd}
|
2021-06-22 16:59:38 +02:00
|
|
|
\d@llarend
|
|
|
|
\__luamml_array_finalize_col:w 0~
|
|
|
|
}
|
2021-04-30 19:03:36 +02:00
|
|
|
\do@row@strut
|
|
|
|
\hfil
|
|
|
|
\or
|
|
|
|
\hskip 1sp
|
|
|
|
\d@llarbegin
|
2021-06-22 16:59:38 +02:00
|
|
|
\cs_if_eq:NNTF \d@llarbegin \begingroup {
|
|
|
|
\insert@column
|
|
|
|
\d@llarend
|
|
|
|
} {
|
|
|
|
\__luamml_array_init_col:
|
|
|
|
\insert@column
|
2021-06-27 00:43:30 +02:00
|
|
|
\luamml_flag_save:nn {} {mtd}
|
2021-06-22 16:59:38 +02:00
|
|
|
\d@llarend
|
|
|
|
\__luamml_array_finalize_col:w 1~
|
|
|
|
}
|
2021-04-30 19:03:36 +02:00
|
|
|
\do@row@strut
|
|
|
|
\hfil
|
|
|
|
\or
|
|
|
|
\hfil
|
|
|
|
\hskip 1sp
|
|
|
|
\d@llarbegin
|
2021-06-22 16:59:38 +02:00
|
|
|
\cs_if_eq:NNTF \d@llarbegin \begingroup {
|
|
|
|
\insert@column
|
|
|
|
\d@llarend
|
|
|
|
} {
|
|
|
|
\__luamml_array_init_col:
|
|
|
|
\insert@column
|
2021-06-27 00:43:30 +02:00
|
|
|
\luamml_flag_save:nn {} {mtd}
|
2021-06-22 16:59:38 +02:00
|
|
|
\d@llarend
|
|
|
|
\__luamml_array_finalize_col:w 2~
|
|
|
|
}
|
2021-04-30 19:03:36 +02:00
|
|
|
\do@row@strut
|
|
|
|
\or
|
|
|
|
\setbox \ar@mcellbox \vbox \@startpbox { \@nextchar }
|
|
|
|
\insert@column
|
|
|
|
\@endpbox
|
|
|
|
\ar@align@mcell
|
|
|
|
\do@row@strut
|
|
|
|
\or
|
|
|
|
\vtop \@startpbox { \@nextchar }
|
|
|
|
\insert@column
|
|
|
|
\@endpbox
|
|
|
|
\do@row@strut
|
|
|
|
\or
|
|
|
|
\vbox \@startpbox { \@nextchar }
|
|
|
|
\insert@column
|
|
|
|
\@endpbox
|
|
|
|
\do@row@strut
|
|
|
|
\fi
|
|
|
|
}
|
|
|
|
\prepnext@tok
|
2021-04-29 02:07:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
\cs_set:Npn \endarray {
|
|
|
|
\crcr
|
|
|
|
\__luamml_array_save_array:
|
|
|
|
\egroup
|
|
|
|
\egroup
|
2021-06-22 16:59:38 +02:00
|
|
|
\mode_if_math:T { \__luamml_array_finalize_array: }
|
2021-04-29 02:07:53 +02:00
|
|
|
\@arrayright
|
|
|
|
\gdef \@preamble {}
|
|
|
|
}
|