tikz-example.tex (Source)

\documentclass{scrartcl}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{lmodern}
\usepackage{tikz}

\usetikzlibrary{shapes,arrows,shadows}

\begin{document}

    \tikzstyle{block} = [rectangle, draw, drop shadow,
                         fill=blue!20, text width=10em,
                         text centered, rounded corners,
                         minimum height=4em]

    \tikzstyle{line} = [draw, thick, ->, >=latex]

    \begin{figure}
      \centering
      \begin{tikzpicture} [auto]
        \matrix [row sep=5mm, column sep=5mm] {
          \node (A) [block] {Analyse}; & \node (Dummy1) {}; \\
          \node (P) [block] {Planung}; & \\
          \node (O) [block] {Organisation}; & \\
          \node (D) [block] {Durchführung}; & \\
          \node (K) [block] {Kontrolle}; & \node (Dummy2) {}; \\
        };
        \path [line] (A) -- (P);
        \path [line] (P) -- (O);
        \path [line] (O) -- (D);
        \path [line] (D) -- (K);
        \path [line, dashed] (K.east) -- (Dummy2) -- (Dummy1) -- (A);    
      \end{tikzpicture}
      \caption{\label{fig:Management}Der Management-Prozess}
    \end{figure}

\end{document}