This commit is contained in:
2026-01-17 16:41:05 +02:00
parent 7bb0925662
commit f3adc98f86
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -4,7 +4,7 @@
#let universities = yaml("config/universities.yaml")
#import "/src/helpers.typ": *
#import "/src/style.typ": *
#import "/src/style.typ"
// Coursework template {{{1
@@ -35,7 +35,7 @@
) = {
set document(title: title, author: authors.map(c => c.name))
show: dstu-style.with(skip: 1)
show: style.dstu.with(skip: 1)
let bib-count = state("citation-counter", ())
show cite: it => {
@@ -335,7 +335,7 @@
}
}
appendices-style(appendices)
style.appendices(appendices)
}
// #include "src/layouts.typ"
@@ -377,7 +377,7 @@
set document(title: title, author: authors.map(c => c.name))
show: dstu-style.with(skip: 1)
show: style.dstu.with(skip: 1)
// page 1 {{{2
+2 -2
View File
@@ -8,7 +8,7 @@
/// - skip (int): Do not show page number for this number of pages.
/// - offset (int): Adjust all page numbers by this amount.
#let dstu-style(
#let dstu(
it,
skip: 0,
offset: 0,
@@ -121,7 +121,7 @@
/// DSTU 3008:2015 Appendices Style
/// -> content
/// - it (content): Content to apply the style to.
#let appendices-style(it) = /* {{{ */ {
#let appendices(it) = /* {{{ */ {
// Numbering
counter(heading).update(0)
set heading(numbering: (i, ..n) => upper(ukr-enum.at(i)) + numbering(".1.1", ..n))