forked from pencelheimer/typst_nure_template
feat(template): add hide_title option
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
* Typst library for NURE (Kharkiv National University of Radio Electronics) works
|
||||
*/
|
||||
|
||||
#import "style.typ": spacing, dstu-style, appendices-style
|
||||
#import "style.typ": appendices-style, dstu-style, spacing
|
||||
#import "template.typ": *
|
||||
|
||||
// TODO: Template formatting functions {{{
|
||||
@@ -387,7 +387,7 @@
|
||||
#v(spacing * 2, weak: true)
|
||||
],
|
||||
depth: 2,
|
||||
indent: auto,
|
||||
indent: 0em,
|
||||
)
|
||||
|
||||
doc
|
||||
|
||||
+2
-1
@@ -29,6 +29,7 @@
|
||||
number: none,
|
||||
subject: none,
|
||||
title: none,
|
||||
hide_title: false,
|
||||
variant: none,
|
||||
author: none,
|
||||
mentor: none,
|
||||
@@ -121,7 +122,7 @@
|
||||
|
||||
pagebreak(weak: true)
|
||||
|
||||
if title != none { heading(title) }
|
||||
if title != none and not hide_title { heading(title) }
|
||||
|
||||
it
|
||||
} // }}}
|
||||
|
||||
Reference in New Issue
Block a user