% article1.tex
% Patrick Simianer <p@simianer.de>
% YYYY-MM-DD
\documentclass[paper=A4,
       pagesize,
       DIV=calc,
       BCOR=1cm,
       smallheadings,
       ngerman,
       11pt]{scrartcl}
\typearea{12}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\usepackage{amsmath, amssymb, latexsym}
\usepackage{hyperref, color}
\usepackage[pdftex]{graphicx}
\usepackage{listings}
\usepackage{totpages}
\usepackage{ulem}
\usepackage{lmodern,eulervm}

\usepackage[tracking=TRUE]{microtype}
\usepackage{babel}
\usepackage{fixltx2e}
\usepackage{ellipsis, ragged2e, marginnote}
\DeclareMicrotypeSet*[tracking]{my}
  { font = */*/*/sc/* }
\SetTracking{ encoding = *, shape = sc }{ 45 }

\usepackage{tikz}
\usepackage{tikz-qtree}

\definecolor{darkblue}{rgb}{0,0,.5}
\hypersetup{pdftex=true, colorlinks=true, breaklinks=true, linkcolor=darkblue}

\definecolor{gray}{rgb}{.5,.5,.5}
\lstset{basicstyle=\small\ttfamily, commentstyle=\color{gray}, emphstyle=\sffamily\bfseries}
\lstset{keywordstyle=\sffamily\bfseries, commentstyle=\color{gray}, stringstyle=\color{black}}
\lstset{numbers=left, numberstyle=\tiny}

%\parindent0pt

\date{\textsf{\small{\today}}}
\author{Patrick Simianer}
{\title{\textbf{Titel}}}

\usepackage[]{scrpage2}
\pagestyle{scrheadings}
\ihead[]{Patrick Simianer}
\chead[]{}
\ohead[]{kurzer Titel}
\ifoot[]{}
\cfoot[]{}
\clearscrplain                           % page numbers of all pages
\ofoot[\pagemark]{\textit{\pagemark} \tiny{\textit{\ref{TotPages}}}}

\begin{document}


\maketitle

\section*{Aufgabe 1}
\begin{equation}
  \sum\limits_{k=1}^n k = 1+2+\hdots+n = \frac{n(n+1)}{2}
\end{equation}

\subsection*{Programm: Hello, World!}
\lstset{language=C++, emph={main}}
\begin{lstlisting}{Hello, World!}
/* Ein Kommentar */
#include <iostream>

int main (int argc, char * const argv[]) {
  // und noch einer!
  std::cout << "Hello, World!\n";
  return 0;
}
\end{lstlisting}

\begin{tikzpicture}
\Tree [.S
    [.NP
      [.Det \textit{The} ]
      [.N \textit{studio} ]
    ]
    [.VP
      [.V \textit{offers} ]
      [.N \textit{sound effects} ]
    ]
  ]
\end{tikzpicture}


\end{document}

