Skip to content

Commit

Permalink
Improve some minor layout and details
Browse files Browse the repository at this point in the history
  • Loading branch information
robertjndw committed Jul 15, 2024
1 parent 7c7f89b commit cf7d7bf
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 27 deletions.
3 changes: 2 additions & 1 deletion content/certificates/registration_certificate.typ
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
startDate: startDate,
submissionDate: submissionDate,
currentDate: datetime.today(),
comment: "",
)

// You can write additional text for the registration certificate here.
3 changes: 0 additions & 3 deletions figures/ls1_logo.png

This file was deleted.

27 changes: 9 additions & 18 deletions layout/registration_certificate.typ
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
startDate: datetime,
submissionDate: datetime,
currentDate: datetime,
comment: "",
body,
) = {

Expand All @@ -30,16 +29,14 @@
lang: "en"
)

// v(1cm)
grid(
columns: (1fr,2fr,1fr),
align: center,
image("/figures/ls1_logo.png", width: 30%),
rect(stroke: 0mm),
image("/figures/tum_logo.png", width: 50%),
text(font: sans-font, "Applied Software Engineering"),
rect(stroke: 0mm),
text(font: sans-font, weight: "bold", "Technical University of Munich")
align(
right,
stack(
dir: ttb,
spacing: 10pt,
image("/figures/tum_logo.png", width: 20%),
text(font: sans-font, weight: "bold", "Technical University \n of Munich")
)
)

v(1.5cm)
Expand All @@ -59,7 +56,7 @@
v(1.5cm)

"Hiermit bestätigen wir, dass der Kandidat/die Kandidatin sich am " + startDate.display("[day].[month].[year]") + " zur " + degree + "arbeit angemeldet hat. \n"
comment
body

v(1.5cm)

Expand All @@ -70,9 +67,3 @@
formField(supervisor, " ", length: 90%)
)
}

#let comment(content) = {

}


12 changes: 7 additions & 5 deletions utils/formfield.typ
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#let formField(label, content, length: 5cm) = {
align(left, text(1em, weight: "bold")[#content])
v(-3mm)
line(length: length)
v(-4mm)
align(left, text(0.9em, style: "italic")[#label])
stack(
text(1em, weight: "bold")[#content],
v(2mm),
line(length: length),
v(1mm),
text(0.9em, style: "italic")[#label]
)
}

0 comments on commit cf7d7bf

Please sign in to comment.