Add all faculties, add watch_example target

This commit is contained in:
Matej-Zucha-TUL
2025-10-01 13:04:33 +02:00
parent a5be430777
commit cae85646e6
2 changed files with 5 additions and 1 deletions

View File

@@ -2,6 +2,10 @@
view_example: example.pdf view_example: example.pdf
xdg-open $< xdg-open $<
PHONY: watch_example
watch_example:
typst watch --font-path template/fonts example.typ & xdg-open example.pdf
.PHONY: example .PHONY: example
example: example.pdf example: example.pdf

View File

@@ -27,7 +27,7 @@
// document type // document type
if type(document_type) != type(none) { if type(document_type) != type(none) {
let document_types = ("bp", "dp", "ds"); let document_types = ("bp", "dp", "dis", "hab", "teze", "autoref", "proj", "sp");
assert_in_arr(document_type, document_types, "document type abbreviation"); assert_in_arr(document_type, document_types, "document type abbreviation");
text(get_lang_item(language, document_type), weight: "bold", font: base_font); text(get_lang_item(language, document_type), weight: "bold", font: base_font);
v(0em); v(0em);