generated from me/guix-typst-template
Move absolutely measured portions of header to src/base
parent
61109cf1af
commit
3c9f203ded
|
@ -1,13 +1,17 @@
|
||||||
#let base_page(
|
#let base_page(
|
||||||
header: [],
|
header: [],
|
||||||
body
|
body
|
||||||
) = page(
|
) = {
|
||||||
paper: "us-letter",
|
import "page/header.typ": base_page_header
|
||||||
margin: (
|
|
||||||
x: 1in,
|
page(
|
||||||
y: 1in,
|
paper: "us-letter",
|
||||||
),
|
margin: (
|
||||||
header: header,
|
x: 1in,
|
||||||
header-ascent: 0in,
|
y: 1in,
|
||||||
body
|
),
|
||||||
)
|
header: base_page_header(header),
|
||||||
|
header-ascent: 0in,
|
||||||
|
body
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
#let base_page_header(content) = block(
|
||||||
|
width: 100%,
|
||||||
|
height: 0.5in,
|
||||||
|
align(
|
||||||
|
right + top,
|
||||||
|
content
|
||||||
|
)
|
||||||
|
)
|
|
@ -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)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
#let page_essay_header_content(author_name_last: "") = {
|
|
||||||
author_name_last
|
|
||||||
" "
|
|
||||||
counter(page).display()
|
|
||||||
}
|
|
Loading…
Reference in New Issue