%------------------------------------------------------------------------------
%geometry
\usepackage[a4paper,inner=4cm,outer=2cm,top=3cm,bottom=3cm]{geometry}
\renewcommand{\topfraction}{.85}
\renewcommand{\bottomfraction}{.85}
%load packages-----------------------------------------------------------------
\usepackage[T1]{fontenc}
\usepackage{ae}
\usepackage[utf8]{inputenc}
\usepackage{scrextend}
\usepackage{enumerate}
\usepackage[shortlabels]{enumitem}
\usepackage[english,german]{babel}
\usepackage{float}
\usepackage[onehalfspacing]{setspace}
\usepackage{textcomp}
\usepackage{hyperref}
\hypersetup{colorlinks=true,linkcolor=black}
%Abkürzungsverzeichnis
\usepackage[printonlyused]{acronym}

%------------------------------------------------------------------------------
\usepackage{amssymb}
\usepackage{amsmath}
%------------------------------------------------------------------------------
% appendix: matlab codes
\usepackage[autolinebreaks]{mcode}
%------------------------------------------------------------------------------
%packages for graphics
\usepackage[]{graphicx}
\usepackage[labelfont=bf,textfont=md,labelsep=period]{caption}
\usepackage{subcaption}
\usepackage{epstopdf}
\usepackage{flafter}
\usepackage{placeins}
\usepackage{listings}
%------------------------------------------------------------------------------
% Package for creating the landscape table
\usepackage{rotating}
\usepackage{multirow} % create multirow tables
%------------------------------------------------------------------------------
\usepackage{notoccite}
%------------------------------------------------------------------------------
\usepackage[nottoc]{tocbibind}
%------------------------------------------------------------------------------
\usepackage{titlesec}
\usepackage{pdfpages} 
%------------------------------------------------------------------------------
\usepackage{comment}
%------------------------------------------------------------------------------
\usepackage{color}
\definecolor{myblue}{rgb}{0.08,0.17,0.55}
%------------------------------------------------------------------------------
\usepackage[colorlinks=true, citecolor=red, linkcolor=blue]{hyperref}
% REMOVE THE COMMENT WHEN PRINTING
%\hypersetup{hidelinks=true}
%------------------------------------------------------------------------------
%\usepackage[square,authoryear,sort&compress,semicolon]{natbib}
\usepackage[square,numbers,sort&compress,semicolon]{natbib}
%------------------------------------------------------------------------------
% tables(toprule/midrule/bottomrule)
\usepackage{siunitx,booktabs}
% Footnotes/Headings-----------------------------------------------------------
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0.2mm} \renewcommand{\footrulewidth}{0mm}
\renewcommand{\chaptermark}[1]%
{\markboth{{ \thechapter.\ #1}}{}}
\renewcommand{\sectionmark}[1]%
{\markright{{ \thesection.\ #1}}}
	
\fancyhead{}
\fancyhead[RO]{\rightmark}
\fancyhead[LE]{\leftmark}
\fancyfoot{}
\fancyfoot[CE,CO]{\thepage}
% Endfootnotes/headings
% ChapterFormat----------------------------------------------------------------
%\newcommand\blankpage{%
%\null
%\thispagestyle{empty}%
%\addtocounter{page}{-1}%
%\newpage}
\titleformat{\chapter}[display]
{\bfseries\Large}
{\filleft\Large\chaptertitlename~\thechapter}
{3ex}
{\titlerule\vspace{1.5ex}\filright}
[\vspace{1ex}\titlerule]
% EndChapterFormat
\providecommand{\opj}{\mathrm{j}} \providecommand{\ope}{\mathrm{e}}
\providecommand{\dif}{\mathrm{d}} \providecommand{\opT}{\mathrm{T}}
\renewcommand{\vec}[1]{\mbox{\boldmath$#1$}}
% end--------------------------------------------------------------------------