[luatex] \mathstyle
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Sun Dec 2 19:28:19 CET 2012
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
More information about the luatex
mailing list