summaryrefslogtreecommitdiff
path: root/macros/luatex/latex/luamml/luamml-patches-amstext.sty
blob: f7d24431e633a3312693ddf67c9827a2a966900f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
\ProvidesExplPackage {luamml-patches-amstext} {2025-02-17} {0.3.0}
  {patches of amstext commands}

% This is the same definition as in latex-lab-amsmath. It can go with the
% 2025-06-01 release.
\IfPackageAtLeastTF{latex-lab-testphase-math}{2025-01-24}
 {}
 {
   \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
      }}}
    }
  }