Compare commits
5 Commits
v0.8
...
3beac874c1
Author | SHA1 | Date | |
---|---|---|---|
3beac874c1
|
|||
0dc0ed4249
|
|||
5d763827e8
|
|||
7b3831f5fb
|
|||
89c3be0bf0
|
@@ -323,6 +323,7 @@ Zvýrazněné hodnoty jsou základní -- pokud vynecháte parametr, pak bude pou
|
||||
- `document` (typ dokumentu)
|
||||
- *`"other"`* - nespecifikovaný (neformální) typ dokumentu
|
||||
- `bp` - Bakalářská práce
|
||||
- `dp` - Diplomová práce
|
||||
#line()
|
||||
- `title` (nadpis dokumentu)
|
||||
- Ve formátu `(<zkratka_jazyka>: "<nadpis>")`, například `(cs: "Můj nadpis")`
|
||||
|
@@ -5,6 +5,7 @@
|
||||
|
||||
// thesis types
|
||||
#import "bp.typ": bp
|
||||
#import "dp.typ": dp
|
||||
#import "other.typ": other
|
||||
|
||||
#let template_classic(
|
||||
@@ -21,6 +22,7 @@
|
||||
// argument pre-checking
|
||||
let document_types = (
|
||||
"bp": bp,
|
||||
"dp": dp,
|
||||
"other": other,
|
||||
)
|
||||
assert_in_dict(document_type, document_types, "document type");
|
||||
|
68
template/classic/dp.typ
Normal file
68
template/classic/dp.typ
Normal file
@@ -0,0 +1,68 @@
|
||||
#import "../lang.typ": get_lang_item
|
||||
#import "common.typ": (
|
||||
mainpage,
|
||||
default_styling,
|
||||
assignment,
|
||||
disclaimer,
|
||||
abstract,
|
||||
acknowledgement,
|
||||
toc,
|
||||
abbrlist,
|
||||
imagelist,
|
||||
tablelist,
|
||||
bibliogr
|
||||
)
|
||||
#import "../attachments.typ": attachment_list
|
||||
#import "../utils.typ": is_none, assert_dict_has, assert_not_none, assert_type_signature, map_none
|
||||
|
||||
#let dp(
|
||||
// general settings
|
||||
faculty_id, faculty_color, language, assignment_document, citation_file,
|
||||
|
||||
// document info
|
||||
title, author, author_pronouns, supervisor, consultant, study_programme, study_branch,
|
||||
year_of_study, abstract_content, acknowledgement_content, keywords,
|
||||
|
||||
content
|
||||
) = {
|
||||
let force_langs = ("cs", "en");
|
||||
assert_not_none(title, "title");
|
||||
assert_dict_has(force_langs, title, "title");
|
||||
|
||||
assert_not_none(study_programme, "study programme");
|
||||
assert_dict_has((language,), study_programme, "study programme");
|
||||
map_none(study_branch, (v) => assert_dict_has((language,), v, "study branch"));
|
||||
|
||||
assert_not_none(abstract_content, "abstract");
|
||||
assert_dict_has(force_langs, abstract_content, "abstract");
|
||||
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_pronouns, "author gender");
|
||||
}
|
||||
|
||||
assert_type_signature(supervisor, "string | none", "supervisor");
|
||||
assert_type_signature(consultant, "string | none", "consultant");
|
||||
|
||||
mainpage(
|
||||
faculty_id, language, "dp", title, author, supervisor, consultant, study_programme,
|
||||
study_branch, year_of_study,
|
||||
);
|
||||
assignment(language, assignment_document);
|
||||
default_styling(false, faculty_color, {
|
||||
disclaimer(language, faculty_id, "dp", author, author_pronouns);
|
||||
abstract("cs", title, abstract_content, keywords);
|
||||
abstract("en", title, abstract_content, keywords);
|
||||
acknowledgement(language, author, acknowledgement_content);
|
||||
toc(language);
|
||||
tablelist(language);
|
||||
imagelist(language);
|
||||
abbrlist(language);
|
||||
pagebreak(weak: true);
|
||||
content;
|
||||
bibliogr(language, citation_file);
|
||||
attachment_list(language);
|
||||
});
|
||||
}
|
@@ -9,6 +9,7 @@
|
||||
"year_of_study": "Ročník",
|
||||
|
||||
"bp": "Bakalářská práce",
|
||||
"dp": "Diplomová práce",
|
||||
|
||||
"city": "Liberec",
|
||||
|
||||
@@ -31,6 +32,21 @@
|
||||
"svůj": "svoji",
|
||||
"jejímu": "jejímu",
|
||||
"zveřejněn": "zveřejněna"
|
||||
},
|
||||
|
||||
"dp": {
|
||||
"práce:ta": "diplomová práce",
|
||||
"práce:tu": "diplomovou práci",
|
||||
"práce:té": "diplomové práce",
|
||||
"moji": "moji",
|
||||
"naše": "naše",
|
||||
"naši": "naši",
|
||||
"naší": "naší",
|
||||
"mé": "mé",
|
||||
"můj": "moje",
|
||||
"svůj": "svoji",
|
||||
"jejímu": "jejímu",
|
||||
"zveřejněn": "zveřejněna"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -60,6 +76,7 @@
|
||||
"year_of_study": "Year of study",
|
||||
|
||||
"bp": "Bachelor thesis",
|
||||
"dp": "Diploma thesis",
|
||||
|
||||
"city": "Liberec",
|
||||
|
||||
@@ -71,6 +88,10 @@
|
||||
"disclaimer_replace": {
|
||||
"bp": {
|
||||
"thesis": "bachelor thesis"
|
||||
},
|
||||
|
||||
"dp": {
|
||||
"thesis": "diploma thesis"
|
||||
}
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user