implement sp

This commit is contained in:
2025-11-14 17:02:50 +01:00
parent da23dd94fc
commit 8c3fbce8a0
3 changed files with 28 additions and 0 deletions

View File

@@ -9,6 +9,7 @@
#import "bp.typ": bp
#import "dp.typ": dp
#import "prj.typ": prj
#import "sp.typ": sp
#import "other.typ": other_title_page, other_base
#import "thesis_base.typ": thesis_base, thesis_base_title_pages
@@ -16,6 +17,10 @@
"bp": (bp, thesis_base, thesis_base_title_pages),
"dp": (dp, thesis_base, thesis_base_title_pages),
"prj": (prj, thesis_base, thesis_base_title_pages),
"sp": (sp, thesis_base.with(
show_disclaimer: false,
require_abstract: false,
), thesis_base_title_pages),
"other": (other_title_page, other_base, (args) => {}),
)

19
template/classic/sp.typ Normal file
View File

@@ -0,0 +1,19 @@
#import "../arguments.typ": req_arg, get_arg, map_arg
#import "../utils.typ": assert_dict_has
#import "common.typ": mainpage, assignment
#let sp(args) = {
let language = req_arg(args, "document.language");
map_arg(args, "author.programme", (v) => {
assert_dict_has((language,), v, "study programme");
});
map_arg(args, "author.specialization", (v) => {
assert_dict_has((language,), v, "study specialization");
});
if language == "cs" {
let _ = req_arg(args, "author.pronouns");
}
mainpage(args);
assignment(args, show_fallback: false);
}

View File

@@ -18,6 +18,8 @@
"dp_asgn": "Zadání diplomové práce",
"prj": "Projekt",
"prj_asgn": "Zadání projektu",
"sp": "Semestrální práce",
"sp_asgn": "Zadání semestrální práce",
"city": "Liberec",
@@ -123,6 +125,8 @@
"dp_asgn": "Diploma thesis assignment",
"prj": "Project",
"prj_asgn": "Project assignment",
"sp": "Term paper",
"sp_asgn": "Term paper assignment",
"city": "Liberec",