Skip to content

Commit

Permalink
Use datetime type for start and submission date (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertjndw authored May 15, 2024
1 parent 792fb8a commit dcb453b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions common/metadata.typ
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
#let supervisor = "Prof. Dr. Stephan Krusche"
#let advisors = ("Jolanda Krümelmonster, M.Sc.",)
#let author = "(Author)"
#let startDate = "(Start Date)"
#let submissionDate = "(Handover Date)"
#let startDate = datetime(day: 1, month: 1, year: 2024)
#let submissionDate = datetime(day: 1, month: 1, year: 2024)
13 changes: 8 additions & 5 deletions common/titlepage.typ
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@
supervisor: "",
advisors: (),
author: "",
startDate: none,
submissionDate: none,
startDate: datetime,
submissionDate: datetime,
) = {
// Quality checks
assert(degree in ("Bachelor", "Master"), message: "The degree must be either 'Bachelor' or 'Master'")

set page(
margin: (left: 30mm, right: 30mm, top: 40mm, bottom: 40mm),
numbering: none,
Expand All @@ -29,7 +32,7 @@

// --- Title Page ---
v(1cm)
align(center, image("../figures/logo.png", width: 26%))
align(center, image("/figures/logo.png", width: 26%))

v(5mm)
align(center, text(font: sans-font, 2em, weight: 700, "Technical University of Munich"))
Expand Down Expand Up @@ -58,8 +61,8 @@
strong("Author: "), author,
strong("Supervisor: "), supervisor,
strong("Advisors: "), advisors.join(", "),
strong("Start Date: "), startDate,
strong("Submission Date: "), submissionDate,
strong("Start Date: "), startDate.display("[day].[month].[year]"),
strong("Submission Date: "), submissionDate.display("[day].[month].[year]"),
)
)

Expand Down

0 comments on commit dcb453b

Please sign in to comment.