
% Enable AMS-TeX-Fonts:
\usepackage{amssymb}
\usepackage{eucal}
\usepackage{latexsym}
\usepackage{makeidx}

\newcommand{\hdl}[1]{\begin{center}{\huge\textbf{#1}} \\[10mm]\end{center}}
\newcommand{\hdli}[1]{{\LARGE\textbf{#1}}\\[7mm]}    % davor 10mm
\newcommand{\hdlii}[1]{{\Large\textbf{#1}}\\[5mm]}   % davor 7mm
\newcommand{\hdliii}[1]{{\large\textbf{#1}}\\[5mm]}  % davor 7mm
\newcommand{\hdliv}[1]{\textbf{#1}\\[3mm]}           % davor 5mm
\newcommand{\hdlv}[1]{{#1}\\[3mm]}                   % davor 5mm

\newcommand{\grad}{\ensuremath{^{\circ}}}
\newcommand{\einhalb}{\ensuremath{\frac{1}{2}}}
\newcommand{\entspr}{\ensuremath{\widehat{=}}}
\newcommand{\entsprungf}{\ensuremath{\widehat{\approx}}}
\newcommand{\gefordert}{\stackrel{!}{=}}
\newcommand{\defeq}{\stackrel{\mathrm{def}}{=}}
\newcommand{\exeq}{\stackrel{\mathrm{!}}{=}}
\newcommand{\einsdurch}[1]{\ensuremath{\frac{1}{#1}}}
\newcommand{\auf}{\ensuremath{\uparrow}}
\newcommand{\ab}{\ensuremath{\downarrow}}
\newcommand{\halbe}[1]{\ensuremath{\frac{#1}{2}}}
\newcommand{\punkt}{\ensuremath{\bullet}}
\newcommand{\bfindex}[1]{\textbf{#1}\index{#1}}
\newcommand{\nfindex}[1]{#1\index{#1}}
\newcommand{\emindex}[1]{{\em #1}\index{#1}}
\newcommand{\glref}[1]{~(\ref{#1})}
\newcommand{\rem}[1]{~}
\newcommand{\angstrom}{\AA}
\newcommand{\mt}{$\>$}
\newcommand{\del}{\partial}
\newcommand{\pd}[1]{{\partial \over \partial{#1}}}
\newcommand{\Tr}{\ \mathrm{Tr}\:}
\newcommand{\Det}[1]{\ \mathrm{det}\:\left( #1 \right)}
\newcommand{\Order}{\mathcal{O}}
\newcommand{\folgt}{\ensuremath{\Rightarrow}}
\newcommand{\bra}[1]{\ensuremath{\langle #1 |}}
\newcommand{\ket}[1]{\ensuremath{| #1 \rangle}}

\newcommand{\I}{\mathbb{I}}
\newcommand{\slashed}[1]{\not\!#1}
\newcommand{\bared}[1]{-\!\!\!\!#1}

\newcommand{\uvec}[1]{\underline{#1}}

\newcommand{\graphik}[4]{
        \begin{figure}[#3]
        \begin{center}
        \input{#1}
        \caption{#2\label{#4}}
        \end{center}
        \end{figure}    }
\newcommand{\bitmap}[5]{
        \begin{figure}[#3]
        \begin{center}
        \unitlength=#5 pt
        \input{#1}
        \caption{#2\label{#4}}
        \end{center}
        \end{figure}    }

% Bitmap-Bild einf�gen.
% Parameter: x, y-Gr��e (in pt), File, caption, label
%\newcommand{\pixmap}[5]
%{ \begin{figure}[!htb]
%  \special{em:graph #3, #1pt, #2pt}
%  \vspace{#2pt}
%  \caption{#4}
%  \label{pix:#5}
%  \end{figure} }

% Alternative Implementation von pixmap
\newcommand{\pixmap}[5]
{ \begin{picture}(#1,#2)
    \put(0,#2){\special{em:graph #3, #1pt, #2pt}}
  \end{picture}
  \begin{figure}[!h]
  \caption{#4 \label{pix:#5}}
  \end{figure} }

\newcommand{\pixmapnc}[3]
{ \begin{picture}(#1,#2)
    \put(0,#2){\special{em:graph #3, #1pt, #2pt}}
  \end{picture}}


\newcommand{\putps}[3]
{
  \epsfbox{#1}
  \begin{figure}[!h]
  \caption{#2 \label{pix:#3}}
  \end{figure} }

\newcommand{\fltpixmap}[6]
{
    \begin{floatingfigure}{#1\unitlength}
        \begin{picture}(#1,#2)
          \put(0,#2){\special{em:graph #3, #1pt, #2pt}}
        \end{picture}
        \caption{#4\label{#5}}
    \end{floatingfigure} }

\newcommand{\frametitle}[1]{
           \fbox{#1} \break \break }

\newcommand{\dframebox}[1]{\begin{center}{\framebox{\framebox{#1}}}\break
\end{center}}

\newcommand{\frametext}[2]{
\begin{center}{\framebox{\parbox[c]{#1}{#2}}\break}
\end{center}}

\newcommand{\dframetext}[2]{
\begin{center}{\framebox{\framebox{\parbox[c]{#1}{#2}}}}
\break \end{center}}

\newcounter{slidesection}
\newcounter{slidesubsection}
\newcounter{slidesubsubsection}
\newcounter{slidepart}

\newenvironment{PartFolie}[1]
{\begin{slide} \addtocounter{slidepart}{1} \setcounter{slidesection}{0}
\frametitle{\Huge \Roman{slidepart} \normalsize #1}}
{\end{slide}}

\newenvironment{HeadFolie}[1]
{\begin{slide} \addtocounter{slidesection}{1} \setcounter{slidesubsection}{0}
\frametitle{\huge \arabic{slidesection} \normalsize #1}}
{\end{slide}}

\newenvironment{SubFolie}[1]
{\begin{slide}
\addtocounter{slidesubsection}{1} \setcounter{slidesubsubsection}{0}
\frametitle{\huge \arabic{slidesection}.\arabic{slidesubsection} \normalsize
#1}} {\end{slide}}

\newenvironment{SubSubFolie}[1]
{\begin{slide}
\addtocounter{slidesubsubsection}{1}
\frametitle{\huge
\arabic{slidesection}.\arabic{slidesubsection}.\arabic{slidesubsubsection}
\normalsize #1}} {\end{slide}}

\newenvironment{Folie}
{\begin{slide}
\frametitle{\arabic{slidesection}.\arabic{slidesubsection}}}
{\end{slide}}

\newenvironment{Folgerungen}
{\begin{list}{$\Rightarrow$}{}}
{\end{list}}

\newenvironment{Stars}
{\begin{list}{$\star$}{}}
{\end{list}}

\newenvironment{Diamonds}
{\begin{list}{$\diamond$}{}}
{\end{list}}

\newenvironment{Bullets}
{\begin{list}{$\bullet$}{}}
{\end{list}}

\newenvironment{Circs}
{\begin{list}{$\circ$}{}}
{\end{list}}

\newenvironment{defs}[1]
        {\begin{quote}\begin{tabular}{llp{#1}}}
        {\end{tabular}\end{quote}}
\newenvironment{punkte}[1]
        {\begin{quote}\begin{tabular}{lp{#1}}}
        {\end{tabular}\end{quote}}
\newenvironment{formelsammlung}[2]
        {\setlength{\parskip}{0.6\baselineskip}
         \setlength{\baselineskip}{1.6\baselineskip}
         \begin{tabbing}
         \hspace{#1}\=\hspace{#2}\= \kill
         }
         {\end{tabbing}
         \setlength{\parskip}{0mm}
         \setlength{\baselineskip}{0.625\baselineskip}
         }
\newenvironment{formeldefs}[1]
        {\footnotesize
         $\begin{array}{llp{#1}}
         \setlength{\baselineskip}{0.625\baselineskip}
        }
        {\setlength{\baselineskip}{1.6\baselineskip}
         \end{array}$
         \normalsize
         }
\newenvironment{anmerkung}
        {\footnotesize
         \setlength{\baselineskip}{0.625\baselineskip}
         \begin{minipage}[t]{\textwidth}
        }
        {\end{minipage}
         \setlength{\baselineskip}{1.6\baselineskip}
         \normalsize
         }

\newcommand{\beachte}{\underline{\bfindex{Beachte}:} }
\newcommand{\prinzip}{\underline{\bfindex{Prinzip}:} }
\newcommand{\definition}{\underline{\bfindex{Definition}:} }
