forked from pencelheimer/typst_nure_template
fail compilation if subject is unknown
This commit is contained in:
@@ -184,11 +184,23 @@
|
|||||||
v(spacing * 2, weak: true)
|
v(spacing * 2, weak: true)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Listings {{{1
|
show heading.where(level: 3): it => {
|
||||||
show raw: it => {
|
set text(size: 14pt, weight: "regular")
|
||||||
let raw-spacing = 0.5em
|
|
||||||
set block(spacing: raw-spacing)
|
v(spacing * 2, weak: true)
|
||||||
set par(spacing: raw-spacing, leading: raw-spacing)
|
block(width: 100%, spacing: 0em)[
|
||||||
|
#h(1.25cm)
|
||||||
|
#counter(heading).display(it.numbering)
|
||||||
|
#it.body
|
||||||
|
]
|
||||||
|
v(spacing * 2, weak: true)
|
||||||
|
}
|
||||||
|
|
||||||
|
// listings {{{3
|
||||||
|
show raw.where(block: true): it => {
|
||||||
|
let new_spacing = 0.5em
|
||||||
|
set block(spacing: new_spacing)
|
||||||
|
set par(spacing: new_spacing, leading: new_spacing)
|
||||||
set text(
|
set text(
|
||||||
size: 11pt,
|
size: 11pt,
|
||||||
weight: "semibold",
|
weight: "semibold",
|
||||||
@@ -659,7 +671,7 @@
|
|||||||
|
|
||||||
з дисципліни: "#uni.subjects.at(subject)"
|
з дисципліни: "#uni.subjects.at(subject)"
|
||||||
|
|
||||||
#if title != none [з теми: "#title"]
|
#if title != none [з теми: "#eval(title, mode: "markup")"]
|
||||||
|
|
||||||
\ \ \ \
|
\ \ \ \
|
||||||
|
|
||||||
@@ -716,7 +728,7 @@
|
|||||||
|
|
||||||
pagebreak(weak: true)
|
pagebreak(weak: true)
|
||||||
|
|
||||||
if title != none [#heading(title)]
|
if title != none [#heading(eval(title, mode: "markup"))]
|
||||||
|
|
||||||
doc
|
doc
|
||||||
chapters.map(chapter => include "/chapters/" + str(chapter) + ".typ").join()
|
chapters.map(chapter => include "/chapters/" + str(chapter) + ".typ").join()
|
||||||
|
|||||||
Reference in New Issue
Block a user