Hi,
I do not really understand the definition of
\mathstyle. From the documentation on page 133
I thought that this should work:

\directlua{tex.enableprimitives("",tex.extraprimitives())}

\def\Test{%
 \ifnum\mathstyle=\textstyle \hbox{Text}
 \else\ifnum\mathstyle=\scriptstyle \hbox{Script}
  \else\ifnum\mathstyle=\scriptscriptstyle \hbox{ScriptScript}
    \else \hbox{nothing} \fi \fi \fi}

$L_{\Test} \Test L_{\Test_{\Test}}$

\bye


But it detects only \textstyle not the other ones.
Is that the intended behaviour?

Herbert

Reply via email to