1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 20:22:07 +02:00
tldr/pages/common/typst.md
Basti Ortiz 70cb89fbf8
typst: add examples for project initialization via template (#14273)
---------

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
2024-10-19 11:36:25 +02:00

21 lines
624 B
Markdown

# typst
> Compile a Typst file to PDF.
> Note: Specifying the output location is optional.
> More information: <https://github.com/typst/typst>.
- Initialize a new Typst project in a given directory using a template (e.g., `@preview/charged-ieee`):
`typst init "{{template}}" {{path/to/directory}}`
- 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}}`
- List all discoverable fonts in the system and the given directory:
`typst --font-path {{path/to/fonts_directory}} fonts`