summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/unicode-math/testfiles/L602b.ltx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/unicode-math/testfiles/L602b.ltx')
-rw-r--r--Master/texmf-dist/source/latex/unicode-math/testfiles/L602b.ltx36
1 files changed, 36 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/unicode-math/testfiles/L602b.ltx b/Master/texmf-dist/source/latex/unicode-math/testfiles/L602b.ltx
new file mode 100644
index 00000000000..15be38ca38e
--- /dev/null
+++ b/Master/texmf-dist/source/latex/unicode-math/testfiles/L602b.ltx
@@ -0,0 +1,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}