1
Fork 0

Add typst

This commit is contained in:
Matei Adriel 2023-10-29 02:32:41 +02:00
parent 26be488d70
commit 4a7a51cd17
3 changed files with 52 additions and 0 deletions

View file

@ -10,3 +10,4 @@ The experiments are currently organized based on the language they use:
- [Typescript](./typescript/) - [Typescript](./typescript/)
- [Lean](./lean/) - [Lean](./lean/)
- [Idris](./idris/) - [Idris](./idris/)
- [Typst](./typst/)

BIN
typst/learning/main.pdf Normal file

Binary file not shown.

51
typst/learning/main.typ Normal file
View file

@ -0,0 +1,51 @@
#set heading(numbering: "1.", supplement: "Chapter")
#let numbered(body) = body
#show numbered: set math.equation(numbering: "(1)")
#set text( size: 14pt)
#set page(
paper: "a5",
margin: (x: 1.8cm, y: 1.5cm),
)
#set par(
justify: true,
leading: 0.52em,
)
= Hi
How are you? I am typing this in typst!
== Subsection!
- List item
- Other kind of lists:
+ This is the other kind of lists!
+ Again :O
This vim plugin works surprisingly well!
This is a math formula:
#numbered[ a + b = rho]
#numbered[
$ lambda &= alpha + beta \
lambda ' &= beta rho \
$
] <test>
$ a + b = rho $
#math.equation[ a + b = rho ]
Check this out --- @test.
I can also write math inline like here $lim_(x -> 100) x^2 = 10^4$.
I can do --- and --, pretty neat!
#par[#lorem(10)]
=== Subsubsection <labelled>
See @labelled for more details!