mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
27 lines
361 B
Typst
27 lines
361 B
Typst
// Test math formulas.
|
|
|
|
---
|
|
The sum of $a$ and $b$ is $a + b$.
|
|
|
|
---
|
|
We will show that:
|
|
$ a^2 + b^2 = c^2 $
|
|
|
|
---
|
|
Prove by induction:
|
|
$ sum_(k=0)^n k = (n(n+1))/2 $
|
|
|
|
---
|
|
// Test that blackboard style looks nice.
|
|
$ f: NN arrow RR $
|
|
|
|
---
|
|
#set math(family: "IBM Plex Sans")
|
|
|
|
// Error: 1-4 font is not suitable for math
|
|
$a$
|
|
|
|
---
|
|
// Error: 1:3 expected dollar sign
|
|
$a
|