See the book there: https://sitandr.github.io/typst-examples-book/book/
Currently powered by https://github.com/sitandr/mdbook-typst-highlight.
If you have a snippet you want to have in a book, feel free to create an issue.
Any PR-s are very welcome!
Currently needed (any work encouraged):
- Editing (expanding examples, fixing bad language issues)
- Package overviews (see current empty themes)
- Selecting any really useful code examples from Discord and Github
If you think you can do some large work, please DM me in Discord (@sitandr) or mail (andr.sitnikov34@gmail.com) to avoid duplication.
- Many snippets are taken from Discord, Github or other places. Without using them that book would much, much more harder to write. However, getting a consent for every snippet will be a total disaster. So, as a general rule, if the snippet is a non-trivial one (one that combines typst function in a smart way), there should be a credit to original author (of course, the credit will be removed if author objects).
- In "Typst by Example" section the concepts that are not told yet should be avoided if possible. Although it is okay to use them if they are really intuitive and without them the demonstration would be too dull.
- "Typst Snippets" and "Typstonomicon" should not include staff that is already present in official packages. Instead, there should be a link to a package. However it is allowed to use packages as a tool in snippets, if the package using is "secondary" there or the idea of using that package for that task is not obvious.
- Giant queries and hack things should go to "Typstonomicon", not "Typst snippets", even if they are super-useful. "Typst snippets" should contain code as clean as possible.
git clean -d -X -i
Make sure to avoid deleting something useful.