feat: skip heading
This commit is contained in:
@@ -77,6 +77,7 @@
|
||||
title: none,
|
||||
authors: (),
|
||||
mentors: (),
|
||||
skip-heading: false,
|
||||
) = {
|
||||
assert(authors.len() > 0, message: "At least one author required")
|
||||
|
||||
@@ -96,6 +97,7 @@
|
||||
|
||||
(layouts.at(university, default: layouts.default))()
|
||||
|
||||
if not skip-heading {
|
||||
pagebreak(weak: true)
|
||||
|
||||
// Set heading counter based on title/number
|
||||
@@ -107,8 +109,10 @@
|
||||
if number != none {
|
||||
context counter(heading).update(number - 1)
|
||||
}
|
||||
|
||||
heading(eval(title, mode: "markup"))
|
||||
}
|
||||
}
|
||||
|
||||
doc
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user