latex/main.tex

204 lines
6.6 KiB
TeX
Raw Normal View History

2022-03-15 13:04:28 +01:00
\documentclass[
2022-09-13 10:23:58 +02:00
paper=a4,
twoside=false,
2022-03-15 13:04:28 +01:00
parskip=half,
listof=entryprefix,
listof=totoc,
index=totoc,
2022-09-13 10:23:58 +02:00
bibliography=totoc,
headsepline,
]{scrbook}
2022-03-15 13:04:28 +01:00
\usepackage{silence}
\WarningFilter{biblatex}{File 'ngerman-iso.lbx'}
\WarningFilter{biblatex}{'\mainlang'}
2022-09-13 10:23:58 +02:00
\WarningFilter{biblatex}{Bibliography string 'online' untranslated}
\WarningFilter{hyperref}{Token not allowed in a PDF string}
2022-03-15 13:04:28 +01:00
2022-09-13 10:23:58 +02:00
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Fonts Fonts Fonts
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2022-03-15 13:04:28 +01:00
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
2022-09-13 10:23:58 +02:00
\usepackage{scrhack}
\usepackage{pdfpages,graphicx,subcaption,lastpage,xspace}
2022-03-15 13:04:28 +01:00
\graphicspath{ {./images} }
2022-09-13 10:23:58 +02:00
\usepackage{float,xcolor,csquotes,microtype,etoolbox}
\MakeOuterQuote{"}
\usepackage[automark,markcase=ignoreuppercase,autooneside=false]{scrlayer-scrpage}
2022-03-15 13:04:28 +01:00
\usepackage[official]{eurosym}
2022-09-13 10:23:58 +02:00
\usepackage[breaklinks,colorlinks,linkcolor=black,citecolor=black,filecolor=black,urlcolor=black]{hyperref}
2022-03-15 13:04:28 +01:00
2022-09-13 10:23:58 +02:00
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Listings Paket
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2022-09-27 12:11:39 +02:00
\usepackage{listings,caption,pmboxdraw}
2022-09-13 10:23:58 +02:00
\definecolor{codebg}{rgb}{0.95,0.95,0.95}
2022-09-27 12:11:39 +02:00
\definecolor{lightgray}{rgb}{.9,.9,.9}
\definecolor{darkgray}{rgb}{.4,.4,.4}
\definecolor{purple}{rgb}{0.65, 0.12, 0.82}
\lstdefinelanguage{JavaScript}{
keywords={break, case, catch, continue, debugger, default, delete, do, else, false, finally, for, function, if, in, instanceof, new, null, return, switch, this, throw, true, try, typeof, var, void, while, with, const},
morecomment=[l]{//},
morecomment=[s]{/*}{*/},
morestring=[b]',
morestring=[b]",
ndkeywords={class, export, boolean, throw, implements, import, this},
keywordstyle=\color{blue}\bfseries,
ndkeywordstyle=\color{darkgray}\bfseries,
identifierstyle=\color{black},
commentstyle=\color{purple}\ttfamily,
stringstyle=\color{red}\ttfamily,
sensitive=true,
}
2022-09-13 10:23:58 +02:00
\lstset{
basicstyle =\ttfamily\color{black}\small,
keywordstyle =,
commentstyle =\color{teal},
stringstyle =\itshape,
tabsize=2,
breaklines=true,
captionpos=b,
breakatwhitespace,
backgroundcolor={\color{codebg}},
basewidth=0.5em,
2022-09-27 12:11:39 +02:00
numbers=left,
numberstyle=\tiny,
numbersep=-8pt,
language=JavaScript,
2022-03-15 13:04:28 +01:00
}
2022-09-13 10:23:58 +02:00
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Bibliography
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2022-03-15 13:04:28 +01:00
\setuptoc{toc}{totoc}
\usepackage[
backend=biber,
urldate=long,
style=iso-authoryear,
useauthor=true,
mincitenames=1,
2022-09-27 12:11:39 +02:00
maxcitenames=3,
maxbibnames=99,
2022-03-15 13:04:28 +01:00
]{biblatex}
2022-09-13 10:23:58 +02:00
\addbibresource{./bib/online.bib}
\addbibresource{./bib/book.bib}
2022-03-15 13:04:28 +01:00
\DeclareNameAlias{default}{family-given/given-family}
2022-09-13 10:23:58 +02:00
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Fussnoten
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\deffootnote{1.5em}{1em}{\makebox[1.5em][l]{\thefootnotemark}}
\addtolength{\skip\footins}{\baselineskip}
\setlength{\dimen\footins}{10\baselineskip}
2022-09-13 10:28:14 +02:00
\interfootnotelinepenalty=10000 % Verhindert das Fortsetzen von Fussnoten
2022-09-13 10:23:58 +02:00
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Commands
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\workDatum}{\today\xspace}
\newcommand{\workDateTime}{\today{} - \thistime\ Uhr}
\newcommand{\workFirma}{<Firma>\xspace}
\newcommand{\workTitel}{<Titel>}
\newcommand{\workNameStudent}{<Student>\xspace}
\newcommand{\workTyp}{<Arbeit>\xspace}
\newcommand{\www}[1]{\href{http://#1}{#1}}
\newcommand{\wwwhttp}[1]{\href{#1}{#1}}
\newcommand{\wwwlink}[1]{\footnote{\www{#1}}}
\newcommand{\zB}{\mbox{z.\,B.}\xspace}
\newcommand{\ua}{\mbox{u.\,a.}\xspace}
\newcommand{\dah}{\mbox{d.\,h.}\xspace}
\newcommand{\uAe}{\mbox{u.\,a.}\xspace}
\newcommand{\refp}[1]{Seite~\pageref{#1}\xspace}
\newcommand{\refk}[1]{Kapitel~\ref{#1}\xspace}
\newcommand{\refa}[1]{Abbildung~\ref{#1}\xspace}
\newcommand{\reft}[1]{Tabelle~\ref{#1}\xspace}
\newcommand{\reflst}[1]{Listing~\ref{#1}\xspace}
\newcommand{\engl}[1]{(engl: \textit{#1})\xspace}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Kopf und Fusszeilen
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{scrtime}
\pagestyle{scrheadings}
\clearpairofpagestyles
\ihead[]{\leftmark}
\ohead[]{\rightmark}
\counterwithout{footnote}{chapter}
\ifoot[\workDateTime]{\workDateTime}
\ofoot[\pagemark]{\pagemark}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Acronyms
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2022-09-27 12:11:39 +02:00
% https://ctan.math.washington.edu/tex-archive/macros/latex/contrib/acro/acro-manual.pdf
\usepackage{acro,supertabular,array}
\acsetup{
make-links=true,
list/template=supertabular,
list/heading=chapter*,
list/sort=true,
list/display=used,
list/name=Abkürzungsverzeichnis,
}
2022-09-13 10:23:58 +02:00
\DeclareAcronym{html}{short=HTML,long=HyperText Markup Language}
\DeclareAcronym{js}{short=JS,long=JavaScript}
2022-09-27 12:11:39 +02:00
\usepackage{todonotes}
2022-09-29 10:32:58 +02:00
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Glossar
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[nonumberlist]{glossaries}
\usepackage{glossary-super}
\setglossarystyle{super}
\makenoidxglossaries
\renewcommand*{\glstextformat}{\textbf}
\renewcommand*{\glsnamefont}{\textbf}
2022-09-29 10:41:09 +02:00
\newglossaryentry{latex}
2022-09-29 10:32:58 +02:00
{
name=Latex,
description={Is a markup language specially suited
for scientific documents}
}
2022-09-29 10:41:09 +02:00
\newglossaryentry{swagger}
2022-09-29 10:32:58 +02:00
{
name=Swagger,
description={Is a suite of tools for API developers from SmartBear Software and a former specification upon which the OpenAPI Specification is based}
}
2022-09-13 10:23:58 +02:00
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Dokument
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2022-03-15 13:04:28 +01:00
\begin{document}
2022-09-27 12:11:39 +02:00
\include{titlepage/titlepage}
\include{vorspiel/vorspiel}
\tableofcontents
\newpage
\listoffigures
\renewcommand\lstlistingname{Codefragment}
\renewcommand\lstlistlistingname{Codeverzeichnis}
\lstlistoflistings
\printacronyms[heading=addchap]
2022-09-29 10:32:58 +02:00
\printnoidxglossary
2022-09-13 10:23:58 +02:00
2022-09-27 12:11:39 +02:00
\include{example/example}
2022-03-15 13:04:28 +01:00
2022-09-27 12:11:39 +02:00
\printbibheading[title=Literaturverzeichnis]
\printbibliography[type=book,heading=subbibliography,title=Buch-Quellen]
\printbibliography[type=online,heading=subbibliography,title=Online-Quellen]
2022-03-15 13:04:28 +01:00
\end{document}