2 Commits

Author SHA1 Message Date
afc1ee372f add author to acknowledgement 2025-10-06 11:24:25 +02:00
d478d63812 implement acknowledgement 2025-10-06 11:12:00 +02:00
6 changed files with 29 additions and 7 deletions

View File

@@ -5,6 +5,7 @@
assignment, assignment,
disclaimer, disclaimer,
abstract, abstract,
acknowledgement,
toc, toc,
abbrlist, abbrlist,
imagelist, imagelist,
@@ -20,7 +21,7 @@
// document info // document info
title, author, author_gender, supervisor, consultant, study_programme, study_branch, title, author, author_gender, supervisor, consultant, study_programme, study_branch,
abstract_content, keywords, abstract_content, acknowledgement_content, keywords,
content content
) = { ) = {
@@ -38,6 +39,7 @@
if not is_none(keywords) { if not is_none(keywords) {
assert_dict_has(force_langs, keywords, "keywords"); assert_dict_has(force_langs, keywords, "keywords");
} }
assert_not_none(acknowledgement_content, "acknowledgement content");
if language == "cs" { if language == "cs" {
assert_not_none(author_gender, "author gender"); assert_not_none(author_gender, "author gender");
} }
@@ -54,6 +56,7 @@
disclaimer(language, faculty_id, "bp", author, author_gender); disclaimer(language, faculty_id, "bp", author, author_gender);
abstract("cs", title, abstract_content, keywords); abstract("cs", title, abstract_content, keywords);
abstract("en", title, abstract_content, keywords); abstract("en", title, abstract_content, keywords);
acknowledgement(language, author, acknowledgement_content);
toc(language); toc(language);
tablelist(language); tablelist(language);
imagelist(language); imagelist(language);

View File

@@ -13,7 +13,7 @@
// document info // document info
title, author, author_gender, supervisor, consultant, study_programme, study_branch, abstract, title, author, author_gender, supervisor, consultant, study_programme, study_branch, abstract,
keywords, acknowledgement, keywords,
// content // content
content, content,
@@ -27,7 +27,7 @@
map_none(title, (v) => assert_dict_has((language,), v, "title")); 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_programme, (v) => assert_dict_has((language,), v, "study programme"));
map_none(study_branch, (v) => assert_dict_has((language,), v, "study branch")); 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)( document_types.at(document_type)(
faculty_id, faculty_id,
@@ -43,6 +43,7 @@
study_programme, study_programme,
study_branch, study_branch,
abstract, abstract,
acknowledgement,
keywords, keywords,
content, content,
); );

View File

@@ -244,6 +244,18 @@
); );
} }
// ACKNOWLEDGEMENT PAGE
#let acknowledgement(language, author, content) = {
if is_none(content) {
return;
}
heading(get_lang_item(language, "acknowledgement"), numbering: none, outlined: false);
par(content.at(language));
v(2em);
align(right, author);
}
// ABSTRACT // ABSTRACT
#let abstract(language, title, content, keywords) = { #let abstract(language, title, content, keywords) = {

View File

@@ -18,7 +18,8 @@
faculty_id, faculty_color, language, assignment_document, citation_file, faculty_id, faculty_color, language, assignment_document, citation_file,
// document info // 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 content
) = { ) = {

View File

@@ -36,6 +36,7 @@
"date": "[day]. [month]. [year]", "date": "[day]. [month]. [year]",
"abstract": "Abstrakt", "abstract": "Abstrakt",
"acknowledgement": "Poděkování",
"keywords": "Klíčová slova", "keywords": "Klíčová slova",
"abbrs": "Seznam zkratek", "abbrs": "Seznam zkratek",
"image_list": "Seznam obrázků", "image_list": "Seznam obrázků",
@@ -74,6 +75,7 @@
"date": "[year]-[month]-[day]", "date": "[year]-[month]-[day]",
"abstract": "Abstract", "abstract": "Abstract",
"acknowledgement": "Acknowledgement",
"keywords": "Keywords", "keywords": "Keywords",
"abbrs": "List of abbreviations", "abbrs": "List of abbreviations",
"image_list": "List of images", "image_list": "List of images",

View File

@@ -45,8 +45,8 @@
style: "classic", faculty: "tul", lang: "cs", document: "other", style: "classic", faculty: "tul", lang: "cs", document: "other",
// document info // document info
title: none, keywords: none, abstract: none, author: none, author_gender: none, title: none, keywords: none, abstract: none, acknowledgement: none, author: none,
supervisor: none, consultant: none, programme: none, branch: none, author_gender: none, supervisor: none, consultant: none, programme: none, branch: none,
// links // links
assignment: none, citations: "citations.bib", assignment: none, citations: "citations.bib",
@@ -66,6 +66,9 @@
assert_type_signature( assert_type_signature(
abstract, "dictionary[string : string | content] | none", "abstract argument" 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, "string | none", "author argument");
assert_type_signature(author_gender, "string | none", "author gender argument"); assert_type_signature(author_gender, "string | none", "author gender argument");
assert_type_signature( assert_type_signature(
@@ -97,7 +100,7 @@
templates.at(style)( templates.at(style)(
lang, faculty, document, citations, assignment, lang, faculty, document, citations, assignment,
title, author, author_gender, supervisor, consultant, title, author, author_gender, supervisor, consultant,
programme, branch, abstract, keywords, content programme, branch, abstract, acknowledgement, keywords, content
); );
import "prototyping.typ": assert_release_ready import "prototyping.typ": assert_release_ready