%% =====================================================
%%                  IEEEdefs.Anderl.tex
%%             Version:  1.00 --- 31.08.1999
%% Hilfsmakros f"ur IEEE-Artikel  von Anderl Niedermeier
%% niederma@ma.tum.de --- http://www.in.tum.de/~niederma
%% -----------------------------------------------------
%% Quelle http://www.fs.tum.de/~niederma/prgs/myprg.html
%% =====================================================
%% Neu: o \AutorKurz und \AutorLang statt \author
%%      o Bilder/Tabellen nach vorne:
%%          \def\Bildname{\begin{figure}...\end{figure}}
%%          \def\Tabname {\begin{table} ...\end{table}}
%%      o Bilder/Tabellen im Text: 
%%          \PicturesFront\Bildname
%%      o Bilder/Tabellen am Ende: 
%%          \PicturesEnd\Bildname
%%      o \pg statt \clearpage vor Kapiteln
%%      o twocolumn in documentclass schaltet um!
%%      o Biographie mit Bild:
%%          \begin{picbiography}{Name}{%
%%            \includegraphics[width=25mm]{bild.eps}
%%          ... (Text)
%%          \end{picbiography}
%% -----------------------------------------------------
%% Verwendung:
%%   \documentclass[10pt,twocolumn,twoside]{IEEEtran}
%%   %\documentclass[12pt,draft]{IEEEtran}
%%   \usepackage{...}
%%   \input IEEEdefs.Anderl.tex
%%   \AutorKurz{...}
%%   \AutorLang{...}
%%   \title{...}
%%   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%IMAGES/TABLES
%%   \def\Bild1{\begin{figure}...\end{figure}} 
%%   ...
%%   \def\Tab1{\begin{table}...\end{table}} 
%%   ...
%%   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%   \begin{document} 
%%   ...
%%   \pg\section{...}
%%   ...
%%   \PicturesFront\Bild1
%%   ...
%%   \PicturesFront\Tab1
%%   ...
%%   \bibliographystyle{IEEE}
%%   \bibliography{...}
%%   \PicturesEnd\Tab1
%%   ...
%%   \PicturesEnd\Bild1
%%   ...
%%   \pg 
%%   \begin{picbiography}...\end{picbiography}
%%   ...
%%   \end{document}
%% -----------------------------------------------------
\catcode`\~=11
\typeout{Hilfsmakros f"ur IEEE-Artikel Version: 1.00 von Anderl Niedermeier}
\typeout{niederma@ma.tum.de --- http://www.fs.tum.de/~niederma}
\catcode`\~=13

%% Blackboard Bold font:
\DeclareFontFamily{OT1}{fcmbb}{}
\DeclareFontShape{OT1}{fcmbb}{m}{n}
    { <5> bbm5 <6> bbm6 <7> bbm7 <8> bbm8 <9> bbm9 <10> bbm10
      <10.95><12> bbm12 <14.4><17.28><20.74><24.88> bbm17 }{}
\DeclareOldFontCommand{\bbf}{\normalfont fcmbb}{\mathbb}
\DeclareMathAlphabet{\mathbb}{OT1}{fcmbb}{m}{n}
\def\Bb#1{{\bbf#1}}

%% Mathe Definitionen:
\def\d{{\mathrm{d}}}               %nichtkursives d f"ur Integralformen
\def\sinc{\mathrm{sinc}}           %Sinus Cardinalis
\def\L#1#2{{L^#1(\Bb #2)}}         %L^p - R"aume
\def\C#1#2{{{\cal C}^#1(\Bb #2)}}  %C^k - R"aume

%% Draft/Final Umstellungen:
\def\autorLang{}
\def\autorKurz{}
\def\AutorLang#1{\def\autorLang{#1}}
\def\AutorKurz#1{\def\autorKurz{#1}}
\makeatletter
\if@twocolumn
  \def\pg{}
  \author{\autorKurz}
  \def\PicturesEnd#1{}
  \def\PicturesFront#1{#1}
  \setcounter{page}{1}
\else
  \def\pg{\clearpage}
  \author{\autorLang}
  \def\PicturesEnd#1{\pg#1}
  \def\PicturesFront#1{}
  \setcounter{page}{0}
\fi
\makeatother

%% Biography mit Bild
\newenvironment{picbiography}[2]{%
\footnotesize\unitlength 1mm\bigskip\bigskip\bigskip\parskip=0pt\par%
\rule{0pt}{39mm}\vspace{-39mm}\par%   garantees correct page breaking
\noindent\setbox0\hbox{\framebox(25,32){#2}}%   box containing the frame
\ht0=37mm\count10=\ht0\divide\count10 by\baselineskip%  calculates lines
\global\hangindent29mm\global\hangafter-\count10%
\hskip-28.5mm\setbox0\hbox to 28.5mm {\raise-30.5mm\box0\hss}%
\dp0=0mm\ht0=0mm\box0\noindent\bf#1\rm}{
\par\rm\normalsize}
