chore: use kebab case consistently
This commit is contained in:
parent
e6bbc33900
commit
d15ccc4a15
5 changed files with 25 additions and 25 deletions
2
lib.typ
2
lib.typ
|
|
@ -115,7 +115,7 @@
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
#let mainBody(
|
#let main-body(
|
||||||
settings: (),
|
settings: (),
|
||||||
body
|
body
|
||||||
) = {
|
) = {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#let openTitlePage(settings: ()) = {
|
#let open-title-page(settings: ()) = {
|
||||||
set page(
|
set page(
|
||||||
paper: "a4",
|
paper: "a4",
|
||||||
margin: (left: 30mm, right: 30mm, top: 40mm, bottom: 40mm),
|
margin: (left: 30mm, right: 30mm, top: 40mm, bottom: 40mm),
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
set par(leading: 1em)
|
set par(leading: 1em)
|
||||||
}
|
}
|
||||||
|
|
||||||
#let finishTitlePage(
|
#let finish-title-page(
|
||||||
settings: (),
|
settings: (),
|
||||||
degree: "",
|
degree: "",
|
||||||
program: "",
|
program: "",
|
||||||
|
|
@ -29,37 +29,37 @@
|
||||||
place-of-work: "",
|
place-of-work: "",
|
||||||
supervisor: "",
|
supervisor: "",
|
||||||
advisor: "",
|
advisor: "",
|
||||||
startDate: none,
|
start-date: none,
|
||||||
submission-date: none,
|
submission-date: none,
|
||||||
) = {
|
) = {
|
||||||
|
|
||||||
v(5mm)
|
v(5mm)
|
||||||
align(center, text(font: settings.fontHeading, 1.9em, weight: 700, "University of Applied Sciences Karlsruhe"))
|
align(center, text(font: settings.font-heading, 1.9em, weight: 700, "University of Applied Sciences Karlsruhe"))
|
||||||
|
|
||||||
v(15mm)
|
v(15mm)
|
||||||
|
|
||||||
align(center, text(font: settings.fontHeading, 1.5em, weight: 100, degree + "’s Thesis in " + program))
|
align(center, text(font: settings.font-heading, 1.5em, weight: 100, degree + "’s Thesis in " + program))
|
||||||
v(8mm)
|
v(8mm)
|
||||||
|
|
||||||
if title-german.len() > 0 {
|
if title-german.len() > 0 {
|
||||||
if subtitle.len() > 0 or subtitle-german.len() > 0 {
|
if subtitle.len() > 0 or subtitle-german.len() > 0 {
|
||||||
align(center, text(font: settings.fontHeading, 1.2em, weight: 700, title))
|
align(center, text(font: settings.font-heading, 1.2em, weight: 700, title))
|
||||||
align(center, text(font: settings.fontHeading, 1.2em, weight: 500, subtitle))
|
align(center, text(font: settings.font-heading, 1.2em, weight: 500, subtitle))
|
||||||
v(10mm)
|
v(10mm)
|
||||||
align(center, text(font: settings.fontHeading, 1.2em, weight: 700, title-german))
|
align(center, text(font: settings.font-heading, 1.2em, weight: 700, title-german))
|
||||||
align(center, text(font: settings.fontHeading, 1.2em, weight: 500, subtitle-german))
|
align(center, text(font: settings.font-heading, 1.2em, weight: 500, subtitle-german))
|
||||||
} else {
|
} else {
|
||||||
align(center, text(font: settings.fontHeading, 1.4em, weight: 700, title))
|
align(center, text(font: settings.font-heading, 1.4em, weight: 700, title))
|
||||||
v(10mm)
|
v(10mm)
|
||||||
align(center, text(font: settings.fontHeading, 1.4em, weight: 700, title-german))
|
align(center, text(font: settings.font-heading, 1.4em, weight: 700, title-german))
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if subtitle.len() > 0 {
|
if subtitle.len() > 0 {
|
||||||
align(center, text(font: settings.fontHeading, 1.8em, weight: 700, title))
|
align(center, text(font: settings.font-heading, 1.8em, weight: 700, title))
|
||||||
v(5mm)
|
v(5mm)
|
||||||
align(center, text(font: settings.fontHeading, 1.4em, weight: 500, subtitle))
|
align(center, text(font: settings.font-heading, 1.4em, weight: 500, subtitle))
|
||||||
} else {
|
} else {
|
||||||
align(center, text(font: settings.fontHeading, 2.0em, weight: 700, title))
|
align(center, text(font: settings.font-heading, 2.0em, weight: 700, title))
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -77,7 +77,7 @@
|
||||||
strong("Place of Work: "), place-of-work,
|
strong("Place of Work: "), place-of-work,
|
||||||
strong("Supervisor: "), supervisor,
|
strong("Supervisor: "), supervisor,
|
||||||
strong("Advisor: "), advisor,
|
strong("Advisor: "), advisor,
|
||||||
strong("Start Date: "), startDate,
|
strong("Start Date: "), start-date,
|
||||||
strong("Submission Date: "), submission-date,
|
strong("Submission Date: "), submission-date,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
@ -93,7 +93,7 @@
|
||||||
strong("Matriculation Number: "), matriculation-number,
|
strong("Matriculation Number: "), matriculation-number,
|
||||||
strong("Place of Work: "), place-of-work,
|
strong("Place of Work: "), place-of-work,
|
||||||
strong("Supervisor: "), supervisor,
|
strong("Supervisor: "), supervisor,
|
||||||
strong("Start Date: "), startDate,
|
strong("Start Date: "), start-date,
|
||||||
strong("Submission Date: "), submission-date,
|
strong("Submission Date: "), submission-date,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,6 @@
|
||||||
#let place-of-work = "ABC"
|
#let place-of-work = "ABC"
|
||||||
#let supervisor = "Prof Dr. Max Mustermann"
|
#let supervisor = "Prof Dr. Max Mustermann"
|
||||||
#let advisor = "Prof Dr. John Doe"
|
#let advisor = "Prof Dr. John Doe"
|
||||||
#let startDate = "01.03.2024"
|
#let start-date = "01.03.2024"
|
||||||
#let submission-date = "31.08.2024"
|
#let submission-date = "31.08.2024"
|
||||||
#let place = "Karlsruhe"
|
#let place = "Karlsruhe"
|
||||||
|
|
@ -3,14 +3,14 @@
|
||||||
font-body-size: 12pt,
|
font-body-size: 12pt,
|
||||||
font-figures-subtitle-size: 0.85em,
|
font-figures-subtitle-size: 0.85em,
|
||||||
// At the moment only used on the title page
|
// At the moment only used on the title page
|
||||||
fontHeading: "New Computer Modern Sans",
|
font-heading: "New Computer Modern Sans",
|
||||||
font-heading-size: 16pt,
|
font-heading-size: 16pt,
|
||||||
headings-numbering-style: "1.1.",
|
headings-numbering-style: "1.1.",
|
||||||
headings-spacing: (
|
headings-spacing: (
|
||||||
below: 0.85em,
|
below: 0.85em,
|
||||||
above: 1.75em
|
above: 1.75em
|
||||||
),
|
),
|
||||||
citationStyle: "ieee",
|
citation-style: "ieee",
|
||||||
space-before-paragraph: 24pt,
|
space-before-paragraph: 24pt,
|
||||||
distance-between-lines: 1em,
|
distance-between-lines: 1em,
|
||||||
list-indentation: 2.5em,
|
list-indentation: 2.5em,
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
#show: make-glossary
|
#show: make-glossary
|
||||||
|
|
||||||
#set document(title: title-english, author: author)
|
#set document(title: title-english, author: author)
|
||||||
#openTitlePage(settings: settings)
|
#open-title-page(settings: settings)
|
||||||
// Customize your company logo or just use the one from the university
|
// Customize your company logo or just use the one from the university
|
||||||
#grid(
|
#grid(
|
||||||
columns: (1fr, 1fr),
|
columns: (1fr, 1fr),
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
#finishTitlePage(
|
#finish-title-page(
|
||||||
settings: settings,
|
settings: settings,
|
||||||
degree: degree,
|
degree: degree,
|
||||||
program: program,
|
program: program,
|
||||||
|
|
@ -30,14 +30,14 @@
|
||||||
place-of-work: place-of-work,
|
place-of-work: place-of-work,
|
||||||
supervisor: supervisor,
|
supervisor: supervisor,
|
||||||
advisor: advisor,
|
advisor: advisor,
|
||||||
startDate: startDate,
|
start-date: start-date,
|
||||||
submission-date: submission-date,
|
submission-date: submission-date,
|
||||||
)
|
)
|
||||||
|
|
||||||
#preface(settings: settings)
|
#preface(settings: settings)
|
||||||
|
|
||||||
// Citations - applied here so that you are able to use a local CSL file to define the citation style
|
// Citations - applied here so that you are able to use a local CSL file to define the citation style
|
||||||
#set cite(style: settings.citationStyle)
|
#set cite(style: settings.citation-style)
|
||||||
|
|
||||||
// Statutory Declaration
|
// Statutory Declaration
|
||||||
#include "supplementary/statutoryDeclaration.typ"
|
#include "supplementary/statutoryDeclaration.typ"
|
||||||
|
|
@ -53,7 +53,7 @@
|
||||||
|
|
||||||
#listings(abbreviations: abbreviations)
|
#listings(abbreviations: abbreviations)
|
||||||
|
|
||||||
#show: mainBody.with(
|
#show: main-body.with(
|
||||||
settings: settings
|
settings: settings
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue