mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
19 lines
302 B
XML
19 lines
302 B
XML
// Test math syntax.
|
||
|
||
---
|
||
// Test Unicode math.
|
||
$ ∑_(i=0)^ℕ a ∘ b = \u{2211}_(i=0)^NN a compose b $
|
||
|
||
---
|
||
// Test a few shorthands.
|
||
$ underline(f' : NN -> RR) \
|
||
n |-> cases(
|
||
[|1|] &"if" n >>> 10,
|
||
2 * 3 &"if" n != 5,
|
||
1 - 0 thick &...,
|
||
) $
|
||
|
||
---
|
||
// Error: 1:3 expected dollar sign
|
||
$a
|