add abstract and disclaimer page

This commit is contained in:
2025-10-01 09:40:18 +02:00
parent fd397003ba
commit a5be430777
4 changed files with 77 additions and 8 deletions

View File

@@ -91,7 +91,8 @@
classic_header(faculty_id, language);
align({
classic_info(
faculty_id, language, document_type, title, author, supervisor, study_programme
faculty_id, language, document_type, title.at(language),
author, supervisor, study_programme,
);
v(5em);
}, bottom);
@@ -117,6 +118,30 @@
);
}
#let abstract(language, title, content, keywords) = {
if type(content.at(language)) == type(none) {
return;
}
if type(title.at(language)) == type(none) {
panic("no title found for language `" + language + "` (required for abstract)");
}
heading(text(title.at(language), font: base_font), numbering: none, outlined: false);
v(2em);
heading(
level: 2,
get_lang_item(language, "abstract"),
numbering: none,
outlined: false,
);
text(content.at(language));
if type(keywords.at(language)) != type(none) {
linebreak();
linebreak();
text(get_lang_item(language, "keywords") + ": ", weight: "bold", font: base_font);
text(keywords.at(language).join(", "));
}
}
#let abbrlist(language) = {
import "abbreviations.typ": abbrlist
context {
@@ -143,7 +168,8 @@
faculty_id,
language,
document_type,
title, author, supervisor, study_programme,
title_cs, author, supervisor, study_programme, abstract_cs, keywords_cs,
title_en, abstract_en, keywords_en,
citation_file,
content,
) = {
@@ -153,6 +179,11 @@
true
};
let title = (
"cs": title_cs,
"en": title_en,
);
// main page
classic_mainpage(faculty_id, language, document_type, title, author, supervisor, study_programme);
@@ -200,6 +231,22 @@
// disclaimer
disclaimer(language, faculty_id, document_type, author);
// abstract
let abstract_content = (
"cs": abstract_cs,
"en": abstract_en,
);
let keywords = (
"cs": keywords_cs,
"en": keywords_en,
);
if language == "cs" {
abstract("cs", title, abstract_content, keywords);
abstract("en", title, abstract_content, keywords);
} else {
abstract(language, title, abstract_content, keywords);
}
let language = lang_id(language);
// toc
@@ -213,7 +260,9 @@
abbrlist(language);
// content
pagebreak(to: "even", weak: true);
if flip_bonding {
pagebreak(to: "even", weak: true);
}
content
// bibliography