mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
24 lines
507 B
Typst
24 lines
507 B
Typst
#set page(width: auto)
|
|
#show <table>: it => table(
|
|
columns: 2,
|
|
inset: 8pt,
|
|
..it.text
|
|
.split("\n")
|
|
.map(line => (raw(line, lang: "typ"), text("Latin Modern Roman", eval(line))))
|
|
.flatten()
|
|
)
|
|
|
|
```
|
|
Let $x in NN$ be ...
|
|
$ (1 + x/2)^2 $
|
|
$ x arrow.l y $
|
|
$ sum_(n=1)^mu 1 + (2pi(5 + n)) / k $
|
|
$ { x in RR | x "is natural" and x < 10 } $
|
|
$ sqrt(x^2) = frac(x, 1) $
|
|
$ "profit" = "income" - "expenses" $
|
|
$ x < #for i in range(5) [$ #i < $] y $
|
|
$ 1 + 2 = #{1 + 2} $
|
|
$ A subset.eq.not B $
|
|
```
|
|
<table>
|