\documentclass[paper=a4,
ngerman,
captions=tableabove,
fontsize=11pt,
numbers=noenddot,
parskip=half,
]{scrreprt}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[newfloat=true]{minted}
\usepackage{csquotes}
\usepackage[includehead, includefoot, left=3.0cm, right=2.5cm, top=1.5cm, bottom=1.5cm]{geometry}
\usepackage{acro}
\usepackage[style=numeric,backend=biber,sorting=none]{biblatex}
\usepackage{notoccite}
\usepackage{pdfpages}
\usepackage{xcolor}
\usepackage{enumitem}
\usepackage[onehalfspacing]{setspace}
\usepackage{hyperref}
\usepackage{tabularray}
\usepackage{xurl}
\usepackage{soul}
\usepackage{xcolor}
\usepackage{subcaption}
\usepackage[strings]{underscore}


\usepackage[letterspace=150]{microtype}

\usepackage[page]{totalcount}
\usepackage[automark,headsepline=.4pt,plainheadsepline]{scrlayer-scrpage}         % Erstellung von selbst definierten Kopfzeilen
%\usepackage{scrhack}

\newcommand{\source}[1]{\caption*{Quelle: {#1}} }

\clearpairofpagestyles%\clearscrheadfoot veraltet
\renewcommand*{\chaptermarkformat}{
  \chaptername~\thechapter\autodot\quad-\quad
}
\definecolor{light-gray}{gray}{0.95}
%\newcommand{\code}[1]{\colorbox{light-gray}{\texttt{#1}}}
\newcommand{\code}[1]{
  \begingroup%
  \sethlcolor{light-gray}%
  \hl{\texttt{#1}}%
  \endgroup
}

\ihead*{\rightmark}
\ohead*{\thepage}
\setkomafont{pageheadfoot}{\normalfont}

\pagestyle{scrheadings}

\pdfminorversion=7

\addbibresource{main.bib}

% Title Page
\title{}
\subtitle{mechatronisches Forschungsprojekt}
\author{Bastian Maximilian Hofmann}


\DeclareAcronym{ros}{
  short=ROS,
  long=Robot Operating System,
}
\DeclareAcronym{fsm}{
  short=FSM,
  long=Finite-State-Machine,
}
\DeclareAcronym{mrk}{
  short=MRK,
  long=Mensch-Roboter-Kollaboration,
}

\begin{document}

\setcounter{page}{1}
\pagenumbering{Roman}

\begin{titlepage}

\includepdf[pages=-]{tex/Deckblatt.pdf}

\end{titlepage}

\tableofcontents
\listoffigures

\includepdf[pages=-]{tex/Aufgabenstellung.pdf}

\setcounter{page}{1}
\pagenumbering{arabic}

\input{tex/1_Einleitung.tex}
\input{tex/2_Konzept.tex}
\input{tex/3_Auswahl.tex}
\input{tex/4_Umsetzung.tex}
\input{tex/5_Evaluation_und_Diskussion.tex}
\input{tex/6_Ausblick.tex}

\printbibliography
\newpage
\markboth{Anhang}{Anhang}
\begin{figure}[ht]
\includegraphics[width=14cm]{img/moveit_pipeline}
\caption{Visualisierung der MoveIt Pipeline}
\source{\cite{moveitpipeline}}
\label{moveitpipeline}
\end{figure}

\end{document}          
