diff options
author | Norbert Preining <norbert@preining.info> | 2024-08-16 03:03:34 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2024-08-16 03:03:34 +0000 |
commit | 2719259c55d0d92b46352ca20ed4ab4da2089ff8 (patch) | |
tree | f4bc48e6c901d73f99ba2fa3c20276eea041f40f /macros/luatex/latex/luamml/luamml-patches-amstext.sty | |
parent | e910111d4dd413823cf5028cd1482a3b761606d5 (diff) |
CTAN sync 202408160303
Diffstat (limited to 'macros/luatex/latex/luamml/luamml-patches-amstext.sty')
-rw-r--r-- | macros/luatex/latex/luamml/luamml-patches-amstext.sty | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/macros/luatex/latex/luamml/luamml-patches-amstext.sty b/macros/luatex/latex/luamml/luamml-patches-amstext.sty new file mode 100644 index 0000000000..2217600716 --- /dev/null +++ b/macros/luatex/latex/luamml/luamml-patches-amstext.sty @@ -0,0 +1,37 @@ +\ProvidesExplPackage {luamml-patches-amstext} {2024-08-14} {0.1.0} + {Feel free to add a description here} + +\int_new:N \g__luamml_amsmath_text_struct_int +\cs_set:Npn \textdef@ #1 #2 #3 { + \int_if_odd:nTF { \int_div_truncate:nn { \l__luamml_flag_int } { 8 } } { + \int_gincr:N \g__luamml_amsmath_text_struct_int + \tag_struct_begin:n { + tag = mtext/mathml, + stash, + label = __luamml_amsmath_text_ \int_use:N \g__luamml_amsmath_text_struct_int + } + \tag_mc_begin:n { + tag = mtext + } + \AnnotateFormula { + nucleus = true, + struct = "__luamml_amsmath_text_ \int_use:N \g__luamml_amsmath_text_struct_int" + } + } { + \use:n + } + { + \hbox { + { + \everymath {#1} + \let \f@size #2 + \selectfont + #3 + } + } + } + \int_if_odd:nT { \int_div_truncate:nn { \l__luamml_flag_int } { 8 } } { + \tag_mc_end: + \tag_struct_end: + } +} |