/typst-algo

Writing algorithms in Typst

MIT LicenseMIT

The typst-algo package.

This package helps you typeset algorithms in Typst.

To learn more about this package, take a look at the manual.

Examples of algorithms (extracted from the manual)

This is Bogosort, a very efficent sorting algorithm. First example

This is a Monte-Carlo algorithm to approximate $\pi$. Second example

This is the Quine–McCluskey algorithm for solving SAT. Third example

Contributing

This project is open-source (MIT-licensed). Feel free to contribute if you think a feature is missing, the code could be improved, or anything else.

Also, feel free to correct any typo you find.