initial commit

This commit is contained in:
2021-10-15 16:01:26 +02:00
commit a201c7d911
23 changed files with 3052 additions and 0 deletions

20
bib.bib Normal file
View File

@@ -0,0 +1,20 @@
@IEEEtranBSTCTL{IEEEexample:BSTcontrol,
CTLuse_forced_etal = "yes",
CTLmax_names_forced_etal = "3",
CTLnames_show_etal = "2"
}
@book{InfH,
address = {M\"{u}nchen -- Wien},
author = {Rechenberg, Peter and Pomberger, Gustav and Blaschek, G\"{u}nther and Bode, Arndt and Bohn, Wilhelm Friedrich and Borrmann, Lothar and Buchberger, Bruno},
edition = {4th},
publisher = {Hanser Verlag},
title = {{Informatik Handbuch}},
year = {2006}
}
@misc{APCW2006,
note = {letzter Zugriff am 23.05.2021},
author = {{Association for Progressive Communications}},
title = {{Wireless technology is irreplaceable for providing access in remote and scarcely populated regions}},
url = {http://www.apc.org/en/news/strategic/world/wireless-technology-irreplaceable-providing-access},
year = {2006}
}

12
glossary.tex Normal file
View File

@@ -0,0 +1,12 @@
\newacronym{guid}{GUID}{Globally Unique Identifier}
\newacronym{jit}{JIT}{Just In Time Compiler}
\newacronym{nfc}{NFC}{Near Field Communication}
\newacronym{rfid}{RFID}{Radio Frequency Identification}
% Usage:
% \gls{label} lowercase in text
% \Gls{label} Uppercase in text
% \newacronym{label}{abbrev}{full}
% \newglossaryentry{label}{settings}

154
header.tex Normal file
View File

@@ -0,0 +1,154 @@
\documentclass[12pt,a4paper,titlepage,listof=totoc,bibliography=totoc,chapteratlists=0pt]{scrreprt}
\begin{filecontents*}{\jobname.xmpdata}
\Keywords{VR, IOT, TODO}
\Title{Unser tolles Thema -- wir sind suppa}
\Author{Stefan Schwammal, Susi Schwammal}
\end{filecontents*}
\setcounter{tocdepth}{1}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[table]{xcolor}
\usepackage{graphicx}
\usepackage[left=3.50cm, right=2.00cm, top=2.00cm, bottom=2.00cm,foot=1cm]{geometry}
\usepackage[splitrule,hang,flushmargin,multiple,bottom]{footmisc}
\usepackage{lmodern, textcomp}
\usepackage{lmodern}
\usepackage{pdfpages}
\usepackage[ngerman]{babel}
\usepackage{multicol}
\usepackage{subfig}
\usepackage{float}
\usepackage{array,tabularx,booktabs}
\usepackage{ragged2e}
\usepackage{lipsum}
\usepackage{wrapfig}
\newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}}
\usepackage{enumitem}
\newlist{compactitem}{itemize}{3}
\setlist[compactitem,1]{label=\textbullet, nosep,leftmargin=1.5em,labelwidth=*,align=left}
\setlist[compactitem,2]{label=--, nosep,leftmargin=1.5em,labelwidth=*,align=left}
\setlist[compactitem,3]{label=\textopenbullet, nosep,leftmargin=1.5em,labelwidth=*,align=left}
\newlist{compactenum}{enumerate}{3}
\setlist[compactenum,1]{label=\arabic*., nosep,leftmargin=1.5em,labelwidth=*,align=left}
\setlist[compactenum,2]{label=\alph*., nosep,leftmargin=1.5em,labelwidth=*,align=left}
\setlist[compactenum,3]{label=\roman*., nosep,leftmargin=1.5em,labelwidth=*,align=left}
\newlist{compactdesc}{description}{3}
\setlist[compactdesc]{leftmargin=1.5em,labelwidth=*,align=left}
\usepackage{microtype}
\usepackage[parfill]{parskip}
\definecolor{bluekeywords}{rgb}{0.13,0.13,1}
\definecolor{greencomments}{rgb}{0,0.5,0}
\definecolor{redstrings}{rgb}{0.9,0,0}
\definecolor{lightgray}{gray}{0.9}
\definecolor{lightblue}{rgb}{0.93,0.95,1.0}
\usepackage{listings}
\makeatletter
\lstdefinestyle{lststyle}{
basicstyle=%
\ttfamily
\lst@ifdisplaystyle\scriptsize\fi
}
\makeatother
\renewcommand{\lstlistlistingname}{List of Listings}
% TODO: define other languages as needed
\lstset{language=Python,
numbers=left,
numberstyle=\tiny,
showspaces=false,
showtabs=false,
breaklines=true,
lineskip=-1pt,
tabsize=2,
showstringspaces=false,
breakatwhitespace=true,
escapeinside={(*@}{@*)},
commentstyle=\color{greencomments},
keywordstyle=\color{bluekeywords}\bfseries,
stringstyle=\color{redstrings},
style=lststyle,
xleftmargin=17pt,
framexleftmargin=17pt,
framexrightmargin=5pt,
framexbottommargin=4pt
}
\lstset{
morekeywords={base,var,in,out,dynamic,from,where,select,orderby,function,\$,group,by,into,yield,async,await,@,None,self,as,elif,with}
}
\lstdefinelanguage{TypeScript}{
keywords={typeof, new, true, false, catch, function, return, null, switch, var, if, in, while, do, else, case, break, void, number, string, boolean, module, \$, export, for, this},
keywordstyle=\color{blue}\bfseries,
ndkeywords={class, export, boolean, throw, implements, import, this},
ndkeywordstyle=\color{darkgray}\bfseries,
identifierstyle=\color{black},
sensitive=false,
comment=[l]{//},
morecomment=[s]{/*}{*/},
commentstyle=\color{purple}\ttfamily,
stringstyle=\color{red}\ttfamily,
morestring=[b]',
morestring=[b]"
}
\usepackage{caption}
\DeclareCaptionFont{white}{\color{white}}
\DeclareCaptionFormat{listing}{\colorbox[cmyk]{0.43, 0.35, 0.35,0.01}{\parbox{\textwidth}{\hspace{10pt}#1#2#3}}}
\captionsetup[lstlisting]{format=listing,labelfont=white,textfont=white}
\captionsetup[table]{justification=centering, singlelinecheck=false}
\usepackage{setspace}
\newcommand{\MSonehalfspacing}{%
\setstretch{1.44}% default
\ifcase \@ptsize \relax % 10pt
\setstretch {1.448}%
\or % 11pt
\setstretch {1.399}%
\or % 12pt
\setstretch {1.433}%
\fi
}
\newcommand{\setauthor}[1]{\ohead[]{#1}}
\usepackage[automark]{scrlayer-scrpage}
\pagestyle{scrheadings}
\automark{chapter}
\renewcommand\sectionmark[1]{\markright{\MakeMarkcase {\thesection\hskip .5em\relax#1}}}
\rohead{\ifnum\expandafter\pdfstrcmp\botmark=0 \rightmark\else\leftmark{} --- \rightmark\fi}
\ihead[]{\headmark}
\chead[]{}
\ohead{}
\cfoot[]{}
\ofoot[\pagemark]{\pagemark}
\setheadsepline{.1pt}
\usepackage[hyphens]{url}
\usepackage[a-1b]{pdfx}
\usepackage{hyperref}
\hypersetup{pdfa}
\usepackage[nonumberlist,toc,nopostdot]{glossaries}
\usepackage{chngcntr}
\counterwithout{footnote}{chapter}
\counterwithout{figure}{chapter}
\counterwithout{table}{chapter}
\AtBeginDocument{
\counterwithout{lstlisting}{chapter}
\urlstyle{sf}
}
\newcounter{RPages}

2428
ieeetrande.bst Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,65 @@
:sectnums:
= LaTeX Workshop & Glossary
These steps describe hwo to enable LaTeX Workshop to generate a proper glossary.
== Open Settings
Open the `settings.json` file at the LaTeX Workshop extension position.
This is done easiest following these steps:
. File -> Preferences -> Settings
. In 'Search setting' input 'recipe'
** The list gets filtered down considerably
. Look for these two entries:
** Latex-workshop > Latex: Recipes
** Latex-workshop > Latex: Tools
Both entries have a `edit in settings.json` link, pressing it will bring you directly to the correct section in the `settings.json`.
Use that for the next two steps.
== Add tool
To generate the glossary entries an external tool called `makeglossaries` is required.
This tool has already been installed automatically by installing the `glossaries` package defined in the `header.tex` file.
Now we need to teach LaTeX Workshop about its existence.
Add the following tool definition to the `latex-workshop.latex.tools` array:
[source,json]
----
{
"name": "makeglossaries",
"command": "makeglossaries",
"args": [
"%DOCFILE%"
],
"env": {}
}
----
== Add recipe
Similar to `bibtex` generating glossaries is a little cumbersome.
You don't have to run this every time you build the document, but every time you want the glossary to be updated properly (so at least run it before reviews).
We will define a recipe to do this job (running `pdflatex` thrice is _not_ a typo!).
Add the following recipe definition to the `latex-workshop.latex.recipes` array:
[source,json]
----
{
"name": "pdflatex + makeglossaries",
"tools": [
"pdflatex",
"makeglossaries",
"pdflatex",
"pdflatex"
]
}
----
== Restart VS Code
Restarting is the easiest, and most robust way to properly load the new settings into the UI.

18
oath.tex Normal file
View File

@@ -0,0 +1,18 @@
\thispagestyle{empty}
\vspace{3cm}
~ \\ \\
Ich erkläre an Eides statt, dass ich die vorliegende Diplomarbeit selbstständig und ohne fremde Hilfe verfasst, andere als die angegebenen Quellen und Hilfsmittel nicht benutzt bzw. die wörtlich oder sinngemäß entnommenen Stellen als solche kenntlich gemacht habe.
Die Arbeit wurde bisher in gleicher oder ähnlicher Weise keiner anderen Prüfungsbehörde vorgelegt und auch noch nicht veröffentlicht.
Die vorliegende Diplomarbeit ist mit dem elektronisch übermittelten Textdokument identisch.
\vspace{3cm}
% Hier kommt die Unterschrift drüber
\begin{tabbing}
Leonding, April 2022 \hspace{5cm} S. Schwammal \& S. Schwammal
\end{tabbing}
\vspace{10cm}
Zur Verbesserung der Lesbarkeit wurde in diesem Dokument auf eine geschlechtsneutrale Ausdrucksweise verzichtet.
Alle verwendeten Formulierungen richten sich jedoch an beide Geschlechter.
\newpage
\setcounter{page}{1}

BIN
pics/knuthi.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

BIN
pics/question_mark.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

5
readme.md Normal file
View File

@@ -0,0 +1,5 @@
# HTL Leonding Diploma Thesis Template
Used by students to create their diploma thesis.
![HTBLA Leonding](titlepage/htlleondinglogo.png)

28
sections/abstract.tex Normal file
View File

@@ -0,0 +1,28 @@
\begin{spacing}{1}
\chapter*{Abstract}
\end{spacing}
\begin{wrapfigure}{r}{0.3\textwidth}
\begin{center}
\includegraphics[width=0.2\textwidth]{pics/question_mark.png}
\end{center}
\end{wrapfigure}
Brief summary of our amazing work. In English.
This is the only time we have to include a picture within the text.
The picture should somehow represent your thesis.
This is untypical for scientific work but required by the powers that are.
\lipsum[6]
\newpage
\begin{spacing}{1}
\chapter*{Zusammenfassung}
\end{spacing}
\begin{wrapfigure}{r}{0.3\textwidth}
\begin{center}
\includegraphics[width=0.2\textwidth]{pics/question_mark.png}
\end{center}
\end{wrapfigure}
Zusammenfassung unserer genialen Arbeit. Auf Deutsch.
Das ist das einzige Mal, dass eine Grafik in den Textfluss eingebunden wird.
Die gewählte Grafik soll irgendwie eure Arbeit repräsentieren.
Das ist ungewöhnlich für eine wissenschaftliche Arbeit aber eine Anforderung der Obrigkeit.
\emph{Bitte auf keinen Fall mit der Zusammenfassung verwechseln, die den Abschluss der Arbeit bildet!}
\lipsum[6]

0
sections/appendix.tex Normal file
View File

View File

@@ -0,0 +1,40 @@
Siehe tolle Daten in Tab. \ref{tab:impl:data}.
\begin{table}
\centering
\begin{tabular}{|lcc|}
\hline
& \textbf{Regular Customers} & \textbf{Random Customers} \\ \hline
Age & 20-40 & \textgreater{}60 \\ \hline
Education & university & high school \\ \hline
\end{tabular}
\caption{Ein paar tabellarische Daten}
\label{tab:impl:data}
\end{table}
\begin{figure}
\centering
\includegraphics[scale=0.5]{pics/knuthi.jpg}
\caption{Don Knuth -- CS Allfather}
\label{fig:impl:knuth}
\end{figure}
Siehe und staune in Abb. \ref{fig:impl:knuth}.
\lipsum[6-9]
Dann betrachte den Code in Listing \ref{lst:impl:foo}.
\begin{lstlisting}[language=Python,caption=Some code,label=lst:impl:foo]
# Program to find the sum of all numbers stored in a list (the not-Pythonic-way)
# List of numbers
numbers = [6, 5, 3, 8, 4, 2, 5, 4, 11]
# variable to store the sum
sum = 0
# iterate over the list
for val in numbers:
sum = sum+val
print("The sum is", sum)
\end{lstlisting}

View File

@@ -0,0 +1 @@
\lipsum[2-3]

View File

@@ -0,0 +1,6 @@
\lipsum[4] Citing \cite{InfH} properly.
Was ist eine \gls{guid}?
Eine \gls{guid} kollidiert nicht gerne.
Kabellose Technologien sind in abgelegenen Gebieten wichtig \cite{APCW2006}.

31
sections/summary.tex Normal file
View File

@@ -0,0 +1,31 @@
Aufzählungen:
\begin{compactitem}
\item Itemize Level 1
\begin{compactitem}
\item Itemize Level 2
\begin{compactitem}
\item Itemize Level 3 (vermeiden)
\end{compactitem}
\end{compactitem}
\end{compactitem}
\begin{compactenum}
\item Enumerate Level 1
\begin{compactenum}
\item Enumerate Level 2
\begin{compactenum}
\item Enumerate Level 3 (vermeiden)
\end{compactenum}
\end{compactenum}
\end{compactenum}
\begin{compactdesc}
\item[Desc] Level 1
\begin{compactdesc}
\item[Desc] Level 2 (vermeiden)
\begin{compactdesc}
\item[Desc] Level 3 (vermeiden)
\end{compactdesc}
\end{compactdesc}
\end{compactdesc}

13
sections/technologies.tex Normal file
View File

@@ -0,0 +1,13 @@
\section{Foo}
\setauthor{Stefan Schwammal}
\lipsum[5-12]
\section{Bar}
\setauthor{Susi Schwammal}
\lipsum[12-18]
\subsection{Deeper}
Nicht mehr im Inhaltsverzeichnis.
\subsubsection{Deepest}
Vermeide mich.

31
thesis.ist Normal file
View File

@@ -0,0 +1,31 @@
% makeindex style file created by the glossaries package
% for document 'thesis' on 2021-9-11
actual '?'
encap '|'
level '!'
quote '"'
keyword "\\glossaryentry"
preamble "\\glossarysection[\\glossarytoctitle]{\\glossarytitle}\\glossarypreamble\n\\begin{theglossary}\\glossaryheader\n"
postamble "\%\n\\end{theglossary}\\glossarypostamble\n"
group_skip "\\glsgroupskip\n"
item_0 "\%\n"
item_1 "\%\n"
item_2 "\%\n"
item_01 "\%\n"
item_x1 "\\relax \\glsresetentrylist\n"
item_12 "\%\n"
item_x2 "\\relax \\glsresetentrylist\n"
delim_0 "\{\\glossaryentrynumbers\{\\relax "
delim_1 "\{\\glossaryentrynumbers\{\\relax "
delim_2 "\{\\glossaryentrynumbers\{\\relax "
delim_t "\}\}"
delim_n "\\delimN "
delim_r "\\delimR "
headings_flag 1
heading_prefix "\\glsgroupheading\{"
heading_suffix "\}\\relax \\glsresetentrylist "
symhead_positive "glssymbols"
numhead_positive "glsnumbers"
page_compositor "."
suffix_2p ""
suffix_3p ""

BIN
thesis.pdf Normal file

Binary file not shown.

93
thesis.tex Normal file
View File

@@ -0,0 +1,93 @@
\input{header}
\makeatletter
\def\bstctlcite{\@ifnextchar[{\@bstctlcite}{\@bstctlcite[@auxout]}}
\def\@bstctlcite[#1]#2{\@bsphack
\@for\@citeb:=#2\do{%
\edef\@citeb{\expandafter\@firstofone\@citeb}%
\if@filesw\immediate\write\csname #1\endcsname{\string\citation{\@citeb}}\fi}%
\@esphack}
\makeatother
\clubpenalty=10000
\widowpenalty=10000
\displaywidowpenalty=10000
\interfootnotelinepenalty=10000
\title{Unser tolles Thema -- wir sind suppa}
\author{Stefan Schwammal, Susi Schwammal}
\makeindex
\makeglossaries
\begin{document}
\bstctlcite{IEEEexample:BSTcontrol}
\newcommand{\reminder}[1]
{ \textcolor{red}{<[{\bf\marginpar{\mbox{$<==$}} #1 }]>} }
\newcommand{\icode}[1]{\lstinline$#1$}
%\urlstyle{same}
%\setstretch{1.5}
\setstretch {1.433}
\renewcommand{\arraystretch}{1.2}
\includepdf{./titlepage/coversheet}
\pagenumbering{Roman}
\newpage
\input{oath}
\input{./sections/abstract}
\pagestyle{plain}
\renewcommand{\lstlistlistingname}{Quellcodeverzeichnis}
\tableofcontents
\newpage
\setcounter{RPages}{\value{page}}
\setcounter{page}{0}
\pagenumbering{arabic}
\pagestyle{scrheadings}
\begin{spacing}{1}
\chapter{Einleitung}\label{chapter:introduction}
\end{spacing}
\input{./sections/introduction}
\begin{spacing}{1}
\chapter{Umfeldanalyse}
\end{spacing}
\input{./sections/related_work}
\begin{spacing}{1}
\chapter{Technologien}\label{chapter:tech}
\end{spacing}
\input{./sections/technologies}
\begin{spacing}{1}
\chapter{Umsetzung}\label{chapter:implementation}
\end{spacing}
\input{./sections/implementation}
\begin{spacing}{1}
\chapter{Zusammenfassung}
\end{spacing}
\input{./sections/summary}
\newpage
\pagenumbering{Roman}
\setcounter{page}{\value{RPages}}
\input{glossary}
%\setlength{\glsdescwidth}{0.8\linewidth}
\glsnogroupskiptrue
\printglossary[title=Glossar,toctitle=Glossar] %,style=long]
\spacing{1}{
%\bibliographystyle{IEEEtran}
\bibliographystyle{ieeetrande}
\bibliography{bib}
}
\listoffigures
\listoftables
\lstlistoflistings
\appendix
\addchap{Anhang}
\input{./sections/appendix}
\end{document}

3
thesis.xmpdata Normal file
View File

@@ -0,0 +1,3 @@
\Keywords{VR, IOT, TODO}
\Title{Unser tolles Thema -- wir sind suppa}
\Author{Stefan Schwammal, Susi Schwammal}

BIN
titlepage/coversheet.pdf Normal file

Binary file not shown.

104
titlepage/coversheet.tex Normal file
View File

@@ -0,0 +1,104 @@
%% erstellt von Andreas Neubauer, Juli 2009
%% aktualisiert von Markus Haslinger, Mai 2021
\documentclass[12pt,a4paper]{article}
\usepackage{graphicx,color}
\textwidth 16cm
\textheight 25cm
\topmargin 3.2cm
\oddsidemargin 0mm
\parindent 0pt
\usepackage[utf8]{inputenc}
\usepackage[a-1b]{pdfx}
\pagestyle{empty}
\begin{document}
% -------- only change entries beginning here ----------------------------
%
% enter the title of the thesis
\def\title{Unser tolles Thema -- wir sind genial}
%
\def\type{DIPLOMARBEIT}
\def\degree{Reife- und Diplomprüfung}
%
% enter the department
%
\def\dep{Höheren Abteilung für Informatik}
%
% enter the student names
%
\def\nameone{Stefan Schwammal}
\def\nametwo{Susi Schwammal}
%\def\namethree{Sebastian Schwammal}
%\def\namefour{Sabine Schwammal}
%
% enter the name of the supervisor
%
\def\firstreferee{Lukas Lehrer}
%
% enter information about external partners or comment the line
%
\def\assist{Peter Programmierer, Initech Inc.}
%
% enter month and year
\def\date{April 2022}
%
% the vertical alignment heavily depends on the length of the title and number of students
% below you might add additional space via (several) \medskip or \bigskip.
% do not change anything else
% -------------------------------------------------------------------------------
%
\def\ifundefined#1{\expandafter\ifx\csname#1\endcsname\relax}
%
\unitlength 1cm
\definecolor{mygray}{gray}{.85}
\sffamily
\begin{picture}(0,0)
\put(-2.6,5){\color{mygray}\rule{25cm}{2.6cm}}
\put(12.8,5.15){\small LEONDING}
\put(14.96,5.15){\small --}
\put(15.345,5.15){\small AUSTRIA}
\put(12.8,5.5){\small BUNDESLEHRANSTALT}
\put(12.8,5.85){\small HÖHERE}
\put(14.58,5.85){\small TECHNISCHE}
\put(0.35,5.25){\includegraphics[width=6cm]{htlleondinglogo.png}}
\end{picture}
%
\begin{center}
\vspace{-2cm}
{\LARGE\bfseries\title}
\bigskip\bigskip\bigskip\par
{\Large\type}
\bigskip\par
verfasst im Rahmen der
\bigskip\smallskip\par
{\Large\degree}
\bigskip\par
an der
\bigskip\smallskip\par
{\Large\dep}
\end{center}
\vspace*{4cm}
Eingereicht von:
\smallskip\par
{\large\nameone}\par
{\large\nametwo}
\ifundefined{namethree}\else
\par{\large\namethree}
\fi
\ifundefined{namefour}\else
\par{\large\namefour}
\fi
\medskip\bigskip\par
Betreuer:
\smallskip\par
{\large\firstreferee}
\ifundefined{assist}\else
\medskip\bigskip\par
Projektpartner:
\smallskip\par
{\large{\assist}}
\fi
\vspace*{4cm}
{\large Leonding, \date}
\end{document}

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB