add preliminary tag

This commit is contained in:
Jean-Marie 'Histausse' Mineau 2025-09-12 10:25:16 +02:00
parent cadcf917ef
commit 66b150f8af
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
2 changed files with 9 additions and 1 deletions

View file

@ -13,6 +13,7 @@
university: "UR",
speciality: "Informatique",
heading-font: "TeX Gyre Heros",
preliminary: false,
) = {
set page(
margin: (left: 20mm, right: 20mm, top: 30mm, bottom: 30mm),
@ -83,6 +84,9 @@
set text(fill: black)
jury-content
if preliminary {
place(center + horizon, rotate(24deg, text(red.transparentize(0%), size: 60pt)[VERSION \ PRELIMINAIRE]))
}
pagebreak()
set page(background: none)
}

View file

@ -40,6 +40,7 @@
show_cover: true,
show_body: true,
show_abstracts: true,
preliminary: false,
body
) = {
assert-etablissements(university)
@ -60,9 +61,11 @@
let draft-string = ""
if draft { draft-string = "DRAFT - " }
let preliminary-string = ""
if preliminary { preliminary-string = " - PRELIMINARY VERSION"
set document(
title: draft-string + title-en,
title: draft-string + title-en + preliminary-string,
author: author,
)
set par(justify: true)
@ -250,6 +253,7 @@
university: university,
speciality: speciality,
heading-font: heading-font,
preliminary: preliminary,
)
}