From 70cb89fbf850ec0f2fe9115ee4817c228ab0262f Mon Sep 17 00:00:00 2001 From: Basti Ortiz <39114273+BastiDood@users.noreply.github.com> Date: Sat, 19 Oct 2024 17:36:25 +0800 Subject: [PATCH] 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 --- pages/common/typst.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pages/common/typst.md b/pages/common/typst.md index 1aa4a6fa4b..73395ebd06 100644 --- a/pages/common/typst.md +++ b/pages/common/typst.md @@ -4,9 +4,9 @@ > Note: Specifying the output location is optional. > More information: . -- 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`