Added boilerplate acknowledgement and keywords

This commit is contained in:
2025-10-07 12:03:40 +02:00
parent 48af642e4f
commit 670dd9596e
2 changed files with 37 additions and 1 deletions

25
data.js
View File

@@ -18,6 +18,10 @@ let steps = {
layout: language_layout,
result: {
lang: "cs"
},
finalize: (result) => {
result.is_cs = result.lang === "cs";
result.is_en = result.lang === "en";
}
},
thesis_title: {
@@ -101,6 +105,14 @@ let steps = {
finalize: (result) => {
result.include_pdf = result.format === "external";
}
},
finishing_touches: {
title: "Závěrečné detaily",
layout: finishing_touches_layout,
result: {
has_keywords: true,
has_acknowledgement: true
}
}
}
@@ -204,7 +216,18 @@ const typst_header = `#import "template/template.typ": *
document: "{thesis_type.type}",
lang: "{language.lang}",
title: (cs: "{thesis_title.cs}", en: "{thesis_title.en}"),
abstract: (
<finishing_touches.has_keywords: keywords: (
cs: ("DOPLŇTE", "SEM", "KLÍČOVÁ", "SLOVA"),
en: ("INSERT", "KEYWORDS", "HERE")
)
><finishing_touches.has_acknowledgement: acknowledgement: (
<language.is_cs:cs: "
Rád bych poděkoval všem, kteří přispěli ke vzniku tohoto dílka.
"><language.is_en:en: "
I would like to acknowledge everyone who contributed to the creation of this fine piece of work.
">
)
> abstract: (
cs: "
Sem vyplňte abstrakt své práce v češtině.
",