From 04705b200366b3a00c9a403b403234b338da3e49 Mon Sep 17 00:00:00 2001 From: Sven Vogel Date: Fri, 5 Jul 2024 10:18:53 +0200 Subject: [PATCH] =?UTF-8?q?changed:=20rotation=20of=20draft=20watermark=20?= =?UTF-8?q?set=20to=20-22.5=C2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/style.typ | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/style.typ b/src/style.typ index 716ea58..9db0f83 100644 --- a/src/style.typ +++ b/src/style.typ @@ -9,7 +9,7 @@ #let watermark-color = luma(50%).transparentize(70%) -#let watermark() = rotate(-45deg, +#let watermark() = rotate(-22.5deg, rect(radius: 1em, inset: 1em, stroke: watermark-color, { text(size: 48pt, weight: "bold", fill: watermark-color, "DRAFT") linebreak() @@ -27,12 +27,6 @@ let thesis = config.thesis let style = config.style - // set page geometry - // and paper format - set page( - paper: style.page.format, - margin: style.page.margin) - set text( size: style.text.size, ligatures: true, @@ -68,6 +62,7 @@ set heading(numbering: none) set page( + paper: style.page.format, foreground: if config.draft { watermark() }, @@ -75,7 +70,9 @@ footer-descent: 1em, margin: ( top: style.page.margin.top + style.header.logo-height + style.header.underline-top-padding + style.header.bottom-padding, - bottom: style.page.margin.bottom + 1em), + bottom: style.page.margin.bottom + 1em, + left: style.page.margin.left, + right: style.page.margin.right), numbering: (..nums) => { let current-page = here().page() if current-page == 1{