\documentclass[11pt,letterpaper]{article}
% Change location
\usepackage[dutch]{babel}
\usepackage[utf8]{inputenc}
\usepackage[letterpaper,includeheadfoot, top=0.5cm, bottom=2.0cm, right=2.0cm, left=2.0cm]{geometry}
\renewcommand{\familydefault}{\rmdefault}

\usepackage{graphicx}
\usepackage{color}
\usepackage[hidelinks]{hyperref}
\usepackage{amssymb}
\usepackage{url}
%\usepackage{pdfpages}
\usepackage{fancyhdr}
\usepackage{hyperref}
\usepackage{subfig}
\graphicspath{{figs/}}
\usepackage{booktabs}

\usepackage{listings} %Codigo
\lstset{language=C, tabsize=4,framexleftmargin=5mm,breaklines=true}

% get settings
\input{config}

\makeatletter
\let\thetitle\@title
\let\theauthor\@author
\let\thedate\@date
\makeatother

% header and footer
\fancyhf{}
\pagestyle{fancy}

% header
\fancyhead[L]{\small\rm\textit{\rightmark}}
\fancyhead[R]{\small\rm\textbf{\thepage}}
\renewcommand{\headrulewidth}{0.5pt}

% footer
\fancyfoot[L]{\small\rm\textit{\thetitle}}
\fancyfoot[R]{\small\rm\textit{\theauthor– \theschool}}
\renewcommand{\footrulewidth}{0.5pt}

\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}

