\documentclass[11pt]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{marvosym} % Lightning
\usepackage{multicol}
\usepackage{framed}
\usepackage{enumerate}
\usepackage{wrapfig}
%\usepackage{booktabs}
%\usepackage{pstricks}
%\usepackage{pst-node}
\usepackage[paper=a4paper,left=30mm,right=20mm,top=20mm,bottom =25mm]{geometry}
\usepackage[
	pdftitle={Algorithmen},
	pdfsubject={Mitschrift der Vorlesung "Algorithmen" an der Hochschule Aalen, bei Herrn Thierauf.},
	pdfauthor={Thomas Battermann},
	pdfkeywords={Algorithmen},
	pdfborder={0 0 0}
]{hyperref}
\usepackage{tabularx}
\usepackage{graphicx}
\usepackage[usenames,dvipsnames]{color}
\usepackage{lastpage}
\usepackage{fancyhdr}
\setlength{\parindent}{0ex}
\setlength{\parskip}{2ex}
\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{4}
\definecolor{darkgreen}{rgb}{0,0.5,0}
\definecolor{darkblue}{rgb}{0,0,0.5}
\definecolor{greenblue}{rgb}{0,0.5,0.5}
\definecolor{lightgreen}{rgb}{0.25,.75,0.25}
\definecolor{lightblue}{rgb}{0.25,0.25,0.75}

\renewenvironment{leftbar}[1]{%
    \def\FrameCommand{{{\vrule width #1\relax\hspace {8pt}}}}%
    \MakeFramed {\advance \hsize -\width \FrameRestore }%
}{%
    \endMakeFramed%
}

\usepackage{listings}
\lstdefinelanguage{pseudo}{
  morekeywords=
  {
    if, else, for, in, remove, from, case, do, forever, to, 
    false, true, then, foreach, while, modulo, foreach
  },  
  sensitive=true,
  morecomment=[l]\#,
  morestring=[b]',
  basicstyle=\ttfamily\footnotesize,
  literate={<=} {$\le$}{2} {!=} {$\neq$}{2} {=} {$\leftarrow$}{2} {==} {=}{2}
            {&&} {$\cap$}{2} {||} {$\cup$}{2} {lfloor} {$\lfloor$}{1}
            {rfloor} {$\rfloor$}{1} {cdot} {$\cdot$}{1}
}
\lstset{
  basicstyle=\ttfamily\footnotesize,
  keywordstyle=\color{red},
  commentstyle=\color{blue},
  stringstyle=\color{darkgreen},
  backgroundcolor=\color{lightgray},
  morecomment=[s][\color{blue}]{/*}{*/},
  emphstyle=\textbf,
  frame=single,
  showstringspaces=true,
  breaklines=true,
  numberstyle=\footnotesize\textcolor{grey},
  numbers=left,
  tabsize=4,
  captionpos=b
}

\pagestyle{fancy}

%\def\footnotelayout{\color{darkgrey}}
\renewcommand{\sectionmark}[1]{\markright{#1}{}} % to normal case

\fancyhf{} %alle Kopf- und Fußzeilenfelder bereinigen
\fancyhead[L]{Algorithmen} %Kopfzeile rechts
\fancyhead[C]{} %zentrierte Kopfzeile
\fancyhead[R]{\rightmark} %Kopfzeile links
\renewcommand{\headrulewidth}{0.4pt} %obere Trennlinie
\fancyfoot[C]{Seite \thepage\ von \pageref{LastPage}}
\renewcommand{\footrulewidth}{0.4pt} %untere Trennlinie

\newcommand{\spa}{\hspace*{4mm}} 
\newcommand{\defin}{\textcolor{darkgreen}{\textbf{Def.: }}}
\newcommand{\satz}{\textcolor{darkblue}{\textbf{Satz: }}}
\newcommand{\bew}[1][]{\textcolor{greenblue}{\textbf{Beweis}}#1:}
\newcommand{\bsp}{\textcolor{lightgreen}{\textbf{Bsp.: }}}
\newcommand{\beh}{\textcolor{lightblue}{\textbf{Beh.:}}}
\newcommand{\lemma}{\textbf{Lemma:}}

\title{Algorithmen}
\author{Mitschrift von Thomas Battermann\\Dozent: Prof. Thomas Thierauf}
\date{4. Semester}

\begin{document}
	\pagestyle{empty}
	
	\maketitle\thispagestyle{empty}
	\tableofcontents\thispagestyle{empty}
	
	\newpage
	\pagestyle{fancy}
	\setcounter{page}{1}

	\input{flussnetzwerke}
\end{document}
