Skip to content

Commit

Permalink
refactor(whitepaper): improve header and footer layouting
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Hartung <[email protected]>
  • Loading branch information
florianhartung committed Dec 9, 2024
1 parent d8dcbf3 commit 9b0cc95
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions whitepaper/template.typ
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9b0cc95

Please sign in to comment.