feat: first draft

This commit is contained in:
Ansgar Lichter 2024-12-30 16:02:49 +01:00
commit fb3b63f05e
24 changed files with 926 additions and 0 deletions

View file

@ -0,0 +1,7 @@
#let abbreviations = (
(
key: "oidc",
short: "OIDC",
long: "Open ID Connect"
),
)

View file

@ -0,0 +1,38 @@
@book{Smith.2020,
author = {John Smith},
title = {A Comprehensive Introduction to C++},
year = {2020},
publisher = {Tech Books Publishing Ltd.},
address = {New York},
}
@book{a,
author = {John Smith},
title = {A Comprehensive Introduction to C++},
year = {2020},
publisher = {Tech Books Publishing Ltd.},
address = {New York},
}
@book{b,
author = {John Smith},
title = {A Comprehensive Introduction to C++},
year = {2020},
publisher = {Tech Books Publishing Ltd.},
address = {New York},
}
@book{c,
author = {John Smith},
title = {A Comprehensive Introduction to C++},
year = {2020},
publisher = {Tech Books Publishing Ltd.},
address = {New York},
}
@book{d,
author = {John Smith},
title = {A Comprehensive Introduction to C++},
year = {2020},
publisher = {Tech Books Publishing Ltd.},
address = {New York},
}

View file

@ -0,0 +1,68 @@
#import "@preview/unofficial-hka-thesis:1.0.0": todo, flex-caption
#import "@preview/glossarium:0.2.6": gls, glspl
= Introduction
#lorem(800)
== Motivation
#lorem(250)
#lorem(36)
#lorem(30)
=== Third Level
#lorem(550)
== Objective
#lorem(300)
This is an example citation @Smith.2020. #gls("oidc") means @oidc. @figure describes @table which is shown in @listing. Test a b c d.
#figure(
image("/figures/tiger.png", width: 80%),
caption: flex-caption(
[This is my long caption text in the document. @a],
[This is short],
)
) <figure>
#figure(
table(
columns: (1fr, auto, auto),
inset: 10pt,
align: horizon,
[], [*Area*], [*Parameters*],
"Text",
$ pi h (D^2 - d^2) / 4 $,
[
$h$: height \
$D$: outer radius \
$d$: inner radius
],
"Text",
$ sqrt(2) / 12 a^3 $,
[$a$: edge length]
),
caption: flex-caption(
[This is my long caption text in the document. @b],
[This is short],
)
) <table>
#figure(
```rust
fn main() {
println!("Hello World!");
}
```,
caption: flex-caption(
[This is my long caption text in the document. @c],
[This is short],
)
) <listing>

View file

@ -0,0 +1,8 @@
#import "@preview/unofficial-hka-thesis:1.0.0": todo, flex-caption
#import "@preview/acrostiche:0.2.0": acr, acrpl
= Foundations
This chapter describes the Foundations.
#lorem(500)

View file

@ -0,0 +1,7 @@
= Additional Material
#lorem(450)
== Subchapter
#lorem(450)

View file

@ -0,0 +1,11 @@
= Transcripts
#lorem(500)
== Interview 1
#lorem(250)
=== Details
#lorem(250)

BIN
template/figures/tiger.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 499 KiB

View file

@ -0,0 +1,15 @@
#let degree = "Master" //Bachelor or Master
#let program = "Computer Science"
#let titleEnglish = "Title English"
#let subtitleEnglish = "Subtitle English"
#let titleGerman = "Title German"
#let subtitleGerman = "Subtitle German"
#let author = "Max Mustermann"
#let matriculationNumber = "12345"
#let placeOfWork = "ABC"
#let supervisor = "Prof Dr. Max Mustermann"
#let advisor = "Prof Dr. John Doe"
#let startDate = "01.03.2024"
#let submissionDate = "31.08.2024"
#let submissionDateExposé = "29.02.2024"
#let place = "Karlsruhe"

View file

@ -0,0 +1,24 @@
#let settings = (
fontBody: "New Computer Modern",
fontBodySize: 12pt,
fontFiguresSubtitleSize: 0.85em,
// At the moment only used on the title page
fontHeading: "New Computer Modern Sans",
fontHeadingSize: 16pt,
headingsNumberingStyle: "1.1.",
headingsSpacing: (
below: 0.85em,
above: 1.75em
),
citationStyle: "ieee",
spaceBeforeParagraph: 24pt,
distanceBetweenLines: 1em,
listIndentation: 2.5em,
pageMargins: (
top: 4cm,
bottom: 2.5cm,
left: 2.5cm,
right: 2.5cm
),
)

View file

@ -0,0 +1,5 @@
#import "@preview/unofficial-hka-thesis:1.0.0": todo, flex-caption
#heading(outlined: false, numbering: none, "Abstract")
#todo("Abstract")

View file

@ -0,0 +1,5 @@
#import "@preview/unofficial-hka-thesis:1.0.0": todo, flex-caption
#heading(outlined: false, numbering: none, "Zusammenfassung")
#todo("Abstract")

View file

@ -0,0 +1,20 @@
#import "../settings/metadata.typ": *
#heading(outlined: false, numbering: none, "Declaration of Originality")
I declare that I have composed the #lower(degree)'s thesis myself and without use of any other than the cited sources and aids. Sentences or parts of sentences quoted literally are marked as such; other references with regard to the statement and scope are indicated by full details of the publications concerned. The thesis in the same or similar form has not been submitted to any examination body and has not been published. This thesis was not yet, even in part, used in another examination or as a course performance. Furthermore I declare that the submitted written (bound) copies of the #lower(degree)'s thesis and the version submitted in digital format are consistent with each other in contents.
#pad(
top: 5em,
table(
columns: (1fr, 1fr),
gutter: 1em,
align: center,
stroke: none,
inset: (
x: 20pt
),
line(length: 100%), line(length: 100%),
[(Place, Date)], author,
)
)

58
template/thesis.typ Normal file
View file

@ -0,0 +1,58 @@
#import "@preview/unofficial-hka-thesis:1.0.0": *
#import "abbreviations.typ": abbreviations
#import "settings/metadata.typ": *
#import "settings/settings.typ": *
#import "@preview/glossarium:0.5.1": make-glossary
#show: make-glossary
#preface(
settings: settings,
degree: degree,
program: program,
title: titleEnglish,
subtitle: subtitleEnglish,
author: author,
matriculationNumber: matriculationNumber,
placeOfWork: placeOfWork,
supervisor: supervisor,
advisor: advisor,
startDate: startDate,
submissionDate: submissionDate,
)
// Citations - applied here so that you are able to use a local CSL file to define the citation style
#set cite(style: settings.citationStyle)
// Statutory Declaration
#include "supplementary/statutoryDeclaration.typ"
#pagebreak()
// Abstract
#include "supplementary/abstract.typ"
#pagebreak()
// Abstract German
#include "supplementary/abstractGerman.typ"
#pagebreak()
#listings(abbreviations: abbreviations)
#show: mainBody.with(
settings: settings
)
#include "chapters/1_introduction.typ"
#include "chapters/2_foundations.typ"
//Bibliography
#pagebreak()
#bibliography("bibliography/thesis.bib")
//Appendix
#appendix()[
#include "chapters/A1_Material.typ"
#include "chapters/A2_Transcripts.typ"
]