\documentclass[12pt]{article}

% config
\input{config}
\title{\thefirsttitle}
\author{\theauthor}
\date{\thedate}

% language
\usepackage[dutch]{babel}

% extra font setting
\usepackage[utf8]{inputenc}

% proper font encoding
\usepackage[T1]{fontenc}

% supress float with [H]
\usepackage{float}

% improved tables
\usepackage{booktabs}

% include pdf files in document
\usepackage{pdfpages}

% document size and marging
\usepackage[
	a4paper,
	includeheadfoot,
	top=1cm,
	bottom=1.0cm,
	right=2.0cm,
	left=2.0cm
]{geometry}

% remove space in front of paragraph
\usepackage{parskip}

% enable importing graphics
\usepackage{graphicx}
\graphicspath{{figs}}

% section titles
\usepackage{titlesec}

% links and metadata
\usepackage[
    hidelinks,
    pdfauthor={\theauthor},
    pdftitle={\thefirsttitle{}},
    pdfproducer={XeTeX},
    pdfcreator={xelatex}
]{hyperref}

\usepackage{lastpage}

% support appendix
\usepackage[toc,page]{appendix}
% exclude appendix subsection from appendix in table of contents
\appto\appendix{\addtocontents{toc}{\protect\setcounter{tocdepth}{1}}}

% list of figures and tables to table of content
\usepackage{tocbibind}
% reinstate the correct level for list of tables and figures
% \appto\listoffigures{\addtocontents{lof}{\protect\setcounter{tocdepth}{1}}}
% \appto\listoftables{\addtocontents{lot}{\protect\setcounter{tocdepth}{1}}}

% commands
\newcommand{\horrule}{\par\noindent\rule{\textwidth}{0.4pt}}
