From 2ed73f8bf490c946915547fff63b3be1c659890b Mon Sep 17 00:00:00 2001 From: orangerot Date: Tue, 9 Sep 2025 13:18:10 +0200 Subject: feat: package definiton with library and template --- muendliche-pruefung-mathematik/lib.typ | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'muendliche-pruefung-mathematik/lib.typ') 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 : 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 : [ #h(1fr) @@ -106,5 +110,3 @@ #doc ] -#oral-exam()[] - -- cgit v1.2.3