main.typ: fix footer
This commit is contained in:
parent
6bf4fae9ce
commit
1520edb9d7
@ -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
|
||||||
|
6
main.typ
6
main.typ
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user