summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/eptexdir/tests/lastnodesubtype_math.tex
blob: fd1d0c2d4cdfd567f04d2decc1e2a5891cf76b46 (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
\def\typeout{\immediate\write17}
\newcount\CNT\newcount\CNTs
\def\TEST#1#2#3{\par$#1{xyz}#2\CNT=\lastnodetype\CNTs=\lastnodesubtype\typeout{\string #1: (\the\CNT,\the\CNTs)}#3$}

\TEST\displaystyle\displaystyle{}
\TEST\textstyle\textstyle{}
\TEST\mathchoice{{a}{a}{a}}{}
\TEST\mathord{}{}
\TEST\mathop\displaylimits{}
\TEST\mathop\limits{}
\TEST\mathop\nolimits{}
\TEST\mathbin{}{}
\TEST\mathrel{}{}
\TEST\mathopen{}{}
\TEST\mathclose{}{}
\TEST\mathpunct{}{}
\TEST\mathinner{}{}
\TEST\sqrt{}{}% radical
\TEST\underline{}{}
\TEST\overline{}{}
\TEST\vcenter{}{}
\TEST\dot{}{}% accent

\TEST{left}{\left[}{\right]}
\TEST{middle}{\left(\middle|}{\right)}
\TEST{\left[\right]}{}{}
% TODO: right, fraction

\bye