implement acknowledgement
This commit is contained in:
@@ -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);
|
||||
|
@@ -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,
|
||||
);
|
||||
|
@@ -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) = {
|
||||
|
@@ -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
|
||||
) = {
|
||||
|
@@ -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",
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user