start switching to hayagriva
This commit is contained in:
2
Makefile
2
Makefile
@@ -91,7 +91,7 @@ $(BUNDLEDIR)/template/%: template/%
|
||||
@mkdir -p $(@D)
|
||||
ln -f $< $@
|
||||
|
||||
TEMPLATE_SRCS := $(shell find template -type f)
|
||||
TEMPLATE_SRCS := $(shell find template -type f) citations.yml
|
||||
|
||||
bp.pdf: theses/bp.typ
|
||||
typst compile --font-path template/fonts --root . $< $@
|
||||
|
||||
73
citations.yml
Normal file
73
citations.yml
Normal file
@@ -0,0 +1,73 @@
|
||||
# Pomocí YAML kotev lze definovat vyšší struktury, na které poté budeme ukazovat v konkrétních
|
||||
# citacích
|
||||
wikidata: &wikidata
|
||||
type: blog
|
||||
title: Wikidata
|
||||
publisher: Wikimedia Foundation
|
||||
|
||||
# Prosíme, nepoužívejte Wikipedii jako citační zdroj! Z nějakého důvodu to není dobře tolerováno
|
||||
# (i když ta kvalita je často vyšší než u primárních zdrojů).
|
||||
wikipedia: &wikipedia
|
||||
type: blog
|
||||
title: Wikipedia
|
||||
author: Wikipedia contributors
|
||||
|
||||
typst:
|
||||
type: article
|
||||
author: Wikidata
|
||||
title: Q117858460 - Wikidata
|
||||
# Rok zveřejnění původního zdroje
|
||||
date: 2025
|
||||
url:
|
||||
# URL odkaz
|
||||
value: https://www.wikidata.org/w/index.php?title=Q117858460&oldid=2404700455
|
||||
# Kdy jsme citaci vytvořili (tedy kdy jsme my citovali)
|
||||
date: 2025-10-12
|
||||
# Tady používáme dříve definovanou strukturu (můžeme tak například odkazovat na kapitolu knihy,
|
||||
# kterou máme definovanou zvlášť)
|
||||
parent: *wikidata
|
||||
|
||||
bibtex:
|
||||
type: article
|
||||
title: BibTeX - Wikipedia, The Free Encyclopedia
|
||||
date: 2025
|
||||
url:
|
||||
value: https://en.wikipedia.org/w/index.php?title=BibTeX&oldid=1309039867
|
||||
date: 2025-10-12
|
||||
parent: *wikipedia
|
||||
|
||||
lotr:
|
||||
type: book
|
||||
title: The Lord of the Rings
|
||||
author:
|
||||
# Můžeme uvést i více autorů (oddělené `-`, je to standardní YAML pole)
|
||||
#
|
||||
# Křestní jméno
|
||||
- given-name: John Ronald Reuel
|
||||
# Příjmení
|
||||
name: Tolkien
|
||||
# ISBN (ukáže se přímo v tomto formátu, oddělit čárkami musíte vy)
|
||||
serial-number: { isbn: 9780261102439 }
|
||||
date: 1991
|
||||
publisher: Grafton
|
||||
|
||||
ipv6: &ipv6
|
||||
type: book
|
||||
title: IPv6 internetový protokol verze 6
|
||||
author:
|
||||
- given-name: Pavel
|
||||
name: Satrapa
|
||||
publisher:
|
||||
# Název vydavatele
|
||||
name: CZ.NIC, z.s.p.o.
|
||||
# Sídlo vydavatele
|
||||
location: Praha
|
||||
url: https://www.nic.cz/files/edice/IPv6-2019.pdf
|
||||
serial-number: { isbn: 978-80-88168-43-0 }
|
||||
date: 2019
|
||||
|
||||
# Citace kapitoly
|
||||
ipv6_intro:
|
||||
type: chapter
|
||||
page-range: 23-40
|
||||
parent: *ipv6
|
||||
@@ -4,6 +4,7 @@
|
||||
title: (cs: "Návod na použití Typst TUL šablony"),
|
||||
author: "Ondřej Mekina, Matěj Žucha",
|
||||
supervisor: "Ondřej Mekina",
|
||||
citations: "citations.yml",
|
||||
)
|
||||
|
||||
= Lehký úvod do Typstu a této šablony
|
||||
@@ -255,6 +256,8 @@ Soubor, ze kterého se načtou citace lze změnit pomocí argumentu šablony:
|
||||
)
|
||||
```
|
||||
|
||||
Zde jsou další ukázky citací: @lotr @ipv6 @ipv6_intro
|
||||
|
||||
== Vnitřní odkazy a kotvy
|
||||
|
||||
Trochu navážeme na Odkazy (@links).
|
||||
|
||||
@@ -1,23 +1,23 @@
|
||||
<?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>TUL ISO-690</title>
|
||||
<id>-----</id>
|
||||
<link href="" rel="self"/>
|
||||
<link href="" rel="documentation"/>
|
||||
<title>ISO-690 (TUL)</title>
|
||||
<id>https://git.zumepro.cz/tul/tultemplate2/src/branch/master/template/tul_citace.csl</id>
|
||||
<link href="https://git.zumepro.cz/tul/tultemplate2/src/branch/master/template/tul_citace.csl" rel="self"/>
|
||||
<link href="http://www.zotero.org/styles/iso690-numeric-en" rel="template"/>
|
||||
<author>
|
||||
<name>-----</name>
|
||||
<email>-----</email>
|
||||
<name>Ondřej Mekina</name>
|
||||
<email>ondrej@mekina.cz</email>
|
||||
</author>
|
||||
<category citation-format="numeric"/>
|
||||
<category field="generic-base"/>
|
||||
<summary>Style based on ISO 690:2010(E), V1.1</summary>
|
||||
<updated>2025-03-30T14:14:00+00:00</updated>
|
||||
<summary>Citační styl založen na ČSN ISO 690:2022, upraven pro použití na Technické Univerzitě v Liberci</summary>
|
||||
<updated>2025-10-12T13:44:00+00:00</updated>
|
||||
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
|
||||
</info>
|
||||
<locale>
|
||||
<terms>
|
||||
<term name="no date">[žádné datum]</term>
|
||||
<term name="no date">[no date]</term>
|
||||
<term name="in">v</term>
|
||||
<term name="online">online</term>
|
||||
<term name="accessed">citováno</term>
|
||||
@@ -70,7 +70,7 @@
|
||||
</macro>
|
||||
<macro name="container-author">
|
||||
<names variable="container-author">
|
||||
<name and="text" name-as-sort-order="all" sort-separator=", " delimiter=", " delimiter-precedes-last="never">
|
||||
<name and="text" name-as-sort-order="all" sort-separator=", " delimiter=", " delimiter-precedes-last="always">
|
||||
<name-part name="family" text-case="uppercase"/>
|
||||
<name-part name="given"/>
|
||||
</name>
|
||||
@@ -110,11 +110,17 @@
|
||||
<if type="book thesis map motion_picture song manuscript" match="any">
|
||||
<text variable="title" font-style="italic" suffix=". "/>
|
||||
</if>
|
||||
|
||||
<else-if type="paper-conference speech chapter article-journal article-magazine article-newspaper entry entry-dictionary entry-encyclopedia post-weblog post webpage broadcast" match="any">
|
||||
<text variable="title" suffix=". "/>
|
||||
<text variable="title" suffix=". " font-style="italic"/>
|
||||
<choose>
|
||||
<if variable="URL">
|
||||
<text term="online" text-case="capitalize-first" suffix=". "/>
|
||||
</if>
|
||||
</choose>
|
||||
<choose>
|
||||
<if type="chapter paper-conference" match="any">
|
||||
<text term="in" text-case="capitalize-first" suffix=" : "/>
|
||||
<text term="in" text-case="capitalize-first" suffix=": "/>
|
||||
</if>
|
||||
</choose>
|
||||
<choose>
|
||||
@@ -122,20 +128,21 @@
|
||||
<text macro="container-responsability"/>
|
||||
<choose>
|
||||
<if variable="container-title event" match="any">
|
||||
<text value=", "/>
|
||||
<text value=". "/>
|
||||
</if>
|
||||
</choose>
|
||||
</if>
|
||||
</choose>
|
||||
<choose>
|
||||
<if variable="container-title">
|
||||
<text variable="container-title" font-style="italic" suffix="."/>
|
||||
<text variable="container-title" suffix="."/>
|
||||
</if>
|
||||
<else>
|
||||
<text variable="event" font-style="italic" suffix="."/>
|
||||
</else>
|
||||
</choose>
|
||||
</else-if>
|
||||
|
||||
<else-if type="report">
|
||||
<text variable="number" suffix=": "/>
|
||||
<text variable="title" font-style="italic"/>
|
||||
@@ -147,11 +154,6 @@
|
||||
<text variable="title" font-style="italic" suffix="."/>
|
||||
</else>
|
||||
</choose>
|
||||
<choose>
|
||||
<if variable="URL">
|
||||
<text term="online" text-case="capitalize-first" prefix=" "/>
|
||||
</if>
|
||||
</choose>
|
||||
</macro>
|
||||
<macro name="number">
|
||||
<text variable="number"/>
|
||||
@@ -183,8 +185,8 @@
|
||||
<choose>
|
||||
<if variable="issued">
|
||||
<date variable="issued">
|
||||
<date-part name="day" suffix=" "/>
|
||||
<date-part name="month" suffix=" "/>
|
||||
<date-part name="day" suffix=". "/>
|
||||
<date-part name="month" form="numeric" suffix=". "/>
|
||||
<date-part name="year"/>
|
||||
</date>
|
||||
</if>
|
||||
@@ -194,7 +196,7 @@
|
||||
<text variable="edition" form="long"/>
|
||||
</macro>
|
||||
<macro name="publisher-group">
|
||||
<group delimiter=" : ">
|
||||
<group delimiter=": ">
|
||||
<text variable="publisher-place"/>
|
||||
<text variable="publisher"/>
|
||||
</group>
|
||||
@@ -204,15 +206,15 @@
|
||||
<text variable="volume" prefix="Vol. "/>
|
||||
<choose>
|
||||
<if variable="volume">
|
||||
<text variable="issue" prefix="no. "/>
|
||||
<text variable="page" prefix="p. "/>
|
||||
<text variable="issue" prefix="čí. "/>
|
||||
<text variable="page" prefix="str. "/>
|
||||
</if>
|
||||
<else-if variable="issue">
|
||||
<text variable="issue" prefix="No. "/>
|
||||
<text variable="page" prefix="p. "/>
|
||||
<text variable="issue" prefix="Čí. "/>
|
||||
<text variable="page" prefix="str. "/>
|
||||
</else-if>
|
||||
<else>
|
||||
<text variable="page" prefix="P. "/>
|
||||
<text variable="page" prefix="Str. "/>
|
||||
</else>
|
||||
</choose>
|
||||
</group>
|
||||
@@ -221,9 +223,9 @@
|
||||
<choose>
|
||||
<if variable="URL">
|
||||
<group prefix=" [" suffix="]">
|
||||
<text term="accessed" suffix=" "/>
|
||||
<text term="accessed"/>
|
||||
<date variable="accessed">
|
||||
<date-part name="year"/>
|
||||
<date-part name="year" prefix=" "/>
|
||||
<date-part name="month" form="numeric-leading-zeros" prefix="-"/>
|
||||
<date-part name="day" form="numeric-leading-zeros" prefix="-"/>
|
||||
</date>
|
||||
@@ -243,7 +245,7 @@
|
||||
<text variable="number-of-pages" suffix=" p"/>
|
||||
</if>
|
||||
<else-if type="chapter paper-conference article-newspaper" match="any">
|
||||
<text variable="page" prefix="p. "/>
|
||||
<text variable="page" prefix="str. "/>
|
||||
</else-if>
|
||||
<else-if type="report patent" match="any">
|
||||
<text variable="page" suffix=" p"/>
|
||||
@@ -263,8 +265,8 @@
|
||||
<if variable="URL">
|
||||
<group>
|
||||
<text term="retrieved" suffix=" " text-case="capitalize-first"/>
|
||||
<text term="from" suffix=": "/>
|
||||
<text variable="URL" suffix=" "/>
|
||||
<text term="from" suffix=": "/>
|
||||
<text variable="URL"/>
|
||||
</group>
|
||||
</if>
|
||||
</choose>
|
||||
@@ -312,7 +314,7 @@
|
||||
<key variable="citation-number"/>
|
||||
</sort>
|
||||
<layout>
|
||||
<text variable="citation-number" display="left-margin" prefix="[" suffix="] "/>
|
||||
<text variable="citation-number" display="left-margin" prefix="[" suffix="]"/>
|
||||
<choose>
|
||||
<if type="book map" match="any">
|
||||
<group display="right-inline">
|
||||
@@ -409,8 +411,8 @@
|
||||
<text macro="responsability" suffix=". "/>
|
||||
<text macro="title" suffix=". "/>
|
||||
<text macro="date" suffix=". "/>
|
||||
<text macro="url" suffix=". "/>
|
||||
<text macro="accessed" suffix=". "/>
|
||||
<text macro="url"/>
|
||||
</group>
|
||||
</else-if>
|
||||
<else-if type="broadcast motion_picture song" match="any">
|
||||
|
||||
Reference in New Issue
Block a user