summaryrefslogtreecommitdiff
path: root/tests/math.tex
blob: 7f62896aa13e4e8ca760552fdb14c8f4332bbec8 (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
% start out with plain.tex,
% having TFM-based CM fonts preloaded in \fam 0...3

% load OT math font in \fam 4
\input luaotfload.sty
\font\4={name:XITS Math:mode=base;script=math} at 10pt
\font\5={name:XITS Math:mode=base;script=math;ssty=1} at 7pt
\font\6={name:XITS Math:mode=node;script=math;ssty=2} at 5pt
\textfont4=\4 \scriptfont4=\5 \scriptscriptfont4=\6

%\tracingall
$$\Uradical "4 "221A {x}$$
$$\Uroot    "4 "221A {3}{x^3+y^3}$$

$$
  \Udelimiterover  "4 "23DE {a+b}
+ \Udelimiterunder "4 "23DF {a+b} = C
$$

$$
  \Umathaccent    "0 "4 "23DE {a+b}
+ \Umathbotaccent "0 "4 "23DF {a+b} = C
$$

$$
A \mathrel{\Uoverdelimiter  "4 "2192 {a+b}}
B \mathrel{\Uunderdelimiter "4 "2192 {a+b}}
$$

\bye