mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-25 00:55:38 +02:00
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>
This commit is contained in:
parent
32de8c4f85
commit
70cb89fbf8
1 changed files with 6 additions and 2 deletions
|
@ -4,9 +4,9 @@
|
|||
> 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:
|
||||
- Initialize a new Typst project in a given directory using a template (e.g., `@preview/charged-ieee`):
|
||||
|
||||
`typst --font-path {{path/to/fonts_directory}} fonts`
|
||||
`typst init "{{template}}" {{path/to/directory}}`
|
||||
|
||||
- Compile a Typst file:
|
||||
|
||||
|
@ -15,3 +15,7 @@
|
|||
- 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`
|
||||
|
|
Loading…
Add table
Reference in a new issue