Compare commits
6 Commits
v0.8
...
d8dc47e3b0
Author | SHA1 | Date | |
---|---|---|---|
d8dc47e3b0
|
|||
3beac874c1
|
|||
0dc0ed4249
|
|||
5d763827e8
|
|||
7b3831f5fb
|
|||
89c3be0bf0
|
@@ -105,6 +105,10 @@ Velmi jednoduché. Stačí na začátek řádku dát znak `=` kolikrát chcete.
|
|||||||
A pak obsah
|
A pak obsah
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#highlight[
|
||||||
|
V rámci šablony classic lze použít nadpisy *maximálně* třetí úrovně -- jinak šablona vyhodí chybu.
|
||||||
|
]
|
||||||
|
|
||||||
== Zvýrazňování textu
|
== Zvýrazňování textu
|
||||||
|
|
||||||
Syntaxe je velmi podobná například markdownu. Stačí:
|
Syntaxe je velmi podobná například markdownu. Stačí:
|
||||||
@@ -168,8 +172,7 @@ A některé funkce berou klasický obsah -- v těch je možné psát obsah jako
|
|||||||
== Obrázky
|
== Obrázky
|
||||||
|
|
||||||
Obrázky je možné vkládat samotné i třeba s popiskem.
|
Obrázky je možné vkládat samotné i třeba s popiskem.
|
||||||
|
Obrázek se vloží pomocí funkce `image`.
|
||||||
Obrázek se vloží pomocí funkce `image`:
|
|
||||||
|
|
||||||
Přidání popisku a zároveň zalistování obrázku v indexu (aby se na ně třeba dalo odkazovat) lze
|
Přidání popisku a zároveň zalistování obrázku v indexu (aby se na ně třeba dalo odkazovat) lze
|
||||||
udělat pomocí funkce `figure`.
|
udělat pomocí funkce `figure`.
|
||||||
@@ -323,6 +326,7 @@ Zvýrazněné hodnoty jsou základní -- pokud vynecháte parametr, pak bude pou
|
|||||||
- `document` (typ dokumentu)
|
- `document` (typ dokumentu)
|
||||||
- *`"other"`* - nespecifikovaný (neformální) typ dokumentu
|
- *`"other"`* - nespecifikovaný (neformální) typ dokumentu
|
||||||
- `bp` - Bakalářská práce
|
- `bp` - Bakalářská práce
|
||||||
|
- `dp` - Diplomová práce
|
||||||
#line()
|
#line()
|
||||||
- `title` (nadpis dokumentu)
|
- `title` (nadpis dokumentu)
|
||||||
- Ve formátu `(<zkratka_jazyka>: "<nadpis>")`, například `(cs: "Můj nadpis")`
|
- Ve formátu `(<zkratka_jazyka>: "<nadpis>")`, například `(cs: "Můj nadpis")`
|
||||||
|
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
// thesis types
|
// thesis types
|
||||||
#import "bp.typ": bp
|
#import "bp.typ": bp
|
||||||
|
#import "dp.typ": dp
|
||||||
#import "other.typ": other
|
#import "other.typ": other
|
||||||
|
|
||||||
#let template_classic(
|
#let template_classic(
|
||||||
@@ -21,6 +22,7 @@
|
|||||||
// argument pre-checking
|
// argument pre-checking
|
||||||
let document_types = (
|
let document_types = (
|
||||||
"bp": bp,
|
"bp": bp,
|
||||||
|
"dp": dp,
|
||||||
"other": other,
|
"other": other,
|
||||||
)
|
)
|
||||||
assert_in_dict(document_type, document_types, "document type");
|
assert_in_dict(document_type, document_types, "document type");
|
||||||
|
@@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
// text
|
// text
|
||||||
set text(font: serif_font);
|
set text(font: serif_font);
|
||||||
set par(justify: true);
|
set par(justify: true, first-line-indent: 0.63cm);
|
||||||
|
|
||||||
// figures
|
// figures
|
||||||
let figure_numbering(realcount, c) = {
|
let figure_numbering(realcount, c) = {
|
||||||
@@ -70,6 +70,13 @@
|
|||||||
v(2cm);
|
v(2cm);
|
||||||
it
|
it
|
||||||
};
|
};
|
||||||
|
show heading.where(): it => {
|
||||||
|
if it.level > 3 {
|
||||||
|
panic("maximum allowed heading level is 3");
|
||||||
|
} else {
|
||||||
|
it
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// other
|
// other
|
||||||
show raw: set text(font: mono_font, size: mono_font_compensation);
|
show raw: set text(font: mono_font, size: mono_font_compensation);
|
||||||
@@ -84,6 +91,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
set highlight(fill: faculty_color.lighten(90%));
|
set highlight(fill: faculty_color.lighten(90%));
|
||||||
|
set line(stroke: (paint: faculty_color, thickness: .7pt), length: 100%);
|
||||||
|
|
||||||
content
|
content
|
||||||
}
|
}
|
||||||
@@ -378,9 +386,13 @@
|
|||||||
|
|
||||||
#let bibliogr(language, citations_file) = {
|
#let bibliogr(language, citations_file) = {
|
||||||
if language == "cs" {
|
if language == "cs" {
|
||||||
bibliography(citations_file, style: "../tul_citace.csl");
|
bibliography(
|
||||||
|
citations_file, style: "../tul_citace.csl", title: get_lang_item(language, "bibliography"),
|
||||||
|
);
|
||||||
} else if language == "en" {
|
} else if language == "en" {
|
||||||
bibliography(citations_file, style: "iso-690-numeric");
|
bibliography(
|
||||||
|
citations_file, style: "iso-690-numeric", title: get_lang_item(language, "bibliography"),
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
panic("unknown language for bibliography '" + language + "'");
|
panic("unknown language for bibliography '" + language + "'");
|
||||||
}
|
}
|
||||||
|
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 @@
|
|||||||
abbrlist,
|
abbrlist,
|
||||||
imagelist,
|
imagelist,
|
||||||
tablelist,
|
tablelist,
|
||||||
|
bibliogr,
|
||||||
)
|
)
|
||||||
#import "../attachments.typ": attachment_list
|
#import "../attachments.typ": attachment_list
|
||||||
#import "../utils.typ": is_none, assert_not_none, assert_dict_has, assert_in_arr
|
#import "../utils.typ": is_none, assert_not_none, assert_dict_has, assert_in_arr
|
||||||
@@ -37,7 +38,7 @@
|
|||||||
abbrlist(language);
|
abbrlist(language);
|
||||||
pagebreak(to: "even", weak: true);
|
pagebreak(to: "even", weak: true);
|
||||||
content;
|
content;
|
||||||
bibliography(citation_file, style: "../tul_citace.csl");
|
bibliogr(language, citation_file);
|
||||||
attachment_list(language);
|
attachment_list(language);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@@ -9,10 +9,12 @@
|
|||||||
"year_of_study": "Ročník",
|
"year_of_study": "Ročník",
|
||||||
|
|
||||||
"bp": "Bakalářská práce",
|
"bp": "Bakalářská práce",
|
||||||
|
"dp": "Diplomová práce",
|
||||||
|
|
||||||
"city": "Liberec",
|
"city": "Liberec",
|
||||||
|
|
||||||
"toc": "Obsah",
|
"toc": "Obsah",
|
||||||
|
"bibliography": "Použitá literatura",
|
||||||
|
|
||||||
"disclaimer": "Prohlášení",
|
"disclaimer": "Prohlášení",
|
||||||
"disclaimer_content": "Prohlašuj{g:i|i|eme}, že {svůj} {práce:tu} js{g:em|em|me} vypracoval{g:|a|i} samostatně jako původní dílo s použitím uvedené literatury a na základě konzultací s vedoucím {{g:mé|mé|naší}} bakalářské práce a konzultantem.\n\nJs{g:em|em|me} si vědom{g:|a|i} toho, že na {{g:moji|moji|naši}} {práce:tu} se plně vztahuje zákon č. 121/2000 Sb., o právu autorském, zejména § 60 – školní dílo.\n\nBer{g:u|u|eme} na vědomí, že Technická univerzita v Liberci nezasahuje do {g:mých|mých|našich} autorských práv užitím {{g:mé|mé|naší}} {práce:té} pro vnitřní potřebu Technické univerzity v Liberci.\n\nUžij{g:i|i|eme}-li {práce:tu} nebo poskytn{g:u|u|eme}-li licenci k {jejímu} využití, js{g:em|em|me} si vědom{g:|a|i} povinnosti informovat o této skutečnosti Technickou univerzitu v Liberci; v tomto případě má Technická univerzita v Liberci právo od{g:e|e|} {g:mne|mne|nás} požadovat úhradu nákladů, které vynaložila na vytvoření díla, až do jejich skutečné výše.\n\nSoučasně čestně prohlašuj{g:i|i|eme}, že text elektronické podoby práce vložený do IS/STAG se shoduje s textem tištěné podoby práce.\n\nBer{g:u|u|eme} na vědomí, že {{g:můj|můj|naše}} {práce:ta} bude {zveřejněn} Technickou univerzitou v Liberci v souladu s § 47b zákona č. 111/1998 Sb., o vysokých školách a o změně a doplnění dalších zákonů (zákon o vysokých školách), ve znění pozdějších předpisů.\n\nJs{g:em|em|me} si vědom{g:|a|i} následků, které podle zákona o vysokých školách mohou vyplývat z porušení tohoto prohlášení.",
|
"disclaimer_content": "Prohlašuj{g:i|i|eme}, že {svůj} {práce:tu} js{g:em|em|me} vypracoval{g:|a|i} samostatně jako původní dílo s použitím uvedené literatury a na základě konzultací s vedoucím {{g:mé|mé|naší}} bakalářské práce a konzultantem.\n\nJs{g:em|em|me} si vědom{g:|a|i} toho, že na {{g:moji|moji|naši}} {práce:tu} se plně vztahuje zákon č. 121/2000 Sb., o právu autorském, zejména § 60 – školní dílo.\n\nBer{g:u|u|eme} na vědomí, že Technická univerzita v Liberci nezasahuje do {g:mých|mých|našich} autorských práv užitím {{g:mé|mé|naší}} {práce:té} pro vnitřní potřebu Technické univerzity v Liberci.\n\nUžij{g:i|i|eme}-li {práce:tu} nebo poskytn{g:u|u|eme}-li licenci k {jejímu} využití, js{g:em|em|me} si vědom{g:|a|i} povinnosti informovat o této skutečnosti Technickou univerzitu v Liberci; v tomto případě má Technická univerzita v Liberci právo od{g:e|e|} {g:mne|mne|nás} požadovat úhradu nákladů, které vynaložila na vytvoření díla, až do jejich skutečné výše.\n\nSoučasně čestně prohlašuj{g:i|i|eme}, že text elektronické podoby práce vložený do IS/STAG se shoduje s textem tištěné podoby práce.\n\nBer{g:u|u|eme} na vědomí, že {{g:můj|můj|naše}} {práce:ta} bude {zveřejněn} Technickou univerzitou v Liberci v souladu s § 47b zákona č. 111/1998 Sb., o vysokých školách a o změně a doplnění dalších zákonů (zákon o vysokých školách), ve znění pozdějších předpisů.\n\nJs{g:em|em|me} si vědom{g:|a|i} následků, které podle zákona o vysokých školách mohou vyplývat z porušení tohoto prohlášení.",
|
||||||
@@ -31,6 +33,21 @@
|
|||||||
"svůj": "svoji",
|
"svůj": "svoji",
|
||||||
"jejímu": "jejímu",
|
"jejímu": "jejímu",
|
||||||
"zveřejněn": "zveřejněna"
|
"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,10 +77,12 @@
|
|||||||
"year_of_study": "Year of study",
|
"year_of_study": "Year of study",
|
||||||
|
|
||||||
"bp": "Bachelor thesis",
|
"bp": "Bachelor thesis",
|
||||||
|
"dp": "Diploma thesis",
|
||||||
|
|
||||||
"city": "Liberec",
|
"city": "Liberec",
|
||||||
|
|
||||||
"toc": "Contents",
|
"toc": "Contents",
|
||||||
|
"bibliography": "Bibliography",
|
||||||
|
|
||||||
"disclaimer": "Declaration",
|
"disclaimer": "Declaration",
|
||||||
"disclaimer_content": "{g:I|We} hereby certify, {g:I|we}, {g:myself|ourselves}, have written {g:my|our} {thesis} as an original and primary work using the literature listed below and consulting it with {g:my|our} thesis supervisor and {g:my|our} thesis counsellor.\n\n{g:I|We} acknowledge that {g:my|our} {thesis} is fully governed by Act No. 121/2000 Coll., the Copyright Act, in particular Article 60 – School Work.\n\n{g:I|We} acknowledge that the Technical University of Liberec does not infringe {g:my|our} copyrights by using {g:my|our} {thesis} for internal purposes of the Technical University of Liberec.\n\n{g:I|We} {g:am|are} aware of {g:my|our} obligation to inform the Technical University of Liberec on having used or granted license to use the results of {g:my|our} {thesis}; in such a case the Technical University of Liberec may require reimbursement of the costs incurred for creating the result up to their actual amount.\n\nAt the same time, {g:I|we} honestly declare that the text of the printed version of {g:my|our} {thesis} is identical with the text of the electronic version uploaded into the IS STAG.\n\n{g:I|We} acknowledge that the Technical University of Liberec will make {g:my|our} {thesis} public in accordance with paragraph 47b of Act No. 111/1998 Coll., on Higher Education Institutions and on Amendment to Other Acts (the Higher Education Act), as amended.\n\n{g:I|We} {g:am|are} aware of the consequences which may under the Higher Education Act result from a breach of this declaration.",
|
"disclaimer_content": "{g:I|We} hereby certify, {g:I|we}, {g:myself|ourselves}, have written {g:my|our} {thesis} as an original and primary work using the literature listed below and consulting it with {g:my|our} thesis supervisor and {g:my|our} thesis counsellor.\n\n{g:I|We} acknowledge that {g:my|our} {thesis} is fully governed by Act No. 121/2000 Coll., the Copyright Act, in particular Article 60 – School Work.\n\n{g:I|We} acknowledge that the Technical University of Liberec does not infringe {g:my|our} copyrights by using {g:my|our} {thesis} for internal purposes of the Technical University of Liberec.\n\n{g:I|We} {g:am|are} aware of {g:my|our} obligation to inform the Technical University of Liberec on having used or granted license to use the results of {g:my|our} {thesis}; in such a case the Technical University of Liberec may require reimbursement of the costs incurred for creating the result up to their actual amount.\n\nAt the same time, {g:I|we} honestly declare that the text of the printed version of {g:my|our} {thesis} is identical with the text of the electronic version uploaded into the IS STAG.\n\n{g:I|We} acknowledge that the Technical University of Liberec will make {g:my|our} {thesis} public in accordance with paragraph 47b of Act No. 111/1998 Coll., on Higher Education Institutions and on Amendment to Other Acts (the Higher Education Act), as amended.\n\n{g:I|We} {g:am|are} aware of the consequences which may under the Higher Education Act result from a breach of this declaration.",
|
||||||
@@ -71,6 +90,10 @@
|
|||||||
"disclaimer_replace": {
|
"disclaimer_replace": {
|
||||||
"bp": {
|
"bp": {
|
||||||
"thesis": "bachelor thesis"
|
"thesis": "bachelor thesis"
|
||||||
|
},
|
||||||
|
|
||||||
|
"dp": {
|
||||||
|
"thesis": "diploma thesis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user