summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/unicode-math/testfiles/L603b.ltx
blob: 9b53e908fcf50ebbb0994484d7e6e7efaef77915 (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
37
38
39
40
41
42
43
44
45
\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}