Skip to content

Commit

Permalink
Merge pull request #95 from DeveloperPaul123/feature/set-page-paper-size
Browse files Browse the repository at this point in the history
  • Loading branch information
DeveloperPaul123 authored Jan 20, 2025
2 parents 24fbc19 + 7a99a1b commit 7d9927b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib.typ
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@
language: "en",
font: ("Source Sans Pro", "Source Sans 3"),
header-font: ("Roboto"),
paper-size: "a4",
body,
) = {
if type(accent-color) == "string" {
Expand All @@ -226,7 +227,7 @@
)

set page(
paper: "a4",
paper: paper-size,
margin: (left: 15mm, right: 15mm, top: 10mm, bottom: 10mm),
footer: if show-footer [#__resume_footer(
author,
Expand Down Expand Up @@ -569,6 +570,7 @@
font: ("Source Sans Pro", "Source Sans 3"),
show-footer: true,
closing: none,
paper-size: "a4",
body,
) = {
if type(accent-color) == "string" {
Expand Down Expand Up @@ -599,7 +601,7 @@
)

set page(
paper: "a4",
paper: paper-size,
margin: (left: 15mm, right: 15mm, top: 10mm, bottom: 10mm),
footer: if show-footer [#__coverletter_footer(
author,
Expand Down
2 changes: 2 additions & 0 deletions template/coverletter.typ
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
show-footer: false,
// set this to `none` to show the default or remove it completely
closing: [],
// see typst "page" documentation for more options
paper-size: "us-gov-legal"
)

#hiring-entity-info(entity-info: (
Expand Down
1 change: 1 addition & 0 deletions template/resume.typ
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
language: "en",
colored-headers: true,
show-footer: false,
paper-size: "us-letter",
)

= Experience
Expand Down

0 comments on commit 7d9927b

Please sign in to comment.