1
0
Fork 0

Move absolutely measured portions of header to src/base

main
Ethan Reece 2024-09-26 16:47:02 -05:00
parent 61109cf1af
commit 3c9f203ded
Signed by: me
GPG Key ID: 198E9EB433DB1B28
4 changed files with 25 additions and 25 deletions

View File

@ -1,13 +1,17 @@
#let base_page( #let base_page(
header: [], header: [],
body body
) = page( ) = {
import "page/header.typ": base_page_header
page(
paper: "us-letter", paper: "us-letter",
margin: ( margin: (
x: 1in, x: 1in,
y: 1in, y: 1in,
), ),
header: header, header: base_page_header(header),
header-ascent: 0in, header-ascent: 0in,
body body
) )
}

View File

@ -0,0 +1,8 @@
#let base_page_header(content) = block(
width: 100%,
height: 0.5in,
align(
right + top,
content
)
)

View File

@ -1,12 +1,5 @@
#let page_essay_header(author_name_last: "") = { #let page_essay_header(author_name_last: "") = {
import "header/content.typ": page_essay_header_content author_name_last
" "
block( counter(page).display()
width: 100%,
height: 0.5in,
align(
right + top,
page_essay_header_content(author_name_last: author_name_last)
)
)
} }

View File

@ -1,5 +0,0 @@
#let page_essay_header_content(author_name_last: "") = {
author_name_last
" "
counter(page).display()
}