forked from pencelheimer/typst_nure_template
rename
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
#let universities = yaml("config/universities.yaml")
|
#let universities = yaml("config/universities.yaml")
|
||||||
|
|
||||||
#import "/src/helpers.typ": *
|
#import "/src/helpers.typ": *
|
||||||
#import "/src/style.typ": *
|
#import "/src/style.typ"
|
||||||
|
|
||||||
// Coursework template {{{1
|
// Coursework template {{{1
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
) = {
|
) = {
|
||||||
set document(title: title, author: authors.map(c => c.name))
|
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", ())
|
let bib-count = state("citation-counter", ())
|
||||||
show cite: it => {
|
show cite: it => {
|
||||||
@@ -335,7 +335,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
appendices-style(appendices)
|
style.appendices(appendices)
|
||||||
}
|
}
|
||||||
|
|
||||||
// #include "src/layouts.typ"
|
// #include "src/layouts.typ"
|
||||||
@@ -377,7 +377,7 @@
|
|||||||
|
|
||||||
set document(title: title, author: authors.map(c => c.name))
|
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
|
// page 1 {{{2
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -8,7 +8,7 @@
|
|||||||
/// - skip (int): Do not show page number for this number of pages.
|
/// - skip (int): Do not show page number for this number of pages.
|
||||||
/// - offset (int): Adjust all page numbers by this amount.
|
/// - offset (int): Adjust all page numbers by this amount.
|
||||||
|
|
||||||
#let dstu-style(
|
#let dstu(
|
||||||
it,
|
it,
|
||||||
skip: 0,
|
skip: 0,
|
||||||
offset: 0,
|
offset: 0,
|
||||||
@@ -121,7 +121,7 @@
|
|||||||
/// DSTU 3008:2015 Appendices Style
|
/// DSTU 3008:2015 Appendices Style
|
||||||
/// -> content
|
/// -> content
|
||||||
/// - it (content): Content to apply the style to.
|
/// - it (content): Content to apply the style to.
|
||||||
#let appendices-style(it) = /* {{{ */ {
|
#let appendices(it) = /* {{{ */ {
|
||||||
// Numbering
|
// Numbering
|
||||||
counter(heading).update(0)
|
counter(heading).update(0)
|
||||||
set heading(numbering: (i, ..n) => upper(ukr-enum.at(i)) + numbering(".1.1", ..n))
|
set heading(numbering: (i, ..n) => upper(ukr-enum.at(i)) + numbering(".1.1", ..n))
|
||||||
|
|||||||
Reference in New Issue
Block a user