mathml/luamml-patches-amstext.sty

30 lines
829 B
Plaintext
Raw Normal View History

2025-03-06 11:23:57 +01:00
\ProvidesExplPackage {luamml-patches-amstext} {2025-03-06} {0.5.0}
2025-01-28 15:36:05 +01:00
{patches of amstext commands}
2021-11-01 06:47:55 +01:00
2024-12-03 16:33:37 +01:00
% This is the same definition as in latex-lab-amsmath. It can go with the
% 2025-06-01 release.
2025-01-28 15:36:05 +01:00
\IfPackageAtLeastTF{latex-lab-testphase-math}{2025-01-24}
{}
2024-12-03 16:33:37 +01:00
{
2025-01-28 15:36:05 +01:00
\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
}}}
}
}