Compare commits
4 Commits
c41ac4bc77
...
v0.5
Author | SHA1 | Date | |
---|---|---|---|
26d861b72a
|
|||
6bebe41d6e
|
|||
4e634e6ff9
|
|||
b03978a2c0
|
35
example.typ
35
example.typ
@@ -291,6 +291,41 @@ Zvýrazněné hodnoty jsou základní -- pokud vynecháte parametr, pak bude pou
|
||||
- `lang` (základní jazyk dokumentu)
|
||||
- *`"cs"`* - čeština
|
||||
- `"en"`
|
||||
#line()
|
||||
- `document` (typ dokumentu)
|
||||
- *`"other"`* - nespecifikovaný (neformální) typ dokumentu
|
||||
- `bp` - Bakalářská práce
|
||||
#line()
|
||||
- `title` (nadpis dokumentu)
|
||||
- Ve formátu `(<zkratka_jazyka>: "<nadpis>")`, například `(cs: "Můj nadpis")`
|
||||
#line()
|
||||
- `author` (autor/autoři dokumentu)
|
||||
- Příklad: `"Pavel Novák"` nebo `"Petra Velká, Jindřich Peterka"` (oddělujte jména `", "`)
|
||||
#line()
|
||||
- `author_gender` (rod autora v českém jazyce - není potřeba pro angličtinu)
|
||||
- `"male"` - Mužský rod
|
||||
- `"female"` - Ženský rod
|
||||
#line()
|
||||
- `supervisor` (vedoucí práce)
|
||||
- Příklad: `"prof. Jindřich Jindřich"`
|
||||
#line()
|
||||
- `programme` (studijní program autora)
|
||||
- Příklad: `"4242 - Odborná tvorba a zpracování krásných šablon"`
|
||||
#line()
|
||||
- `abstract` (abstrakt)
|
||||
- Ve formátu `(<zkratka_jazyka>: [<abstrakt>])`, například `(cs: [Můj *krásný* abstrakt.])`
|
||||
#line()
|
||||
- `keywords` (klíčová slova zobrazovaná pod abstraktem)
|
||||
- Ve formátu `("slovo1", "slovo2", ...)`
|
||||
#line()
|
||||
- `assignment` (PDF soubor se zadáním)
|
||||
- Ve formě cesty k souboru, například: `"zadani.pdf"`. Pokud je tento argument vynechán, bude
|
||||
vložena hláška "vložte zadání" na příslušné místo v dokumentu -- tu stranu můžete pak nahradit
|
||||
originálem zadání.
|
||||
#line()
|
||||
- `citations` (BibTex soubor s citacemi)
|
||||
- Ve formě cesty k souboru, například: `"citace.bib"`. Pokud není specifikován, bude použit
|
||||
výchozí (`"citations.bib"`).
|
||||
|
||||
#pagebreak(weak: true)
|
||||
== Zkratky
|
||||
|
@@ -1,5 +1,14 @@
|
||||
#import "../lang.typ": get_lang_item
|
||||
#import "common.typ": mainpage, default_styling, assignment, disclaimer, abstract, toc, abbrlist
|
||||
#import "common.typ": (
|
||||
mainpage,
|
||||
default_styling,
|
||||
assignment,
|
||||
disclaimer,
|
||||
abstract,
|
||||
toc,
|
||||
abbrlist,
|
||||
bibliogr
|
||||
)
|
||||
#import "../utils.typ": is_none, assert_dict_has, assert_not_none
|
||||
|
||||
#let bp(
|
||||
@@ -18,7 +27,9 @@
|
||||
if not is_none(keywords) {
|
||||
assert_dict_has(force_langs, keywords, "keywords");
|
||||
}
|
||||
if language == "cs" {
|
||||
assert_not_none(author_gender, "author gender");
|
||||
}
|
||||
|
||||
mainpage(faculty_id, language, none, title, author, supervisor, study_programme);
|
||||
assignment(language, assignment_document);
|
||||
@@ -29,6 +40,6 @@
|
||||
toc(language);
|
||||
abbrlist(language);
|
||||
content
|
||||
bibliography(citation_file, style: "../tul_citace.csl");
|
||||
bibliogr(citation_file);
|
||||
});
|
||||
}
|
||||
|
@@ -249,3 +249,15 @@
|
||||
};
|
||||
outline(title: get_lang_item(language, "toc"));
|
||||
}
|
||||
|
||||
// BIBLIOGRAPHY
|
||||
|
||||
#let bibliogr(language, citations_file) = {
|
||||
if language == "cs" {
|
||||
bibliography(citations_file, style: "../tul_citace.csl");
|
||||
} else if language == "en" {
|
||||
bibliography(citations_file, style: "iso-690-numeric");
|
||||
} else {
|
||||
panic("unknown language for bibliography '" + language + "'");
|
||||
}
|
||||
}
|
||||
|
@@ -54,7 +54,13 @@
|
||||
"toc": "Contents",
|
||||
|
||||
"disclaimer": "Declaration",
|
||||
"disclaimer_bp": "I hereby certify, I, myself, have written my bachelor thesis as an original and primary work using the literature listed below and consulting it with my thesis supervisor and my thesis counsellor.\n\nI acknowledge that my bachelor thesis is fully governed by Act No. 121/2000 Coll., the Copyright Act, in particular Article 60 – School Work.\n\nI acknowledge that the Technical University of Liberec does not infringe my copyrights by using my bachelor thesis for internal purposes of the Technical University of Liberec.\n\nI am aware of my obligation to inform the Technical University of Liberec on having used or granted license to use the results of my bachelor 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, I honestly declare that the text of the printed version of my bachelor thesis is identical with the text of the electronic version uploaded into the IS STAG.\n\nI acknowledge that the Technical University of Liberec will make my bachelor 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\nI am aware of the consequences which may under the Higher Education Act result from a breach of this declaration.",
|
||||
"disclaimer_content": "I hereby certify, I, myself, have written my {thesis} as an original and primary work using the literature listed below and consulting it with my thesis supervisor and my thesis counsellor.\n\nI acknowledge that my {thesis} is fully governed by Act No. 121/2000 Coll., the Copyright Act, in particular Article 60 – School Work.\n\nI acknowledge that the Technical University of Liberec does not infringe my copyrights by using my {thesis} for internal purposes of the Technical University of Liberec.\n\nI am aware of my obligation to inform the Technical University of Liberec on having used or granted license to use the results of my {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, I honestly declare that the text of the printed version of my {thesis} is identical with the text of the electronic version uploaded into the IS STAG.\n\nI acknowledge that the Technical University of Liberec will make my {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\nI am aware of the consequences which may under the Higher Education Act result from a breach of this declaration.",
|
||||
|
||||
"disclaimer_replace": {
|
||||
"bp": {
|
||||
"thesis": "bachelor thesis"
|
||||
}
|
||||
},
|
||||
|
||||
"date": "[year]-[month]-[day]",
|
||||
|
||||
|
@@ -22,16 +22,14 @@
|
||||
// - style (str): Visual style to use. This can be "classic".
|
||||
// - faculty (str): Factulty abbreviation. One of "fs", "ft", "fp", "ef", "fua", "fm", "fzs", "cxi".
|
||||
// - lang (str): Language code. This can be "cs" or "en".
|
||||
// - document (str): Type of document. This can be "bp", "dp", "ds".
|
||||
// - title_cs (str): The title (Czech) of the document.
|
||||
// - document (str): Type of document. This can be "bp" or "other".
|
||||
// - title (str): The title of the document.
|
||||
// - author (str): The name of the document's author.
|
||||
// - author_gender (str): The gender of the document's author. Needed only for the `cs` language.
|
||||
// - supervisor (str): The name of the document's supervisor.
|
||||
// - programme (str): Study programme.
|
||||
// - abstract_cs (content): The abstract (Czech).
|
||||
// - keywords_cs (array): The abstract keywords (Czech).
|
||||
// - title_en (str): The title (English) of the document.
|
||||
// - abstract_en (content): The abstract (English).
|
||||
// - keywords_en (array): The abstract keywords (English).
|
||||
// - abstract (content): The abstract.
|
||||
// - keywords (array): The abstract keywords.
|
||||
// - assignment (str): Filepath of the assignment document/page.
|
||||
// - citations (str): The location of the citation file.
|
||||
// - content (content): The content of the document
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="never" default-locale="en-US">
|
||||
<info>
|
||||
<title>ISO-690 (numeric, Czech)</title>
|
||||
<title>TUL ISO-690</title>
|
||||
<id>-----</id>
|
||||
<link href="" rel="self"/>
|
||||
<link href="" rel="documentation"/>
|
||||
@@ -264,7 +264,7 @@
|
||||
<group>
|
||||
<text term="retrieved" suffix=" " text-case="capitalize-first"/>
|
||||
<text term="from" suffix=": "/>
|
||||
<text variable="URL"/>
|
||||
<text variable="URL" suffix=" "/>
|
||||
</group>
|
||||
</if>
|
||||
</choose>
|
||||
|
@@ -0,0 +1,40 @@
|
||||
@article{Wang2025,
|
||||
author = {Wang, Erming and Yu, Kaiwen and Cao, Jiqing and Wang, Minghui and Katsel, Pavel and Song, Won-min and Wang, Zhen and Li, Yuxin and Wang, Xusheng and Wang, Qian and Xu, Peng and Yu, Gefei and Zhu, Li and Geng, Jia and Habibi, Parnian and Qian, Lu and Tuck, Tony and Li, Aiqun and TCW, Julia and Roussos, Panos and Brennand, Kristen J. and Haroutunian, Vahram and Johnson, Erik C.B. and Seyfried, Nicholas T. and Levey, Allan I. and Bennett, David A. and Peng, Junmin and Cai, Dongming and Zhang, Bin},
|
||||
title = {Multiscale proteomic modeling reveals protein networks driving Alzheimer’s disease pathogenesis},
|
||||
journal = {Cell},
|
||||
year = {2025},
|
||||
volume = {},
|
||||
number = {},
|
||||
pages = {},
|
||||
publisher = {Elsevier},
|
||||
doi = {10.1016/j.cell.2025.08.038},
|
||||
url = {https://doi.org/10.1016/j.cell.2025.08.038},
|
||||
issn = {0092-8674}
|
||||
}
|
||||
|
||||
@misc{csl,
|
||||
title = {Citation Style Language},
|
||||
year = {2025},
|
||||
medium = {online},
|
||||
accessed = {2025-06-10},
|
||||
URL = {https://citationstyles.org/},
|
||||
}
|
||||
|
||||
@misc{linux,
|
||||
journal = {Blog | Linux Foundation},
|
||||
title = {Classic SysAdmin: Vim 101: A Beginner’s Guide to Vim},
|
||||
year = {2025},
|
||||
medium = {online},
|
||||
accessed = {2025-06-10},
|
||||
URL = {https://www.linuxfoundation.org/blog/blog/classic-sysadmin-vim-101-a-beginners-guide-to-vim},
|
||||
}
|
||||
|
||||
@book{Satrapa2011,
|
||||
author = {Pavel Satrapa},
|
||||
title = {IPv6},
|
||||
publisher = {Edice CZ.NIC},
|
||||
year = {2011},
|
||||
edition = {3. vydání},
|
||||
ISBN = {978-80-904248-4-9},
|
||||
URL = {https://www.bookport.cz/kniha/ipv6-treti-vydani-5999/},
|
||||
}
|
||||
|
@@ -1,4 +1,7 @@
|
||||
// todo: add citations
|
||||
@Wang2025
|
||||
@csl
|
||||
@linux
|
||||
@Satrapa2011
|
||||
|
||||
#pagebreak(weak: true)
|
||||
#set text(lang: "cs")
|
||||
#bibliography("citations.bib", title: "Bibliography - CZ", style: "../template/tul_citace.csl")
|
6
tests/citations_en.typ
Normal file
6
tests/citations_en.typ
Normal file
@@ -0,0 +1,6 @@
|
||||
@Wang2025
|
||||
@csl
|
||||
@linux
|
||||
@Satrapa2011
|
||||
|
||||
#bibliography("citations.bib", title: "Bibliography - EN", style: "iso-690-author-date")
|
Reference in New Issue
Block a user