\documentclass[a4paper,12pt,twoside]{article}% \usepackage[utf8]{inputenc}% \usepackage[T1]{fontenc}% \usepackage{caption}% \usepackage{placeins}% \usepackage{graphicx}% \usepackage[colorlinks, pdfpagelabels, pdfstartview = FitH, bookmarksopen = true, bookmarksnumbered = true, linkcolor = black, plainpages = false, hypertexnames = false, citecolor = black]{hyperref}% \usepackage{amsmath}% \usepackage{amssymb}% \usepackage{amstext}% \usepackage{amsfonts}% \usepackage{mathrsfs}% \usepackage{hyperref}% \usepackage{xcolor}% \usepackage{scrpage2}% \newcommand*\euler{\mathrm{e}} \newcommand{\docname}{Measurement protocol} \newcommand{\prjname}{agricola} \newcommand{\docversion}{0.1} \input{config/font.tex} \input{config/sourcelst.tex} \begin{document} \clearscrheadfoot \clearscrplain \clearscrheadings \pagestyle{scrplain} % switch off head and foot line \input{config/titlepage.tex} \pagestyle{scrheadings} % switch on head and foot line \newpage \tableofcontents \input{config/headfoot.tex} \newpage \section{One} bla \subsection{OneOne} blabla \newpage \section{Two} blablabla \end{document}