#import "marks.typ" #let render(title, place, author, reportType, confidential: false, tlp: none, draft: false) = { // Define page set page( background: [ #image("title.png") ], margin: ( top: 50% ) ) // Reset counter counter(page).update(n => n - 1) text(size: 32pt, [ #text(reportType)\ #text(title, weight: "black") ]) v(0.25pt) text(size: 16pt, [ #place, #datetime.today().display("[day].[month].[year]") #author ]) v(1fr) grid( columns: (1fr, 1fr, 1fr), gutter: 5pt, rows: (75pt), // "Confidential" marking if confidential { marks.confidential() }, // "Draft" marking if draft { marks.draft() }, // TLP marking, see https://www.first.org/tlp/ if tlp != none { marks.tlp(tlp) } ) }