\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{bkm}[3]
\LoadClass[11pt,a4paper,twoside]{article}
\usepackage[ngerman]{babel}
\usepackage[left=3.5cm, right=3.5cm, top=1cm, bottom=1cm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{listings}
\usepackage{url}
\usepackage{color}
\usepackage{tocloft}
\usepackage{makecell}
\usepackage{hyperref}
\usepackage{amsmath}
\usepackage{eurosym}
\usepackage{csquotes}
\usepackage{fancyvrb}
\usepackage{dirtytalk}
\usepackage{enumitem}

\setcounter{tocdepth}{4}
\setcounter{secnumdepth}{4}

% -----------------------------------------------------------------------
% Page layout

% enlarge page
\setlength{\textwidth}{16cm}
\setlength{\topmargin}{-1cm}
\setlength{\evensidemargin}{0cm}
\setlength{\oddsidemargin}{0cm}
\setlength{\textheight}{24cm}

% skip between paragraphs
\setlength{\parskip}{1ex}
% ... and no indentation at start of a new paragraph
\setlength{\parindent}{0ex}

\pagestyle{fancy}
\thispagestyle{fancy}

\newcommand{\heading}[3]{
  \title{{#2}}
  \fancyhead[L]{EL-2B - {#1}}
  \fancyhead[C]{{#2}}
  \fancyhead[R]{{#3}}
}
\newcommand{\ddate}[1]{
  \fancyhead[R]{{#1}}
}
\newcommand{\img}[2]{
  \begin{figure}[h]
    \includegraphics{{#1}}
    \caption{{#2}}
  \end{figure}
}

% some colors similar to eclipse syntax highlighting
\definecolor{jred}{rgb}{0.6,0,0}
\definecolor{jgreen}{RGB}{63,127,95}
\definecolor{jpurple}{RGB}{127,0,85}
\definecolor{jblue}{RGB}{42,0,255}
\definecolor{jlightblue}{RGB}{63,95,191}
\definecolor{jgrey}{rgb}{0.46,0.45,0.48}

%Layout for lstlistings
\lstloadlanguages{Java} % Java-Sprache laden, notwendig wegen option 'savemem'
\lstset{
  language=Java,
  numbers=left,
  numberstyle=\tiny,
  numbersep=5pt,
  literate=%
    {Ö}{{\"O}}1
    {Ä}{{\"A}}1
    {Ü}{{\"U}}1
    {ß}{{\ss}}1
    {ü}{{\"u}}1
    {ä}{{\"a}}1
    {ö}{{\"o}}1
    {°}{{$^\circ$}}1,
  basicstyle=\ttfamily\scriptsize,
  showspaces=false,
  showtabs=false,
  showstringspaces=false,
  keywordstyle=\bfseries\color{jpurple},
  tabsize=2,
  frameround=ffff,
  extendedchars=true,
  commentstyle=\color{jgreen}\ttfamily,
  stringstyle=\color{jblue}\ttfamily,
  morecomment=[s][\color{jlightblue}]{/**}{*/},
  postbreak=\space,
  breakindent=5pt,
  breaklines=true
}

\endinput
