LaTex_Hausarbeit_Template/main.tex

123 lines
3.2 KiB
TeX
Raw Normal View History

2022-10-27 08:58:15 +00:00
% !TeX root = main.tex
2021-07-31 09:16:31 +00:00
% Preamble
% !IMPORTANT! Do not change the font size here, but after the \begin{document} markup
\documentclass[12pt,a4paper,oneside,listof=totoc,abstract=on,parskip=half]{scrreprt}
\include{customization/text-variables}
% Packages
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage[autostyle=true,german=quotes]{csquotes}
\usepackage{float}
\usepackage{fontspec} % for using own font
\usepackage{multicol}
\usepackage[includeheadfoot,left=40mm,right=25mm,top=25mm,bottom=25mm,footskip=10mm]{geometry}
\usepackage[singlespacing=true]{scrlayer-scrpage} % for header / footer
\usepackage{graphicx}
\usepackage[hidelinks,pdftitle={\paperName},pdfauthor={\author},pdfsubject={\title},pdfpagemode=UseOutlines,pdfdisplaydoctitle=true,pdflang=german]{hyperref}
\usepackage{setspace}
\usepackage{xcolor}
2022-10-27 08:58:15 +00:00
\usepackage[printonlyused, footnote]{acronym}
\usepackage[toc]{glossaries}
2021-07-31 09:16:31 +00:00
\usepackage{listings}
\usepackage{anyfontsize}
2022-10-27 08:58:15 +00:00
\usepackage{pdfpages}
\usepackage{scrhack} % Remove \float@addtolists warning from listings package
2021-07-31 09:16:31 +00:00
\usepackage[backend=biber,bibwarn=true,bibencoding=utf8,style=numeric-comp,sorting=none]{biblatex}
2022-10-27 08:58:15 +00:00
\usepackage{import}
% For external link icon
\usepackage{tikz}
\newcommand{\ExternalLink}{%
\tikz[x=1.2ex, y=1.2ex, baseline=-0.05ex]{%
\begin{scope}[x=1ex, y=1ex]
\clip (-0.1,-0.1)
--++ (-0, 1.2)
--++ (0.6, 0)
--++ (0, -0.6)
--++ (0.6, 0)
--++ (0, -1);
\path[draw,
line width = 0.5,
rounded corners=0.5]
(0,0) rectangle (1,1);
\end{scope}
\path[draw, line width = 0.5] (0.5, 0.5)
-- (1, 1);
\path[draw, line width = 0.5] (0.6, 1)
-- (1, 1) -- (1, 0.6);
}
}
2021-07-31 09:16:31 +00:00
\addbibresource{main.bib}
\include{customization/variables}
\include{customization/style}
% Document
\begin{document}
\setcounter{secnumdepth}{3}
2022-10-27 08:58:15 +00:00
\setcounter{tocdepth}{2}
2021-07-31 09:16:31 +00:00
\fontsize{13pt}{13pt}\selectfont
\pagenumbering{arabic}
2022-10-27 08:58:15 +00:00
\input{includes/cover}
2021-07-31 09:16:31 +00:00
2022-10-27 08:58:15 +00:00
\pagenumbering{Roman} % Römische Seitenzahlen
2021-07-31 09:16:31 +00:00
\cleardoublepage
2022-10-27 08:58:15 +00:00
\input{includes/statementofauthorship}
2021-07-31 09:16:31 +00:00
\cleardoublepage
2022-10-27 08:58:15 +00:00
\input{includes/abstract}
2021-07-31 09:16:31 +00:00
2022-10-27 08:58:15 +00:00
% Inhaltsverzeichnis
2021-07-31 09:16:31 +00:00
\cleardoublepage
2022-10-27 08:58:15 +00:00
\begin{spacing}{1.25}
\KOMAoptions{toc=chapterentrydotfill}
\tableofcontents
\end{spacing}
2021-07-31 09:16:31 +00:00
% Abbildungsverzeichnis
\cleardoublepage
\listoffigures
% Quellcodeverzeichnis
\cleardoublepage
\renewcommand\lstlistlistingname{Quellcodeverzeichnis}
\lstlistoflistings
2022-10-27 08:58:15 +00:00
% Abkürzungsverzeichnis
\cleardoublepage
\chapter*{Abkürzungsverzeichnis}
\addcontentsline{toc}{chapter}{Abkürzungsverzeichnis}
\begin{acronym}[AAAAAA]
\input{includes/acronyms-sort}
\end{acronym}
\cleardoublepage
\pagenumbering{arabic} % Arabische Seitenzahlen
2021-07-31 09:16:31 +00:00
% Kapitel
\cleardoublepage
\input{content/01-00-chapter}
2022-10-27 08:58:15 +00:00
\input{content/02-00-chapter}
\input{content/03-00-chapter}
2021-07-31 09:16:31 +00:00
% Literatur
\cleardoublepage
\printbibliography[heading=bibintoc,title=Literaturverzeichnis]
2022-10-27 08:58:15 +00:00
% Anhang
\cleardoublepage
\include{content/08_anhang/anhang}
2021-07-31 09:16:31 +00:00
\end{document}