Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

46 lines (31 sloc) 1.166 kb
\input{umtest-preamble}
\usepackage{amsmath}
\usepackage{unicode-math}
\setmathfont{xits-math.otf}
\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}$
$\dfrac{\mathstylename}{\mathstylename}$
$\tfrac{\mathstylename}{\mathstylename}$
$\binom{\mathstylename}{\mathstylename}$
$\genfrac{/}{)}{}{}{\mathstylename}{\mathstylename}$
\end{document}
Jump to Line
Something went wrong with that request. Please try again.