blob: 15be38ca38ee587decb191c9e056fee81050ac76 (
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
30
31
32
33
34
35
36
|
\input{umtest-preamble}
\usepackage{unicode-math}
\setmathfont{Cambria Math}
\ExplSyntaxOn
\NewDocumentCommand \mathstylename { } {
\mathtt {
\prg_case_int:nnn { \luatexmathstyle } {
{ \displaystyle } { \token_to_str:N \displaystyle }
{ \luatexcrampeddisplaystyle } { \token_to_str:N \crampeddisplaystyle }
{ \textstyle } { \token_to_str:N \textstyle }
{ \luatexcrampedtextstyle } { \token_to_str:N \crampedtextstyle }
{ \scriptstyle } { \token_to_str:N \scriptstyle }
{ \luatexcrampedscriptstyle } { \token_to_str:N \crampedscriptstyle }
{ \scriptscriptstyle } { \token_to_str:N \scriptscriptstyle }
{ \luatexcrampedscriptscriptstyle } { \token_to_str:N \crampedscriptscriptstyle }
} {
outside math
}
}
}
\ExplSyntaxOff
\begin{document}
$\mathstylename \over \mathstylename$
$\luatexUstack{\mathstylename \over \mathstylename}$
$\frac{\mathstylename}{\mathstylename}$
\end{document}
|