Updated LaTeX template

This commit is contained in:
Leonetienne 2022-01-02 15:19:25 +01:00
parent 0599c3b9a6
commit 802f178f92
26 changed files with 262 additions and 76 deletions

View File

@ -1,19 +0,0 @@
%
% Quellenverzeichnis
%
\begin{thebibliography}{defaultmarken}
%
%
\bibitem[Swe21]{bib:sicherheit-fuer-tcpip} {
\bibformat
{Wenzel, S., Wenzel, S.} % Author(s)
{IT-Sicherheit für TCP/IP- und IoT-Netzwerke} % Publication title
{Worms} % Publication city
{Springer Verlag} % Publisher
{2021} % Publication date
{}
}
%
%
\end{thebibliography}

View File

@ -1,4 +1,5 @@
pdflatex -interaction errorstopmode -halt-on-error main.tex # Generate table of contents (ToC) pdflatex -interaction errorstopmode -halt-on-error main.tex # Generate table of contents (ToC)
bibtex main.aux # Build bibliography
pdflatex -interaction errorstopmode -halt-on-error main.tex # Generate ToC page indices taking account the new ToC file pdflatex -interaction errorstopmode -halt-on-error main.tex # Generate ToC page indices taking account the new ToC file
pdflatex -interaction errorstopmode -halt-on-error main.tex # Generate PDF with new ToC pdflatex -interaction errorstopmode -halt-on-error main.tex # Generate PDF with new ToC

56
config.tex Normal file
View File

@ -0,0 +1,56 @@
%
% Project configuration
%
% Document title
\newcommand{\cfgDocTitle}{Eine wissenschaftliche Arbeit}
\newcommand{\cfgDocSubTitle}{Mit LaTeX}
% Document classification
\newcommand{\cfgDocClassification}{Hausarbeit}
% Document version
\newcommand{\cfgDocVersion}{1.0}
% Last modification date
\newcommand{\cfgDateLastModification}{15. November 2021}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Author name
\newcommand{\cfgAuthorName}{Mux Mastermann}
% Author matriculation number
\newcommand{\cfgAuthorMatriculationNum}{696969\_CHANE\_THAT!!}
% Author contact
\newcommand{\cfgAuthorContact}{mux@hotmail.com}
% Author city
\newcommand{\cfgAuthorCity}{Worms}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% University city
\newcommand{\cfgUniversityCity}{Worms}
% University name
\newcommand{\cfgUniversityName}{Hochschule \cfgUniversityCity}
% University department
\newcommand{\cfgUniversityDepartment}{Fachbereich Informatik}
% University degree course
\newcommand{\cfgUniversityDegreeCourse}{Angewandte Informatik - dual (B.Sc)}
% University supervisor name
\newcommand{\cfgUniversitySupervisorName}{Michael D.Werle-Rutter}
% Semester year
\newcommand{\cfgSemesterYear}{2021/22}
% Semester name
\newcommand{\cfgSemesterName}{Wintersemester \cfgSemesterYear}
% University course name
\newcommand{\cfgCourseName}{Wissenschaftliches Arbeiten}

8
dexes/bibdex.tex Normal file
View File

@ -0,0 +1,8 @@
%
% Literaturverzeichnis
%
\nocite{*} % Show all references, even unused ones
\bibliography{dexes/literature}
\bibliographystyle{apalike}

11
dexes/glossarydex.tex Normal file
View File

@ -0,0 +1,11 @@
%
% Glossar:
%
\chapter{Glossar}
\begin{description}
\item [Abschlusspunkt-Linientechnik] \hfill \\
\enquote{Am Abschlusspunkt-Linientechnik endet das vom Kabelverzweiger kommende Verzweigungskabel.} \cite{bib:vodafone-legt-in-pirmasens}
\end{description}

24
dexes/literature.bib Normal file
View File

@ -0,0 +1,24 @@
# Example Paper
@article{bib:leossfc,
author = {Maral, Gérard and de Ridder, Jean-Jacques and Evans, Barry G. and Richharia, Madhavendra},
title = {Low earth orbit satellite systems for communications},
journal = {International Journal of Satellite Communications},
volume = {9},
number = {4},
pages = {209-225},
publisher = {Wiley Online Library},
doi = {https://doi.org/10.1002/sat.4600090403},
url = {https://onlinelibrary.wiley.com/doi/abs/10.1002/sat.4600090403},
eprint = {https://onlinelibrary.wiley.com/doi/pdf/10.1002/sat.4600090403},
abstract = {Abstract It may be that we are now entering the era of LEO constellation satellite communications after thirty years of domination by the GEO systems. This paper heralds the coming of the new era with a tutorial approach to the system design and trade-offs of LEO constellation system design. It discusses orbital configurations, network topologies and routeing considerations, multiple access schemes and link performance design. In so doing it brings out the major design parameters and how they interact with each other. Also considered are the service applications for the LEO constellation systems, and the important difference between real-time and delayed communication systems is highlighted. Examples of single and multi-beam (cellular) coverage system link designs are presented for L-Ka frequency bands. Future papers will consider aspects of the LEO spacecraft and launchers.},
year = {1991}
}
# Example Website
@misc{bib:vodafone-legt-in-pirmasens,
author = {Vodafone},
howpublished = "\url{https://www.vodafone.de/business/festnetz-internet/glasfaser-pirmasens.html}",
title = {{Wir haben Glasfaser in Pirmasens ausgebaut}},
year = {2021},
note = {Zugriff: November 2021}
}

View File

@ -20,3 +20,19 @@
{ {
\endgroup \endgroup
} }
% Nicely placed image environment
% Features:
% Margin-top
% placed exactly where it's put in the source code
% image and caption always stays on same page
\newenvironment{nicepic}
{
\begin{minipage}{\textwidth}
\vspace{7.5mm}
\begin{center}
}
{
\end{center}
\end{minipage}
}

View File

@ -1 +1 @@
rm -f kapitel/*.aux *.aux *.lof *.log *.lot *.toc *.tps *.out *.fdb_latexmk *.fls *.synctex.gz rm -f */*.aux *.aux *.lof *.log *.lot *.toc *.tps *.out *.fdb_latexmk *.fls *.bbl *.blg

View File

@ -3,4 +3,4 @@
% %
% Bibliotheksverzeichnis % Bibliotheksverzeichnis
\input{bibliography} \input{dexes/bibdex}

View File

@ -17,6 +17,9 @@ ngerman, % it's a german document
%draft % create debug build. remove for release build %draft % create debug build. remove for release build
]{scrbook} ]{scrbook}
% Load project configuration
\input{config}
\parindent=0pt % disable paragraph indent \parindent=0pt % disable paragraph indent
\usepackage{ngerman} \usepackage{ngerman}
@ -35,14 +38,13 @@ ngerman, % it's a german document
% Verwende dieses Paket wenn du DML selbst kompilierst. % Verwende dieses Paket wenn du DML selbst kompilierst.
\usepackage{lmodern} \usepackage{lmodern}
% Tables % Tabellen
\usepackage{array} \usepackage{array}
\usepackage{tabularx}
% Mathematische Formeln % Mathematische Formeln
\usepackage{amsmath, amsthm, amssymb, mathtools} \usepackage{amsmath, amsthm, amssymb, mathtools}
% Deutsche Anf<EFBFBD>hrungszeichen % Deutsche Anführungszeichen
\usepackage[babel, german=quotes]{csquotes} \usepackage[babel, german=quotes]{csquotes}
% Mehrere Bilder als eine Abbildung % Mehrere Bilder als eine Abbildung
@ -62,6 +64,12 @@ ngerman, % it's a german document
\allsectionsfont{\rmfamily} \allsectionsfont{\rmfamily}
\chaptertitlefont{\rmfamily\hspace*{0.5em}} \chaptertitlefont{\rmfamily\hspace*{0.5em}}
% Custom side marings
\usepackage{geometry}
% Zeilenabstand 1.5
\usepackage[onehalfspacing]{setspace}
% Tab-respecting code printing % Tab-respecting code printing
\usepackage{fancyvrb} \usepackage{fancyvrb}
@ -70,9 +78,9 @@ ngerman, % it's a german document
% Metadaten % Metadaten
\usepackage[pdftex, \usepackage[pdftex,
pdfauthor={Friedrich Gross, Leon Etienne}, pdfauthor={\cfgAuthorName},
pdftitle={Exposé Smartes Dorf - Glasfaserverlegung}, pdftitle={\cfgDocTitle},
pdfsubject={Exposé Smartes Dorf - Glasfaserverlegung}, pdfsubject={\cfgDocSubTitle},
pdfproducer={Latex}, pdfproducer={Latex},
pdfcreator={pdflatex}]{hyperref} pdfcreator={pdflatex}]{hyperref}

BIN
images/mult0.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
images/mult1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

BIN
images/mult2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

BIN
images/stars.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

View File

@ -3,4 +3,68 @@
% %
\chapter{Foobar} \chapter{Foobar}
Wer testet, der questet\cite{bib:sicherheit-fuer-tcpip}. Wer testet, der questet.\cite{bib:vodafone-legt-in-pirmasens}
% Figure
\begin{nicepic}
\includegraphics[width=0.9\textwidth]{images/stars.jpg}
\captionof{figure}{Sterne}
\caption*{Quelle: \cite{bib:vodafone-legt-in-pirmasens}}
\label{fig:stars}
\end{nicepic}
% Multifigure
\begin{figure}[!htbp]
\begin{subfigure}[t]{0.3\textwidth}
\includegraphics[width=\textwidth]{images/mult0.jpg}
\captionof{figure}{Lichtpunkte auf dunklem Hintergrund}
\caption*{Quelle: \cite{bib:vodafone-legt-in-pirmasens}}
\label{fig:light-points-on-dark-bg}
\end{subfigure}
\hfill
\begin{subfigure}[t]{0.3\textwidth}
\includegraphics[width=\textwidth]{images/mult1.png}
\captionof{figure}{Ein Tannenbaum}
\caption*{Quelle: \cite{bib:vodafone-legt-in-pirmasens}}
\label{fig:tannenbaum}
\end{subfigure}
\hfill
\begin{subfigure}[t]{0.3\textwidth}
\includegraphics[width=\textwidth]{images/mult2.jpg}
\captionof{figure}{Eine Winterstadt}
\caption*{Quelle: \cite{bib:vodafone-legt-in-pirmasens}}
\label{fig:winter-city}
\end{subfigure}
\caption{Ein Beispiel für mehrere Bilder nebeneinander}
\end{figure}
% Table
\begin{table}[!htbp] % !htbp soll wohl das Objekt möglichst nah zum Text-punkt halten
\centering
\begin{tabular}{|l|l|r|}
\hline
\textbf{TM Configuration} & \textbf{Detail-Level} & \textbf{Frametime}\\
\hline
\hline
Tensor-800 & 0 & 28\\
Tensor-800 & 1 & 52\\
Tensor-800 & 2 & 69\\
Tensor-800 & 3 & 89\\
\hdashline
V-Core Zenyx 33 & 0 & 2\\
V-Core Zenyx 33 & 1 & 4\\
V-Core Zenyx 33 & 2 & 5\\
V-Core Zenyx 33 & 3 & 7\\
\hdashline
Intel iZ237-8 & 0 & 298\\
Intel iZ237-8 & 1 & 448\\
Intel iZ237-8 & 2 & 556\\
Intel iZ237-8 & 3 & 767\\
\hline
\end{tabular}
\caption{Renderzeiten mit TM-Prozessoren}
\label{tbl:renderzeiten_tm_processors}
\end{table}

View File

@ -1,24 +0,0 @@
%
% Title page
%
\begin{titlepage}
\begin{center}
\Huge
Exposé - Das smarte Dorf \\
\vspace{5mm}
\normalsize
Verlegung von Glasfaserkabeln zur alten Schule\\
\vspace{1cm}
\large
Version 0.5dev\\
\vspace {2 cm }
Friedrich Gross \enpointy{idk@hs-worms.de}\\
Leon Etienne \enpointy{leon@etiennes.de}\\
\vspace{1em}
i.A. Prof. Dr. Michael Derek Werle Rutter \enpointy{rutter@hs-worms.de}
\end{center}
\normalsize
\vfill
Copyright ( c ) 2022 Friedrich Gross, Leon Etienne.
\end{titlepage}

33
kapitel/title.tex Normal file
View File

@ -0,0 +1,33 @@
%
% Title page
%
\begin{titlepage}
\cfgUniversityName\\
\cfgUniversityDepartment\\
Studiengang \cfgUniversityDegreeCourse\\
\\
\cfgDocClassification\\
\cfgCourseName\\
\begin{center}
\Huge
\cfgDocTitle\\
\vspace{10mm}
\Large
\cfgDocSubTitle\\
\vspace{15mm}
\normalsize
Version \cfgDocVersion
\end{center}
\vfill
Vorgelegt von\\
\vspace{3mm} \ \\
\cfgAuthorName, \cfgAuthorMatriculationNum\\
\cfgAuthorContact\\
Im \cfgSemesterName\\
\vspace{3mm} \ \\
bei \cfgUniversitySupervisorName\\
\end{titlepage}

View File

@ -10,13 +10,3 @@
% Will do a full reference, with both a number AND a caption. Like '1.2.3 Coding the code' % Will do a full reference, with both a number AND a caption. Like '1.2.3 Coding the code'
\newcommand{\fullref}[1]{\ref{#1} \nameref{#1}} \newcommand{\fullref}[1]{\ref{#1} \nameref{#1}}
% Bibliography formatting
% #1 -> authors
% #2 -> title
% #3 -> publishing city
% #4 -> publisher
% #5 -> year of release
\newcommand{\bibformat}[5] {
#1: \textit{#2}. #3: #4, #5
}

BIN
main.pdf

Binary file not shown.

View File

@ -9,23 +9,36 @@
% Disable pagination, we'll re-enable it after the table of contents % Disable pagination, we'll re-enable it after the table of contents
\pagenumbering{gobble} \pagenumbering{gobble}
\input{kapitel/titel} \input{kapitel/title}
\input{kapitel/selbstständigkeitserklärung}
% Only apply this geometry after the title page.
% We don't want to have a right/bottom indent on the title page aswell.
\newgeometry{
a4paper,
right=50mm,
bottom=50mm
}
% Selbstständigkeitserklärung
\include{selbstständigkeitserklärung}
% Inhaltsverzeichnis % Inhaltsverzeichnis
\include{tocdex} \include{dexes/tocdex}
\frontmatter % Begin document "header", paginated with roman numerals. \frontmatter % Begin document "header", paginated with roman numerals.
\pagenumbering{Roman} % Capitalized roman numerals plssss \pagenumbering{Roman} % Capitalized roman numerals plssss
% Abbildungsverzeichnis % Abbildungsverzeichnis
\include{imagedex} \include{dexes/imagedex}
% Tabellenverzeichnis % Tabellenverzeichnis
\include{tabledex} \include{dexes/tabledex}
% Abkürzungsverzeichnis % Abkürzungsverzeichnis
\include{acrodex} \include{dexes/acrodex}
% Glossar
\include{dexes/glossarydex}
\mainmatter % Begin main part of document, paginated with arabic numerals \mainmatter % Begin main part of document, paginated with arabic numerals

10
readme.md Normal file
View File

@ -0,0 +1,10 @@
## To build the document:
1) `./compile.sh`, duh. Depends on pdflatex, bibtex, and miktex
## Nomenclature
* All your text should go into `kapitel/`.
* All your indices, such as acronyms, references, glossary entrys, if not generated automatically, should go into `dexes/`
# Other stuff worth noting
* All paths must be relative to project root! (where `compile.sh` lies).
* Configure your projects base informations such as title, author, year, etc in `config.tex`.

View File

@ -4,7 +4,7 @@
\chapter*{Selbstständigkeitserklärung} \chapter*{Selbstständigkeitserklärung}
Hiermit erklären wir, dass wir die vorliegende Arbeit selbstständig und ohne Benutzung anderer als der angegebenen Hilfsmittel angefertigt haben. Hiermit erkläre ich, dass ich die vorliegende Arbeit selbstständig und ohne Benutzung anderer als der angegebenen Hilfsmittel angefertigt haben.
Alle Stellen, die wörtlich oder sinngemäß aus veröffentlichten und nicht veröffentlichten Schriften Alle Stellen, die wörtlich oder sinngemäß aus veröffentlichten und nicht veröffentlichten Schriften
entnommen wurden, sind als solche kenntlich gemacht. Die Arbeit ist noch nicht in entnommen wurden, sind als solche kenntlich gemacht. Die Arbeit ist noch nicht in
gleicher oder ähnlicher Form oder auszugsweise im Rahmen einer anderen Prüfung gleicher oder ähnlicher Form oder auszugsweise im Rahmen einer anderen Prüfung
@ -12,14 +12,9 @@ vorgelegt worden.
\\ \\
\\ \\
\\ \\
\hspace*{\fill}Ludwigshafen am Rhein, den 15. November 2021 \hspace*{\fill}\cfgAuthorCity, \cfgDateLastModification
\\ \\
\\ \\
\\ \\
\\ \\
\hspace*{\fill}Friedrich Gross\ \ \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ \hspace*{\fill}\cfgAuthorName\ \ \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
\\
\\
\\
\\
\hspace*{\fill}Leon Etienne\ \ \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_