\documentclass{article}

% Font encoding.
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}

% Display math.
\usepackage{amsmath}
\usepackage{amssymb}

% Nice enumerations without wasting space above and below.
\usepackage{enumitem}
\setlist{nosep}

% Headline and bottomline.
\usepackage{scrpage2}
\pagestyle{scrheadings}
\clearscrheadfoot
\ihead{Karlsruhe Institute of Technology}
\chead{ChaosKITs}
\ohead{\pagemark}

% Colors, used for syntax highlighting.
% To print this document, set all colors to black!
\usepackage{xcolor}
\definecolor{keyword}{rgb}{0, 0, 1}
\definecolor{string}{rgb}{1, 0, 0}
\definecolor{comment}{rgb}{0.2, 0.6, 0.2}
\definecolor{identifier}{rgb}{0, 0, 0}

% Source code listings.
\usepackage{pxfonts}
\usepackage{listings}
\lstset{
	language={C++},
	numbers=left,
	stepnumber=1,
	numbersep=6pt,
	numberstyle=\footnotesize,
	breaklines=true,
	breakautoindent=true,
	breakatwhitespace=false,
	postbreak=\space,
	tabsize=2,
	basicstyle=\ttfamily\footnotesize,
	showspaces=false,
	showstringspaces=false,
	extendedchars=true,
	keywordstyle=\color{keyword}\bfseries,
	stringstyle=\color{string}\bfseries,
	commentstyle=\color{comment}\bfseries,
  identifierstyle=\color{identifier},
	frame=trbl
}
% Listings doesn't support UTF8. This is just enough for German umlauts.
\lstset{literate=%
  {Ö}{{\"O}}1
  {Ä}{{\"A}}1
  {Ü}{{\"U}}1
  {ß}{{\ss}}1
  {ü}{{\"u}}1
  {ä}{{\"a}}1
  {ö}{{\"o}}1
  {~}{{\textasciitilde}}1
}

% Don't waste space at the page borders.
\usepackage[top=2cm, bottom=2cm, left=2cm, right=1cm]{geometry}

% Multicol layout for the table of contents.
\usepackage{multicol}
\usepackage{multirow}

% New enviroment for remarks.
\newtheorem{bem}{Bemerkung}


\title{Team Contest Reference}
\author{ChaosKITs \\ Karlsruhe Institute of Technology}
\begin{document}

% Titlepage with table of contents.
\maketitle
\setlength{\columnsep}{1cm}
\begin{multicols}{2}
	\tableofcontents
\end{multicols}
\newpage

\input{datastructures/datastructures}
\input{graph/graph}
\input{geometry/geometry}
\input{math/math}
\input{string/string}
\input{java/java}
\input{sonstiges/sonstiges}
\input{convenience/convenience}

\end{document}