improve compliance with guidelines

This commit is contained in:
2025-10-07 17:52:31 +02:00
parent 3beac874c1
commit d8dc47e3b0
4 changed files with 24 additions and 6 deletions

View File

@@ -36,7 +36,7 @@
// text
set text(font: serif_font);
set par(justify: true);
set par(justify: true, first-line-indent: 0.63cm);
// figures
let figure_numbering(realcount, c) = {
@@ -70,6 +70,13 @@
v(2cm);
it
};
show heading.where(): it => {
if it.level > 3 {
panic("maximum allowed heading level is 3");
} else {
it
}
}
// other
show raw: set text(font: mono_font, size: mono_font_compensation);
@@ -84,6 +91,7 @@
}
}
set highlight(fill: faculty_color.lighten(90%));
set line(stroke: (paint: faculty_color, thickness: .7pt), length: 100%);
content
}
@@ -378,9 +386,13 @@
#let bibliogr(language, citations_file) = {
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" {
bibliography(citations_file, style: "iso-690-numeric");
bibliography(
citations_file, style: "iso-690-numeric", title: get_lang_item(language, "bibliography"),
);
} else {
panic("unknown language for bibliography '" + language + "'");
}

View File

@@ -9,6 +9,7 @@
abbrlist,
imagelist,
tablelist,
bibliogr,
)
#import "../attachments.typ": attachment_list
#import "../utils.typ": is_none, assert_not_none, assert_dict_has, assert_in_arr
@@ -37,7 +38,7 @@
abbrlist(language);
pagebreak(to: "even", weak: true);
content;
bibliography(citation_file, style: "../tul_citace.csl");
bibliogr(language, citation_file);
attachment_list(language);
});
}