forked from pencelheimer/typst_nure_template
feat!: remove chapters
This commit is contained in:
@@ -632,7 +632,6 @@
|
|||||||
/// - worknumber (int or none): Number of the work. Optional.
|
/// - worknumber (int or none): Number of the work. Optional.
|
||||||
/// - authors ((name: str, full_name_gen: str, group: str, gender: str, variant: int or none),): List of authors.
|
/// - authors ((name: str, full_name_gen: str, group: str, gender: str, variant: int or none),): List of authors.
|
||||||
/// - mentors ((name: str, degree: str, gender: str or none),): List of mentors. Optional.
|
/// - mentors ((name: str, degree: str, gender: str or none),): List of mentors. Optional.
|
||||||
/// - chapters (): List of file names in chapters/ subdirectory. Optional.
|
|
||||||
#let pz-lb(
|
#let pz-lb(
|
||||||
doc,
|
doc,
|
||||||
university: "ХНУРЕ",
|
university: "ХНУРЕ",
|
||||||
@@ -643,7 +642,6 @@
|
|||||||
worknumber: none,
|
worknumber: none,
|
||||||
authors: (),
|
authors: (),
|
||||||
mentors: (),
|
mentors: (),
|
||||||
chapters: (),
|
|
||||||
) = {
|
) = {
|
||||||
assert.ne(edu_program, none, message: "Missing argument: \"edu_program\"")
|
assert.ne(edu_program, none, message: "Missing argument: \"edu_program\"")
|
||||||
assert.ne(doctype, none, message: "Missing argument: \"doctype\"")
|
assert.ne(doctype, none, message: "Missing argument: \"doctype\"")
|
||||||
@@ -736,7 +734,6 @@
|
|||||||
if title != none [#heading(eval(title, mode: "markup"))]
|
if title != none [#heading(eval(title, mode: "markup"))]
|
||||||
|
|
||||||
doc
|
doc
|
||||||
chapters.map(chapter => include "/chapters/" + str(chapter) + ".typ").join()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// vim:sts=2:sw=2:fdm=marker:cms=/*%s*/
|
// vim:sts=2:sw=2:fdm=marker:cms=/*%s*/
|
||||||
|
|||||||
Reference in New Issue
Block a user