improve bibliography a bit

This commit is contained in:
2025-10-01 22:34:31 +02:00
parent 6bebe41d6e
commit 26d861b72a
4 changed files with 26 additions and 5 deletions

View File

@@ -1,5 +1,14 @@
#import "../lang.typ": get_lang_item #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 #import "../utils.typ": is_none, assert_dict_has, assert_not_none
#let bp( #let bp(
@@ -31,6 +40,6 @@
toc(language); toc(language);
abbrlist(language); abbrlist(language);
content content
bibliography(citation_file, style: "../tul_citace.csl"); bibliogr(citation_file);
}); });
} }

View File

@@ -249,3 +249,15 @@
}; };
outline(title: get_lang_item(language, "toc")); 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 + "'");
}
}

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?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"> <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="never" default-locale="en-US">
<info> <info>
<title>ISO-690 (numeric, Czech)</title> <title>TUL ISO-690</title>
<id>-----</id> <id>-----</id>
<link href="" rel="self"/> <link href="" rel="self"/>
<link href="" rel="documentation"/> <link href="" rel="documentation"/>
@@ -264,7 +264,7 @@
<group> <group>
<text term="retrieved" suffix=" " text-case="capitalize-first"/> <text term="retrieved" suffix=" " text-case="capitalize-first"/>
<text term="from" suffix=": "/> <text term="from" suffix=": "/>
<text variable="URL"/> <text variable="URL" suffix=" "/>
</group> </group>
</if> </if>
</choose> </choose>

View File

@@ -3,4 +3,4 @@
@linux @linux
@Satrapa2011 @Satrapa2011
#bibliography("citations.bib", title: "Bibliography - EN") #bibliography("citations.bib", title: "Bibliography - EN", style: "iso-690-author-date")