summaryrefslogtreecommitdiff
path: root/tests/math.tex
blob: a2615f1055e248dc2a78a922e3b9afd053dedb36 (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
46
47
48
49
50
51
52
53
54
55
56
% 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

\Umathcode`a="7"4"1D44E
\Umathcode`b="7"4"1D44F
\Umathcode`x="7"4"1D465
\Umathcode`y="7"4"1D466
\Umathcode`A="7"4"1D434
\Umathcode`B="7"4"1D435
\Umathcode`C="7"4"1D436
\Umathcode`P="7"4"1D443
\Umathcode`3="7"4`3
\Umathcode`+="2"4`+
\Umathcode`=="3"4`=
\Umathcode`(="4"4`(
\Umathcode`)="5"4`)

\Udelcode`(="4`(
\Udelcode`)="4`)

$$\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}
$$

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

$$
{a \overwithdelims() b}
$$


\centerline{$ a \overwithdelims() b $}

$$
P(a)
$$

\bye