Fix: Duplication of course of studies on first page

This commit is contained in:
Laurenz 2025-10-28 10:41:36 +01:00
parent fd195ed79c
commit cdc4ad339a
Signed by: C0ffeeCode
SSH key fingerprint: SHA256:prvFOyBjButRypyXm7X8lbbCkly2Dq1PF7e/mrsPVjw
2 changed files with 11 additions and 9 deletions

Binary file not shown.

View file

@ -1,16 +1,17 @@
#let acronyms = yaml("acronyms.yml"); #let acronyms = yaml("acronyms.yml");
#let acroStates = state("acronymStates", ()); #let acro_states = state("acronymStates", ());
#let english_pack = ( #let english_pack = (
degree_1: "for the", degree_1: "for the",
degree_2: "from the Course of Studies Computer Science", degree_2: "from the Course of Studies",
degree_3: "",
by: "by", by: "by",
time_period: "Time Period", time_period: "Time Period",
student_id_course: "Student ID, Course", student_id_course: "Student ID, Course",
company: "Company", company: "Company",
supervisor: "Supervisor in the Company", supervisor: "Supervisor in the Company",
decleration: (type, title) => [ declaration: (type, title) => [
= Author's Declaration = Author's Declaration
Hereby I solemnly declare: Hereby I solemnly declare:
@ -47,13 +48,14 @@
// TODO: Check alignment to LaTeX template // TODO: Check alignment to LaTeX template
#let german_pack = ( #let german_pack = (
degree_1: "für den", degree_1: "für den",
degree_2: "im Studiengang Informatik an der Dualen Hochschule Baden-Württemberg Stuttgart", degree_2: "im Studiengang",
degree_3: "an der Dualen Hochschule Baden-Württemberg Stuttgart",
by: "von", by: "von",
time_period: "Bearbeitungszeitraum", time_period: "Bearbeitungszeitraum",
student_id_course: "Matrikelnummer, Kurs", student_id_course: "Matrikelnummer, Kurs",
company: "Ausbildungsfirma", company: "Ausbildungsfirma",
supervisor: "Betreuer", supervisor: "Betreuer",
decleration: (type, title) => [ declaration: (type, title) => [
== Erklärung == Erklärung
Ich erkläre hiermit ehrenwörtlich: Ich erkläre hiermit ehrenwörtlich:
@ -279,7 +281,7 @@
#text(14pt)[*#degree*] #text(14pt)[*#degree*]
#text(14pt)[#selected_lang.degree_2 #major] #text(14pt)[#selected_lang.degree_2 #major #selected_lang.degree_3]
#v(32pt) #v(32pt)
#text(14pt, selected_lang.by) #text(14pt, selected_lang.by)
@ -344,7 +346,7 @@
#set align(top) #set align(top)
#set align(start) #set align(start)
#(selected_lang.decleration)(type, title) #(selected_lang.declaration)(type, title)
#v(48pt) #v(48pt)
@ -494,7 +496,7 @@
let item = acronyms.at(short) let item = acronyms.at(short)
context({ context({
let entries = acroStates.at(here()).filter(e => e == short); let entries = acro_states.at(here()).filter(e => e == short);
// Already used once // Already used once
if entries.len() > 0 { if entries.len() > 0 {
@ -505,7 +507,7 @@
} }
// First usage // First usage
} else { } else {
acroStates.update(e => {e.push(short); e;}); acro_states.update(e => {e.push(short); e;});
if pref == "short" { if pref == "short" {
link(label(short))[#short#append (#item)] link(label(short))[#short#append (#item)]
} else { } else {