add study branch to info page
This commit is contained in:
@@ -1,17 +1,26 @@
|
||||
#import "../lang.typ": get_lang_item
|
||||
#import "common.typ": mainpage, default_styling, assignment, disclaimer, abstract, toc, abbrlist
|
||||
#import "../utils.typ": is_none
|
||||
#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, abstract_content, keywords,
|
||||
title, author, _, supervisor, study_programme, study_branch, abstract_content, keywords,
|
||||
|
||||
content
|
||||
) = {
|
||||
mainpage(faculty_id, language, none, title, author, supervisor, study_programme);
|
||||
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);
|
||||
|
Reference in New Issue
Block a user