Typst is an open source typesetting language. I am looking into it because it is said to be much easier than Latex. I have used Latex before, but because I don't use it often, I end up spending more time reading package documentations than writing.
As of writing this, I am on Gentoo. So, installing Typst was easy since it is packaged in the GURU repository. This is already very nice compared to installing a huge Latex meta package. From what I learned so far all you need is a single command to get a PDF.
typst compile <file> <output>
Functions#
Looks like everything is a function in Typst and you pass in the required
arguments. Some functions also accept a special argument called content
like #text and #heading. Functions which are frequenctly used
often have synax sugars. I found a nice list of templates in this github
repository [1] which can be good
starting place to learn more about the language.
[1]
https://github.com/qjcg/awesome-typst
Useful#
In the remaining section of this document I will put some code snippets which I find interesting and useful.