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
|
* 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": *
|
#import "template.typ": *
|
||||||
|
|
||||||
// TODO: Template formatting functions {{{
|
// TODO: Template formatting functions {{{
|
||||||
@@ -387,7 +387,7 @@
|
|||||||
#v(spacing * 2, weak: true)
|
#v(spacing * 2, weak: true)
|
||||||
],
|
],
|
||||||
depth: 2,
|
depth: 2,
|
||||||
indent: auto,
|
indent: 0em,
|
||||||
)
|
)
|
||||||
|
|
||||||
doc
|
doc
|
||||||
|
|||||||
+2
-1
@@ -29,6 +29,7 @@
|
|||||||
number: none,
|
number: none,
|
||||||
subject: none,
|
subject: none,
|
||||||
title: none,
|
title: none,
|
||||||
|
hide_title: false,
|
||||||
variant: none,
|
variant: none,
|
||||||
author: none,
|
author: none,
|
||||||
mentor: none,
|
mentor: none,
|
||||||
@@ -121,7 +122,7 @@
|
|||||||
|
|
||||||
pagebreak(weak: true)
|
pagebreak(weak: true)
|
||||||
|
|
||||||
if title != none { heading(title) }
|
if title != none and not hide_title { heading(title) }
|
||||||
|
|
||||||
it
|
it
|
||||||
} // }}}
|
} // }}}
|
||||||
|
|||||||
Reference in New Issue
Block a user