\usepackage[a5paper, margin=1cm, bottom=2cm]{geometry} % For titlepage image \usepackage{graphicx} \graphicspath{{figs/}} \usepackage[ xetex, hidelinks, pdfauthor={\theauthor}, pdftitle={\thetitle{} \theversion}, pdfsubject={Tutorial voor beginnende en ervaren spelers}, pdfkeywords={tutorial, rival regions}, pdfproducer={XeTeX}, pdfcreator={xelatex} ]{hyperref} % TOC title \usepackage{titletoc} \titlecontents{section} [15pt] {\bigskip\rmfamily\Large} {\contentslabel{15pt}} {\fbox{\hspace*{2.3em}\rule{2.3em}{2pt}}} {\titlerule*[1em]{}\contentspage} \titlecontents{subsection} [35pt] {\rmfamily} {\contentslabel{25pt}} {} {\titlerule*[1em]{.}\contentspage\nobreak} \titlecontents{subsubsection} [55pt] {\rmfamily} {\contentslabel{35pt}} {} {\titlerule*[1em]{.}\contentspage\nobreak}