small overall adjustments

This commit is contained in:
2026-10-14 12:04:10 +01:00
parent 09888a5bf1
commit 695e852efa
5 changed files with 82 additions and 30 deletions
+27 -8
View File
@@ -1,17 +1,36 @@
So for like live updating or recompiling the pdf document with a justfile that looks like this in one terminal window
# Typst Local Development Loop
I truly enjoy Typst, but having a really dependency free experience I use this method to get live reloading of the pdf file I am currently working on.
I use Justfile, but anything will do, just fire the commands in the cli.
```justfile
watch-typst doc lang="da":
## Workflow
So for like live updating or recompiling the pdf document with a justfile that looks like this in one terminal window
(Sorry, this Justfile a bit clumpsy, but I hope the point gets across).
```just
# Watch Typst document with language parameter
watch-cv-typst doc lang="da":
typst watch --input lang={{ lang }} {{ doc }}.typ ./output/{{ doc }}-{{ lang }}.pdf
watch-pdf doc lang="da":
# Watch generated PDF output
watch-cv-pdf doc lang="da":
watch-pdf ./output/{{ doc }}-{{ lang }}.pdf
build doc:
typst compile --input lang=en {{ doc }}.typ ./output/{{ doc }}-en.pdf
typst compile --input lang=da {{ doc }}.typ ./output/{{ doc }}-da.pdf
typst compile --input lang=fo {{ doc }}.typ ./output/{{ doc }}-fo.pdf
# Build CV in all three languages (English, Danish, Faroese)
build-cv:
typst compile --input lang=en ./cv.typ ./output/cv-en.pdf
typst compile --input lang=da ./cv.typ ./output/cv-da.pdf
typst compile --input lang=fo ./cv.typ ./output/cv-fo.pdf
# Build cover letter from YAML input
build-letter yaml output:
typst compile --input cover-letter={{ yaml }} letter.typ {{ output }}
# Live watch mode for cover letter compilation
watch-letter-typst yaml output:
typst watch --input cover-letter={{ yaml }} letter.typ {{ output }}
watch-letter-pdf doc:
watch-pdf {{ doc }}.pdf
```
While the machine having the watch-pdf script available in PATH