diff --git a/luamml-patches-amstext.sty b/luamml-patches-amstext.sty index a5ea9b7..3f16a86 100644 --- a/luamml-patches-amstext.sty +++ b/luamml-patches-amstext.sty @@ -1,25 +1,29 @@ \ProvidesExplPackage {luamml-patches-amstext} {2024-10-30} {0.2.0} - {Feel free to add a description here} + {patches of amstext commands} % This is the same definition as in latex-lab-amsmath. It can go with the % 2025-06-01 release. - -\sys_if_engine_luatex:T +\IfPackageAtLeastTF{latex-lab-testphase-math}{2025-01-24} + {} { - \def\text@#1{ - \tag_socket_use:nnn {math/luamml/hbox}{} - {{% - \ifcase\mathstyle - \hbox{{#1}}\or - \hbox{{#1}}\or - \hbox{{#1}}\or - \hbox{{#1}}\or - \hbox{{\let\f@size\sf@size\selectfont#1}}\or - \hbox{{\let\f@size\sf@size\selectfont#1}}\or - \hbox{{\let\f@size\ssf@size\selectfont#1}}\or - \hbox{{\let\f@size\ssf@size\selectfont#1}}\or - \ERROR - \fi - \check@mathfonts - }}} - } + \PackageInfo{luamml}{patching~\string\text@} + \sys_if_engine_luatex:T + { + \def\text@#1{ + \tag_socket_use:nnn {math/luamml/hbox}{} + {{% + \ifcase\mathstyle + \hbox{{#1}}\or + \hbox{{#1}}\or + \hbox{{#1}}\or + \hbox{{#1}}\or + \hbox{{\let\f@size\sf@size\selectfont#1}}\or + \hbox{{\let\f@size\sf@size\selectfont#1}}\or + \hbox{{\let\f@size\ssf@size\selectfont#1}}\or + \hbox{{\let\f@size\ssf@size\selectfont#1}}\or + \ERROR + \fi + \check@mathfonts + }}} + } + }