From 1520edb9d735cbcb52701a00b80b1f28dc2287e7 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Mon, 18 Dec 2023 20:36:00 -0500 Subject: [PATCH] main.typ: fix footer --- general.typ | 3 +++ main.typ | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/general.typ b/general.typ index a5565d2..6c1a2a8 100644 --- a/general.typ +++ b/general.typ @@ -7,10 +7,13 @@ authors: none, suffix: none, prefix: none, + enable-footer: true, body ) = { doc_template( title: title, + authors: authors, + enable-footer: enable-footer, { gen_preamble(title: title, authors: authors, suffix: suffix, prefix: prefix) body diff --git a/main.typ b/main.typ index 82338e2..35b835d 100644 --- a/main.typ +++ b/main.typ @@ -92,6 +92,8 @@ #let doc_template( paper-size: "us-letter", title: "", + authors: none, + enable-footer: true, // Content to wrap body, @@ -134,12 +136,12 @@ paper: paper-size, margin: (top: 8%, rest: 10%), footer-descent: 50%, - footer: [ + footer: if enable-footer [ #set text(size: 8pt, fill: luma(80)) #columns(3)[ #align(left)[ © - #author_string() + #author_string(authors: authors) #datetime.today().year() ] #colbreak()