summaryrefslogtreecommitdiff
path: root/tests/typ/math/content.typ
blob: 5a51901a99f8cae54642fb94be8212a3c1754ff1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Test arbitrary content in math.

---
// Test images and font fallback.
#let monkey = move(dy: 0.2em, image("/files/monkey.svg", height: 1em))
$ sum_(i=#emoji.apple)^#emoji.apple.red i + monkey/2 $

---
// Test tables.
$ x := #table(columns: 2)[x][y]/mat(1, 2, 3)
     = #table[A][B][C] $
---
// Test non-equation math directly in content.
#math.attach($a$, t: [b])

---
// Test font switch.
#let here = text.with(font: "Noto Sans")
$#here[f] := #here[Hi there]$.