-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.typ
More file actions
47 lines (40 loc) · 938 Bytes
/
Copy pathtemplate.typ
File metadata and controls
47 lines (40 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#let project(title: "", authors: "", header-footer-enable: 1, header: (), body) = {
set document(
author: authors,
title: title,
date: auto,
)
set page(
paper: "us-letter",
margin: 1in,
// Header enabled only after header-footer-enable pages
header: context {
if counter(page).get().at(0) > header-footer-enable [
#grid(
columns: (1fr, 1fr),
row-gutter: 0%,
inset: 0pt,
[#header], align(right)[#authors],
)
#v(-0.5em)
#line(length: 100%, stroke: 1pt + black)
]
},
// Footer enabled only after header-footer-enable pages
footer: context {
if counter(page).get().at(0) > header-footer-enable [
#h(1fr)
#counter(page).display(
"1",
both: false,
)
#h(1fr)
]
}
)
set text(
font: "IBM Plex Sans",
size: 10pt,
)
body
}