First commit

This commit is contained in:
2026-02-14 20:53:06 +01:00
commit acdbae8d90
6 changed files with 276 additions and 0 deletions

24
Makefile Normal file
View File

@@ -0,0 +1,24 @@
SOURCE = main.typ
OUTPUT = main.pdf
FONTS_DIR = fonts
VIEWER = zathura
TYPST = typst
.PHONY: all watch clean
# compile PDF
all: $(OUTPUT)
# compile with font path
$(OUTPUT): $(SOURCE) template.typ
$(TYPST) compile $(SOURCE) --font-path $(FONTS_DIR)
# compile with watch mode
watch:
#$(TYPST) watch $(SOURCE) --font-path $(FONTS_DIR)
($(VIEWER) $(OUTPUT) &) && $(TYPST) watch $(SOURCE) --font-path $(FONTS_DIR)
# clean generated files
clean:
rm -f $(OUTPUT)