2021-04-24 16:53:50 +02:00
|
|
|
\ProvidesExplPackage {luamml} {2021-04-23} {0.0.1-alpha}
|
|
|
|
{Feel free to add a description here}
|
|
|
|
|
|
|
|
\int_new:N \l__luamml_flag_int
|
2021-05-18 19:27:54 +02:00
|
|
|
\tl_new:N \l__luamml_filename_tl
|
2021-04-27 00:07:17 +02:00
|
|
|
\int_new:N \tracingmathml
|
2021-04-24 16:53:50 +02:00
|
|
|
\lua_now:n { require'luamml-tex' }
|
|
|
|
|
2021-05-18 19:27:54 +02:00
|
|
|
\cs_new:Npn \luamml_flag_save: {
|
2021-04-25 18:09:13 +02:00
|
|
|
\int_set:Nn \l__luamml_flag_int { 2 }
|
|
|
|
}
|
2021-05-18 19:27:54 +02:00
|
|
|
\cs_new:Npn \luamml_flag_ignore: {
|
2021-04-24 16:53:50 +02:00
|
|
|
\int_set:Nn \l__luamml_flag_int { 3 }
|
|
|
|
}
|
2021-05-18 19:27:54 +02:00
|
|
|
\cs_new:Npn \luamml_flag_alignment_left: {
|
2021-04-24 16:53:50 +02:00
|
|
|
\int_set:Nn \l__luamml_flag_int { 7 }
|
|
|
|
}
|
2021-05-18 19:27:54 +02:00
|
|
|
\cs_new:Npn \luamml_flag_alignment_right: {
|
2021-04-24 16:53:50 +02:00
|
|
|
\int_set:Nn \l__luamml_flag_int { 6 }
|
|
|
|
}
|
2021-05-18 19:27:54 +02:00
|
|
|
\cs_new:Npn \luamml_flag_structelem: {
|
2021-05-12 07:43:57 +02:00
|
|
|
\int_set:Nn \l__luamml_flag_int { 8 }
|
|
|
|
}
|
2021-05-18 19:27:54 +02:00
|
|
|
\cs_new:Npn \luamml_set_filename:n {
|
|
|
|
\tl_set:Nn \l__luamml_filename_tl
|
|
|
|
}
|
2021-04-24 16:53:50 +02:00
|
|
|
|
2021-04-29 02:07:53 +02:00
|
|
|
\cs_new:Npn \__luamml_patch_package:nn #1 #2 {
|
|
|
|
\@ifpackageloaded {#1} {#2} {
|
|
|
|
\hook_gput_code:nnn {package/after/#1} {luamml} {#2}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
\cs_new:Npn \__luamml_patch_package:n #1 {
|
|
|
|
\__luamml_patch_package:nn {#1} {
|
|
|
|
\RequirePackage { luamml-patches-#1 }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
\__luamml_patch_package:n {amsmath}
|
|
|
|
\__luamml_patch_package:n {array}
|