\documentclass[10pt]{scrreprt}

% quick TOC setup
\KOMAoption{toc}{chapterentrydotfill}
% don't use parskip package, set parskip=full instead
\KOMAoption{parskip}{half}

\usepackage[twoside
            ,papersize={148mm, 210mm}
            ,layoutsize={148mm, 210mm}
            ,top=1.5cm
            ,bottom=2cm
            ,footskip=1cm
            ,textwidth=12cm
            ,verbose
            ]{geometry}

\input{preamble.tex}

\input{macros.tex}

\hypersetup{
    pdfauthor={FSR Informatik der TU Dresden},
    pdftitle={The Manual - ESE \eseyear},
    breaklinks=true, colorlinks=false, pdfborder={0 0 0},
  pdfencoding=unicode
}

% we need this dummy counter to make a label at the spieleabendplakat
\newcounter{dummy}

\sloppy % forces "ugly" line breaks

\pagestyle{plain}

\begin{document}
%Das Coverbild, oh gott o.O Aber es funktioniert
\newcommand\CoverPic{%
\put(0,0){%
\parbox[b][\paperheight]{\paperwidth}{%
\vfill
\centering
\includegraphics[width = \paperwidth, height = \paperheight]{cover/Vorne}%
\vfill
}}}
\thispagestyle{empty} %keine Seitenzahl
\pagecolor{ese_bg_color}
\AddToShipoutPictureBG*{\CoverPic}
\mbox{} %brauche leeren Content für ne newpage
\newpage
\pagecolor{white}

% Linklist output
% All this stuff needs is immediate to avoid confusion between links on the same page
\immediate\newwrite\linklistfile
\immediate\openout\linklistfile=kopimi.htaccess\relax
\immediate\write\linklistfile{RewriteEngine On}
\immediate\write\linklistfile{RewriteBase /\eseyear}

\include{texte/zeitplan}
\include{texte/inhaltsverzeichnis}
\include{texte/vorwort}
\include{texte/grusswort}
\include{texte/faq}
\include{texte/checkliste}
\include{texte/f1help}
\include{texte/fakultaet}
\include{texte/campus}
\include{texte/veranstaltungen}
\include{texte/studienalltag}
\include{texte/moduluebersicht}
\include{texte/werbung}
\include{texte/links}
% \addchap{Notizen}\mbox{}
\include{texte/raetsel}
\include{texte/campusplan}
\include{cover/back}

% Always close your files :)
\immediate\closeout\linklistfile

\end{document}
