My personal typst template repo that includes CI, mermaid/plantuml figures, and other useful bits.
- Install typst
- Install mermaid-cli (requires node.js)
npm install -g @mermaid-js/mermaid-cli@10.6.1
Note: Running in WSL may require some additional setup for mermaid to work. See: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#running-puppeteer-on-wsl-windows-subsystem-for-linux
if you have make
installed, you can run these:
# build the document
make
# rerender all figures
make figures
Otherwise, you can run the commands in the makefile
manually.
# produces main.pdf
typst compile main.typ
# rerenders all figures
./scripts/render-figures.sh