diff --git a/pages/common/typst.md b/pages/common/typst.md new file mode 100644 index 0000000000..1aa4a6fa4b --- /dev/null +++ b/pages/common/typst.md @@ -0,0 +1,17 @@ +# typst + +> Compile a Typst file to PDF. +> Note: Specifying the output location is optional. +> More information: . + +- List all discoverable fonts in the system and the given directory: + +`typst --font-path {{path/to/fonts_directory}} fonts` + +- Compile a Typst file: + +`typst compile {{path/to/source.typ}} {{path/to/output.pdf}}` + +- Watch a Typst file and recompile on changes: + +`typst watch {{path/to/source.typ}} {{path/to/output.pdf}}`