diff --git a/README.md b/README.md index 9249960..1812d8f 100644 --- a/README.md +++ b/README.md @@ -10,3 +10,4 @@ The experiments are currently organized based on the language they use: - [Typescript](./typescript/) - [Lean](./lean/) - [Idris](./idris/) +- [Typst](./typst/) diff --git a/typst/learning/main.pdf b/typst/learning/main.pdf new file mode 100644 index 0000000..4d880a6 Binary files /dev/null and b/typst/learning/main.pdf differ diff --git a/typst/learning/main.typ b/typst/learning/main.typ new file mode 100644 index 0000000..012fa54 --- /dev/null +++ b/typst/learning/main.typ @@ -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 \ + $ +] +$ 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 + +See @labelled for more details!