From 66b150f8af68247caaf6c968aa14a99c840b583d Mon Sep 17 00:00:00 2001 From: Jean-Marie 'Histausse' Mineau Date: Fri, 12 Sep 2025 10:25:16 +0200 Subject: [PATCH] add preliminary tag --- lib/cover.typ | 4 ++++ lib/matisse-thesis.typ | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/cover.typ b/lib/cover.typ index 107551b..0da104d 100644 --- a/lib/cover.typ +++ b/lib/cover.typ @@ -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) } diff --git a/lib/matisse-thesis.typ b/lib/matisse-thesis.typ index 62cb10a..11fd650 100644 --- a/lib/matisse-thesis.typ +++ b/lib/matisse-thesis.typ @@ -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, ) }