add classic template styling

This commit is contained in:
2025-09-23 18:40:51 +02:00
parent 5407732395
commit 7aabfcf1f9
5 changed files with 107 additions and 12 deletions

View File

@@ -1,20 +1,26 @@
#import "template_classic.typ": template_classic
#import "utils.typ": assert_in_dict
#let templates = (
classic: template_classic,
);
#let tultemplate(
template_id,
faculty_abbreviation,
language,
document_type: none,
title: none, author: none, supervisor: none, study_programme: none,
content,
) = {
import "template_classic.typ": template_classic
import "utils.typ": assert_in_dict
let templates = (
classic: template_classic,
);
assert_in_dict(template_id, templates, "template name");
templates.at(template_id)(
faculty_abbreviation, language, document_type,
title, author, supervisor, study_programme
title, author, supervisor, study_programme,
content
);
}
#let abbr(abbreviation, ..text) = {
import "abbreviations.typ": abbr
return abbr(abbreviation, if text.pos().len() == 0 { none } else { text.pos().at(0) });
}