From 9b0cc95d2ce4e6c87b2f6ad423ecefdcae442c6b Mon Sep 17 00:00:00 2001 From: florianhartung Date: Fri, 6 Dec 2024 17:32:18 +0100 Subject: [PATCH] refactor(whitepaper): improve header and footer layouting Signed-off-by: Florian Hartung --- whitepaper/template.typ | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/whitepaper/template.typ b/whitepaper/template.typ index 4ea8d888..a14e8ec9 100644 --- a/whitepaper/template.typ +++ b/whitepaper/template.typ @@ -4,17 +4,20 @@ set document(title: title, author: author, keywords: keywords) set page( paper: "a4", columns: 1, header: context{ - if counter(page).get().first() > 1 [ - #align(right, title), + if counter(page).get().first() > 1 { + align(right, title) + } + }, footer: context{ + set text(8pt) + let left_footer = [ + License: #link("https://creativecommons.org/licenses/by-sa/4.0/")[CC-BY-SA #cc-by-sa] \ + Copyright © 2024-#datetime.today().year() German Aerospace Center (DLR). All + rights reserved. ] - }, footer: context[ - #set text(8pt) - License: #link("https://creativecommons.org/licenses/by-sa/4.0/")[CC-BY-SA #cc-by-sa] - #h(1fr) #counter(page).display("1 of 1", both: true) \ + let right_footer = counter(page).display("1 of 1", both: true) - Copyright © 2024-#datetime.today().year() German Aerospace Center (DLR). All - rights reserved. - ], + grid(columns: (1fr, auto), align: (left, right), left_footer, right_footer) + }, ) // Style