diff --git a/template/classic/bp.typ b/template/classic/bp.typ index 9a4a4c6..6941da9 100644 --- a/template/classic/bp.typ +++ b/template/classic/bp.typ @@ -5,6 +5,7 @@ assignment, disclaimer, abstract, + acknowledgement, toc, abbrlist, imagelist, @@ -20,7 +21,7 @@ // document info title, author, author_gender, supervisor, consultant, study_programme, study_branch, - abstract_content, keywords, + abstract_content, acknowledgement_content, keywords, content ) = { @@ -38,6 +39,7 @@ if not is_none(keywords) { assert_dict_has(force_langs, keywords, "keywords"); } + assert_not_none(acknowledgement_content, "acknowledgement content"); if language == "cs" { assert_not_none(author_gender, "author gender"); } @@ -54,6 +56,7 @@ disclaimer(language, faculty_id, "bp", author, author_gender); abstract("cs", title, abstract_content, keywords); abstract("en", title, abstract_content, keywords); + acknowledgement(language, acknowledgement_content); toc(language); tablelist(language); imagelist(language); diff --git a/template/classic/classic.typ b/template/classic/classic.typ index a04aa45..eb7cb45 100644 --- a/template/classic/classic.typ +++ b/template/classic/classic.typ @@ -13,7 +13,7 @@ // document info title, author, author_gender, supervisor, consultant, study_programme, study_branch, abstract, - keywords, + acknowledgement, keywords, // content content, @@ -27,7 +27,7 @@ map_none(title, (v) => assert_dict_has((language,), v, "title")); map_none(study_programme, (v) => assert_dict_has((language,), v, "study programme")); map_none(study_branch, (v) => assert_dict_has((language,), v, "study branch")); - + map_none(acknowledgement, (v) => assert_dict_has((language,), v, "acknowledgement content")); document_types.at(document_type)( faculty_id, @@ -43,6 +43,7 @@ study_programme, study_branch, abstract, + acknowledgement, keywords, content, ); diff --git a/template/classic/common.typ b/template/classic/common.typ index 5d072df..648fb62 100644 --- a/template/classic/common.typ +++ b/template/classic/common.typ @@ -244,6 +244,16 @@ ); } +// ACKNOWLEDGEMENT PAGE + +#let acknowledgement(language, content) = { + if is_none(content) { + return; + } + heading(get_lang_item(language, "acknowledgement"), numbering: none, outlined: false); + par(content.at(language)); +} + // ABSTRACT #let abstract(language, title, content, keywords) = { diff --git a/template/classic/other.typ b/template/classic/other.typ index 5842ea8..a7c1572 100644 --- a/template/classic/other.typ +++ b/template/classic/other.typ @@ -18,7 +18,8 @@ faculty_id, faculty_color, language, assignment_document, citation_file, // document info - title, author, _, supervisor, consultant, study_programme, study_branch, abstract_content, keywords, + title, author, _, supervisor, consultant, study_programme, study_branch, abstract_content, + _, keywords, content ) = { diff --git a/template/lang.json b/template/lang.json index 16f2d12..4fd9733 100644 --- a/template/lang.json +++ b/template/lang.json @@ -36,6 +36,7 @@ "date": "[day]. [month]. [year]", "abstract": "Abstrakt", + "acknowledgement": "Poděkování", "keywords": "Klíčová slova", "abbrs": "Seznam zkratek", "image_list": "Seznam obrázků", @@ -74,6 +75,7 @@ "date": "[year]-[month]-[day]", "abstract": "Abstract", + "acknowledgement": "Acknowledgement", "keywords": "Keywords", "abbrs": "List of abbreviations", "image_list": "List of images", diff --git a/template/template.typ b/template/template.typ index 87f5852..15e12d4 100644 --- a/template/template.typ +++ b/template/template.typ @@ -45,8 +45,8 @@ style: "classic", faculty: "tul", lang: "cs", document: "other", // document info - title: none, keywords: none, abstract: none, author: none, author_gender: none, - supervisor: none, consultant: none, programme: none, branch: none, + title: none, keywords: none, abstract: none, acknowledgement: none, author: none, + author_gender: none, supervisor: none, consultant: none, programme: none, branch: none, // links assignment: none, citations: "citations.bib", @@ -66,6 +66,9 @@ assert_type_signature( abstract, "dictionary[string : string | content] | none", "abstract argument" ); + assert_type_signature( + acknowledgement, "dictionary[string : string] | none", "acknowledgement content" + ); assert_type_signature(author, "string | none", "author argument"); assert_type_signature(author_gender, "string | none", "author gender argument"); assert_type_signature( @@ -97,7 +100,7 @@ templates.at(style)( lang, faculty, document, citations, assignment, title, author, author_gender, supervisor, consultant, - programme, branch, abstract, keywords, content + programme, branch, abstract, acknowledgement, keywords, content ); import "prototyping.typ": assert_release_ready