summaryrefslogtreecommitdiff
path: root/muendliche-pruefung-mathematik/lib.typ
diff options
context:
space:
mode:
Diffstat (limited to 'muendliche-pruefung-mathematik/lib.typ')
-rw-r--r--muendliche-pruefung-mathematik/lib.typ22
1 files changed, 12 insertions, 10 deletions
diff --git a/muendliche-pruefung-mathematik/lib.typ b/muendliche-pruefung-mathematik/lib.typ
index 2793320..c8512d0 100644
--- a/muendliche-pruefung-mathematik/lib.typ
+++ b/muendliche-pruefung-mathematik/lib.typ
@@ -7,7 +7,11 @@
"NONE": ""
)
-#let oral-exam(
+#let event(name: "", lecturer: "", year: "", sws: "", ects: "", lp: "") = (
+ name, lecturer, year, sws, ects, lp
+)
+
+#let exam-report(
study: "", // Studiengang
lecture: "", // Fach
kind: KIND.NONE, // Prüfungsart KIND.{DIPLOM, STAATSEXAM, STUDIENBEGLEITEND, BACHELOR, MASTER}
@@ -18,12 +22,12 @@
exam_duration: duration(minutes: 0), // Prüfungsdauer
checked_knowledge_gaps: none, // Wurde Unwissen abgeprüft?
attendance: (
- // Titel der Vorlesung, Dozent, Wann gehört, SWS, ECTS, LP
- (lecture: "", lecturer: "", year: "", sws: "", ects: "", lp: ""),
- (lecture: "", lecturer: "", year: "", sws: "", ects: "", lp: ""),
- (lecture: "", lecturer: "", year: "", sws: "", ects: "", lp: ""),
- (lecture: "", lecturer: "", year: "", sws: "", ects: "", lp: ""),
- (lecture: "", lecturer: "", year: "", sws: "", ects: "", lp: ""),
+ /* Titel der Vorlesung, Dozent, Wann gehört, SWS, ECTS, LP */
+ event(name: "", lecturer: "", year: "", sws: "", ects: "", lp: ""),
+ event(name: "", lecturer: "", year: "", sws: "", ects: "", lp: ""),
+ event(name: "", lecturer: "", year: "", sws: "", ects: "", lp: ""),
+ event(name: "", lecturer: "", year: "", sws: "", ects: "", lp: ""),
+ event(name: "", lecturer: "", year: "", sws: "", ects: "", lp: ""),
),
attendance_worth: [
// Wie regelmäßig hast du die Lehrveranstaltungen besucht? Hat sich der
@@ -92,7 +96,7 @@
)
#show <attendance>: it => table(..grid_arguments(it),
..it.fields().children.at(0).children,
- ..(attendance.map(lecture => lecture.values()).flatten() + 5*6*([],)).slice(0,count: 5*6)
+ ..(attendance + 5*(event(),)).slice(0,5).flatten()
)
#show <checked_knowledge_gaps>: [
#h(1fr)
@@ -106,5 +110,3 @@
#doc
]
-#oral-exam()[]
-