summaryrefslogtreecommitdiff
path: root/tests/typ/math/accent.typ
blob: 315e14b3cb0a7517051fceb845028d0b4bb9f66c (plain) (blame)
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
// Test math accents.

---
// Test function call.
$grave(a), acute(b), hat(f), tilde(§), macron(ä), diaer(a), ä \
 breve(\&), dot(!), circle(a), caron(@), arrow(Z), arrow.l(Z)$

---
$ x &= p \ dot(x) &= v \ dot.double(x) &= a \ dot.triple(x) &= j \ dot.quad(x) &= s $

---
// Test `accent` function.
$accent(ö, .), accent(v, <-), accent(ZZ, \u{0303})$

---
// Test accent bounds.
$sqrt(tilde(T)) + hat(f)/hat(g)$

---
// Test wide base.
$arrow("ABC" + d), tilde(sum)$

---
// Test effect of accent on superscript.
$A^x != hat(A)^x != hat(hat(A))^x$

---
// Test high base.
$ tilde(integral), tilde(integral)_a^b, tilde(integral_a^b) $

---
// Test accent size.
$tilde(sum), tilde(sum, size: #50%), accent(H, hat, size: #200%)$