main.typ: fix footer

This commit is contained in:
dogeystamp 2023-12-18 20:36:00 -05:00
parent 6bf4fae9ce
commit 1520edb9d7
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
2 changed files with 7 additions and 2 deletions

View File

@ -7,10 +7,13 @@
authors: none, authors: none,
suffix: none, suffix: none,
prefix: none, prefix: none,
enable-footer: true,
body body
) = { ) = {
doc_template( doc_template(
title: title, title: title,
authors: authors,
enable-footer: enable-footer,
{ {
gen_preamble(title: title, authors: authors, suffix: suffix, prefix: prefix) gen_preamble(title: title, authors: authors, suffix: suffix, prefix: prefix)
body body

View File

@ -92,6 +92,8 @@
#let doc_template( #let doc_template(
paper-size: "us-letter", paper-size: "us-letter",
title: "", title: "",
authors: none,
enable-footer: true,
// Content to wrap // Content to wrap
body, body,
@ -134,12 +136,12 @@
paper: paper-size, paper: paper-size,
margin: (top: 8%, rest: 10%), margin: (top: 8%, rest: 10%),
footer-descent: 50%, footer-descent: 50%,
footer: [ footer: if enable-footer [
#set text(size: 8pt, fill: luma(80)) #set text(size: 8pt, fill: luma(80))
#columns(3)[ #columns(3)[
#align(left)[ #align(left)[
© ©
#author_string() #author_string(authors: authors)
#datetime.today().year() #datetime.today().year()
] ]
#colbreak() #colbreak()