-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Robert Jandow <[email protected]>
- Loading branch information
1 parent
6e81f4f
commit 592806d
Showing
8 changed files
with
100 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,4 @@ jobs: | |
source_file: | | ||
thesis.typ | ||
proposal.typ | ||
registration_certificate.typ |
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
#import "/utils/formfield.typ": * | ||
|
||
#let registrationCertificate( | ||
author: "", | ||
birthdate: datetime, | ||
title: "", | ||
degree: "", | ||
program: "", | ||
supervisor: "", | ||
startDate: datetime, | ||
submissionDate: datetime, | ||
currentDate: datetime, | ||
body, | ||
) = { | ||
|
||
// Set the document's basic properties. | ||
set page( | ||
margin: (left: 20mm, right: 20mm, top: 20mm, bottom: 20mm), | ||
) | ||
|
||
// Save heading and body font families in variables. | ||
let body-font = "New Computer Modern" | ||
let sans-font = "New Computer Modern Sans" | ||
|
||
// Set body font family. | ||
set text( | ||
font: body-font, | ||
size: 12pt, | ||
lang: "en" | ||
) | ||
|
||
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) | ||
|
||
align(left, text(font: sans-font, 1.3em, weight: "bold", "Bestätigung zur Anmeldung der " + degree + "arbeit")) | ||
|
||
grid( | ||
columns: 2, | ||
row-gutter: 10mm, | ||
column-gutter: 6mm, | ||
formField("Name der/des Studierenden", author, length: 90%), | ||
formField("Geburtsdatum", birthdate.display("[day].[month].[year]"),length: 90%), | ||
formField("Studiengang", program, length: 90%), | ||
formField("Titel der Arbeit", title, length: 90%) | ||
) | ||
|
||
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" | ||
body | ||
|
||
v(1.5cm) | ||
|
||
grid( | ||
columns: 2, | ||
column-gutter: 2cm, | ||
formField("Datum", currentDate.display("[day].[month].[year]"), length: 90%), | ||
formField(supervisor, " ", length: 90%) | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#import "/layout/registration_certificate.typ": * | ||
#import "/metadata.typ": * | ||
|
||
#set text(lang: "de") | ||
|
||
#show: registrationCertificate.with( | ||
author: author, | ||
title: titleGerman, | ||
birthdate: birthdate, | ||
degree: degree, | ||
program: program, | ||
supervisor: supervisor, | ||
startDate: startDate, | ||
submissionDate: submissionDate, | ||
currentDate: datetime.today(), | ||
) | ||
|
||
// You can write additional text for the registration certificate here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#let formField(label, content, length: 5cm) = { | ||
stack( | ||
text(1em, weight: "bold")[#content], | ||
v(2mm), | ||
line(length: length), | ||
v(1mm), | ||
text(0.9em, style: "italic")[#label] | ||
) | ||
} |