mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-31 00:41:42 +00:00
23 lines
561 B
Plaintext
23 lines
561 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# typst
|
|
|
|
> Compile a Typst file to PDF.
|
|
> Note: Specifying the output location is optional.
|
|
> More information: <https://github.com/typst/typst>.
|
|
|
|
- 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}}`
|