\documentclass{report}

\usepackage{verbatim}
\usepackage[german]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{ae}

\usepackage{graphicx}
\graphicspath{{./img/}}

\usepackage{./graphs}

\author{Frank Zirkelbach}

\title{Nanolamellare Selbstordnungsprozesse bei Kohlenstoffimplantation in $(100)$-orientiertes Silizium bei Temperaturen kleiner $400$ Grad Celsius}

\begin{document}
\frontmatter
\maketitle
\tableofcontents

\mainmatter

\chapter{Einf"uhrung}

\section{Abbremsung von Ionen}
foobar ...

\chapter{Die Simulation}

\section{Modellannahmen}
foobar ...

\section{Ablaufschema}
\originalTeX
\begin{figure}[thbp]
\begin{center}
\begin{graph}(8,30)
 \graphnodecolour{1}
 \textnode{start}(4,30){nlsop start}
 \rectnode{rand1}[6,3](4,27.5)
 \freetext(4,28.5){zufaellige Wahl der Koordinaten:}
 \freetext(4,27.5){$p(x)dx=dx$}
 \freetext(4,27){$p(y)dy=dy$}
 \freetext(4,26.5){$p(z)dz=(a_{el}*z+b_{el})dz$}
 \diredge{start}{rand1}
 \rectnode{p_ac_ca}[9,3](4,23.5)
 \freetext(4,24.5){Berechnung der $p_{a \rightarrow c}$ bzw. $p_{c \rightarrow a}$:}
 \freetext(4,23.5){$\displaystyle p_{c \rightarrow a}=\sum_{amorphe Nachbarn} \frac{a_{ap}}{\textrm{Abstand}^2} + b_{ap} + a_{cp}c_{\textrm{Kohlenstoff}}$}
 \freetext(4,22.5){$\displaystyle p_{a \rightarrow c}=1-p_{c \rightarrow a}$}
 \diredge{rand1}{p_ac_ca}
 \textnode{ac}(4,21){Zelle $(x,y,z)$ amorph?}
 \diredge{p_ac_ca}{ac}
 \textnode{d_c}(2,19.5){Zufallszahl $< p_{a \rightarrow c}$ ?}
 \textnode{d_a}(6,19.5){Zufallszahl $< p_{c \rightarrow a}$ ?}
 \diredge{ac}{d_a}
 \edgetext{ac}{d_a}{nein}
 \diredge{ac}{d_c}
 \edgetext{ac}{d_c}{ja}
 \textnode{amount_c}(4,16.5){$\textrm{gesamter Kohlenstoff} < \textrm{steps} * c_{ratio}$ ?}
 \diredge{d_c}{amount_c}
 \diredge{d_a}{amount_c}
 \textnode{make_c}(1,18){Zelle $(x,y,z) = \textrm{kristallin}$}
 \textnode{make_a}(7,18){Zelle $(x,y,z) = \textrm{amorph}$}
 \diredge{d_c}{make_c}
 \edgetext{d_c}{make_c}{ja}
 \diredge{d_a}{make_a}
 \edgetext{d_a}{make_a}{ja}
 \diredge{make_c}{amount_c}
 \diredge{make_a}{amount_c}
 \rectnode{rand2}[5,3](1.5,14)
 \freetext(1.5,15){zufaellige Koordinaten:}
 \freetext(1.5,14){$p(x)dx=dx$}
 \freetext(1.5,13.5){$p(y)dy=dy$}
 \freetext(1.5,13){$p(z)dz=(a_{cd}*z+b_{cd})dz$}
 \diredge{amount_c}{rand2}
 \freetext(3,16){ja}
 \rectnode{inc_c}[5,1.5](1.5,11)
 \freetext(1.5,11){Erhoehe $c_{Kohlenstoff}(x,y,z)$}
 \freetext(1.5,10.5){Erhoehe gesamten Kohlenstoff}
 \diredge{rand2}{inc_c}
 \textnode{d_d}(5,9.5){Diffusion}
 \diredge{inc_c}{d_d}
 \diredge{amount_c}{d_d}
 \edgetext{amount_c}{d_d}{nein}
\end{graph}
\end{center}
\germanTeX
\caption{ablaufschema}
\end{figure}

\begin{figure}[thpb]
\begin{center}
\begin{graph}(8,30)
 \graphnodecolour{1}
 \textnode{start}(4,30){Diffusion}
\end{graph}
\end{center}
\germanTeX
\caption{ablaufschema 2}
\end{figure}
 


\end{document}
