35 lines
1.1 KiB
Typst
35 lines
1.1 KiB
Typst
#import "../lang.typ": get_lang_item
|
|
#import "common.typ": mainpage, default_styling, assignment, disclaimer, abstract, toc, abbrlist
|
|
#import "../utils.typ": is_none, assert_not_none, assert_dict_has, assert_in_arr
|
|
|
|
#let other(
|
|
// general settings
|
|
faculty_id, faculty_color, language, assignment_document, citation_file,
|
|
|
|
// document info
|
|
title, author, _, supervisor, study_programme, study_branch, abstract_content, keywords,
|
|
|
|
content
|
|
) = {
|
|
let force_langs = ("cs", "en");
|
|
assert_not_none(title, "title");
|
|
assert_dict_has(force_langs, title, "title");
|
|
|
|
assert_not_none(study_programme, "study programme");
|
|
assert_in_arr(language, study_programme, "study programme");
|
|
assert_not_none(study_branch, "study branch");
|
|
assert_in_arr(language, study_branch, "study branch");
|
|
|
|
mainpage(faculty_id, language, none, title, author, supervisor, study_programme, study_branch);
|
|
default_styling(true, faculty_color, {
|
|
toc(language);
|
|
abbrlist(language);
|
|
|
|
pagebreak(to: "even", weak: true);
|
|
content
|
|
|
|
// bibliography
|
|
bibliography(citation_file, style: "../tul_citace.csl");
|
|
});
|
|
}
|