diff --git a/data/templates/template.typst b/data/templates/template.typst index dd34ae096..ad3ef956e 100644 --- a/data/templates/template.typst +++ b/data/templates/template.typst @@ -73,6 +73,9 @@ } } +#let has-title-block = title != none or (authors != none and authors != ()) or + date != none or abstract != none +#if has-title-block { place(top, float: true, scope: "parent", clearance: 4mm, block(below: 1em, width: 100%)[ #if title != none { align(center, block[ @@ -114,6 +117,6 @@ ] } ]) - +} doc }