guard amstext patch
This commit is contained in:
parent
585c5c75e3
commit
d3eb2bffdf
@ -1,25 +1,29 @@
|
|||||||
\ProvidesExplPackage {luamml-patches-amstext} {2024-10-30} {0.2.0}
|
\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
|
% This is the same definition as in latex-lab-amsmath. It can go with the
|
||||||
% 2025-06-01 release.
|
% 2025-06-01 release.
|
||||||
|
\IfPackageAtLeastTF{latex-lab-testphase-math}{2025-01-24}
|
||||||
\sys_if_engine_luatex:T
|
{}
|
||||||
{
|
{
|
||||||
\def\text@#1{
|
\PackageInfo{luamml}{patching~\string\text@}
|
||||||
\tag_socket_use:nnn {math/luamml/hbox}{}
|
\sys_if_engine_luatex:T
|
||||||
{{%
|
{
|
||||||
\ifcase\mathstyle
|
\def\text@#1{
|
||||||
\hbox{{#1}}\or
|
\tag_socket_use:nnn {math/luamml/hbox}{}
|
||||||
\hbox{{#1}}\or
|
{{%
|
||||||
\hbox{{#1}}\or
|
\ifcase\mathstyle
|
||||||
\hbox{{#1}}\or
|
\hbox{{#1}}\or
|
||||||
\hbox{{\let\f@size\sf@size\selectfont#1}}\or
|
\hbox{{#1}}\or
|
||||||
\hbox{{\let\f@size\sf@size\selectfont#1}}\or
|
\hbox{{#1}}\or
|
||||||
\hbox{{\let\f@size\ssf@size\selectfont#1}}\or
|
\hbox{{#1}}\or
|
||||||
\hbox{{\let\f@size\ssf@size\selectfont#1}}\or
|
\hbox{{\let\f@size\sf@size\selectfont#1}}\or
|
||||||
\ERROR
|
\hbox{{\let\f@size\sf@size\selectfont#1}}\or
|
||||||
\fi
|
\hbox{{\let\f@size\ssf@size\selectfont#1}}\or
|
||||||
\check@mathfonts
|
\hbox{{\let\f@size\ssf@size\selectfont#1}}\or
|
||||||
}}}
|
\ERROR
|
||||||
}
|
\fi
|
||||||
|
\check@mathfonts
|
||||||
|
}}}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user