%%%%%%%%%%%%%%%%%%%%%%%%%%%
%kapitelvorschlag für TOC %
%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\@makeschapterhead#1{{\parindent0pt\raggedright
  \hyphenpenalty \@M
  \Large\bf\boldmath
  \ignorespaces#1\par
  \ifdim\pagetotal>118pt
     \vskip 24pt
  \else
     \@tempdima=118pt\advance\@tempdima by-\pagetotal
     \vskip\@tempdima
  \fi}}

\newcommand\setpnumwidth[1]{\def\@pnumwidth{#1}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%TOC Autorennamen linksbündig %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\renewcommand\maketitle{\par
  \stepcounter{section}%
  \setcounter{section}{0}%
  \setcounter{subsection}{0}%
  \setcounter{figure}{0}
  \setcounter{table}{0}
  \setcounter{equation}{0}
  \setcounter{footnote}{0}%
  \begingroup
    \parindent=\z@
    \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
    \if@twocolumn
      \ifnum \col@number=\@ne
        \@maketitle
      \else
        \twocolumn[\@maketitle]%
      \fi
    \else
      \newpage
      \global\@topnum\z@   % Prevents figures from going at top of page.
      \@maketitle
    \fi
\@ifundefined{thispagecropped}{}{\thispagecropped}
%\csname thispagecropped\endcsname
    \thispagestyle{empty}\@thanks
%
    \def\\{\unskip\ \ignorespaces}\def\inst##1{\unskip{}}%
    \def\thanks##1{\unskip{}}\def\fnmsep{\unskip}%
    \instindent=\hsize
    \advance\instindent by-\headlineindent
    \if!\the\toctitle!\addcontentsline{toc}{title}{\if@numart\else
                                   \@seccntformat{chapter}\fi
    \@title}\else
       \addcontentsline{toc}{title}{\if@numart\else
                                   \@seccntformat{chapter}\fi
       \the\toctitle}\fi
    \if@runhead
       \if!\the\titlerunning!\else
         \edef\@title{\the\titlerunning}%
       \fi
       \global\setbox\titrun=\hbox{\small\rm\unboldmath\if@numart\else
                                   \@seccntformat{chapter}\fi
                                   \ignorespaces\@title}%
       \ifdim\wd\titrun>\instindent
          \typeout{Title too long for running head. Please supply}%
          \typeout{a shorter form with \string\titlerunning\space prior to
                   \string\maketitle}%
          \global\setbox\titrun=\hbox{\small\rm
          Title Suppressed Due to Excessive Length}%
       \fi
       \xdef\@title{\copy\titrun}%
    \fi
%
    \if!\the\tocauthor!\relax
      {\def\and{\noexpand\protect\noexpand\and}%
      \protected@xdef\toc@uthor{\@author}}%
    \else
      \def\\{\noexpand\protect\noexpand\newline}%
      \protected@xdef\scratch{\the\tocauthor}%
      \protected@xdef\toc@uthor{\scratch}%
    \fi
    \addtocontents{toc}{{\protect\raggedright
    %\protect\leftskip15\p@
    \protect\rightskip\@tocrmarg
    \protect\advance\protect\rightskip\@flushglue
    \protect\itshape\toc@uthor\protect\endgraf}}%
    \if@runhead
       \if!\the\authorrunning!
         \value{@inst}=\value{@auth}%
         \setcounter{@auth}{1}%
       \else
         \edef\@author{\the\authorrunning}%
       \fi
       \global\setbox\authrun=\hbox{\small\unboldmath\@author\unskip}%
       \ifdim\wd\authrun>\instindent
          \typeout{Names of authors too long for running head. Please supply}%
          \typeout{a shorter form with \string\authorrunning\space prior to
                   \string\maketitle}%
          \global\setbox\authrun=\hbox{\small\rm
          Authors Suppressed Due to Excessive Length}%
       \fi
       \xdef\@author{\copy\authrun}%
       \markboth{\@author}{\@title}%
     \fi
  \endgroup
  \setcounter{footnote}{0}%
  \clearheadinfo}

%%%%%%%%%%%%%%%%%%%%%%%%
% List of Contributors %
%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\contriblistname}{List of Contributors}

\def\contributorlist{\@restonecoltrue
   \if@twocolumn\@restonecolfalse\fi
   \columnseprule \z@ \columnsep 20\p@
   \twocolumn[\@makeschapterhead{\contriblistname}]%
   \markboth{\contriblistname}{\contriblistname}%
   \let\and\bigskip
   \parindent\z@\obeylines}

\def\endcontributorlist{\if@restonecol\onecolumn\else\clearpage\fi}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Punkt hinter Kapitelnummer%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%ging nicht


%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Part
%%%%%%%%%%%%%%%%%%%%%%%%%%

\@ifundefined{clearemptydoublepage}{\newcommand{\clearemptydoublepage}{%
            \newpage{\pagestyle{empty}\cleardoublepage}}}{}
%
\renewcommand\part{\clearemptydoublepage
                 \thispagestyle{empty}%
                 \if@twocolumn
                     \onecolumn
                     \@tempswatrue
                   \else
                     \@tempswafalse
                 \fi
                 \secdef\@part\@spart}

\def\@part[#1]#2{\ifnum \c@secnumdepth >-2\relax  % IF secnumdepth > -2
        \refstepcounter{part}                     %   THEN step part counter
        \addcontentsline{toc}{part}{\partname\    %        add toc line
        \thepart. #1}\else                        %   ELSE add unnumbered line
        \addcontentsline{toc}{part}{#1}\fi        % FI
   \markboth{}{}
   {\raggedleft                      % added 8.1.92 FUH
    \ifnum \c@secnumdepth >-2\relax  % IF secnumdepth > -2
      \Large\partname\ \thepart      %   THEN Print 'Part' and number
    \par                             %         in \Large
    \vskip 28pt \fi                  %        Add space before title.
    \bf\boldmath                     % FI
    #2\par}\@endpart}                % Print Title in \Large bold.
\def\@endpart{\clearemptydoublepage  % End page with 1fil glue.
   }


%%%%%%%%%%%%%%%%
% Summary      %
%%%%%%%%%%%%%%%%

\renewcommand{\abstractname}{Summary.}

%%%%%%%%%%%%%%%%%%%
%keine Affiliation im Beitragskopf obligatorisch
%%%%%%%%%%%%%%%%%%%5

\def\institutename{%
\if!\@institute!\else
 \par\begingroup
 \parskip=\z@
 \parindent=\z@
 \setcounter{@inst}{1}%
 \def\and{\par\stepcounter{@inst}%
          \noindent
          \llap{\hbox to\instindent{\hss$^{\the@inst}$%
                              \enspace}}\ignorespaces}%
 \setbox0=\vbox{\def\thanks##1{}\@institute}%
 \ifnum\value{@inst}>9\relax\setbox0=\hbox{$^{88}$\enspace}%
                 \else\setbox0=\hbox{$^{8}$\enspace}\fi
 \instindent=\wd0
 \leftskip=\wd0\relax
 \ifnum\value{@inst}=1\relax
   \leftskip=\z@
 \else
   \setcounter{footnote}{\c@@inst}%
   \setcounter{@inst}{1}%
   \noindent
   \llap{\hbox to\instindent{\hss$^{\the@inst}$\enspace}}\ignorespaces
 \fi
 \ignorespaces
 \@institute\par
 \endgroup
\fi}
\def\clearheadinfo{\gdef\@author{No Author Given}%
                   \gdef\@title{No Title Given}%
                   \gdef\@subtitle{}%
                   \gdef\@institute{}%
                   \gdef\@thanks{}%
                   \global\titlerunning={}\global\authorrunning={}%
                   \global\toctitle={}\global\tocauthor={}}
\clearheadinfo

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Kapitelvorschlag im Beitrag
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\def\@maketitle{\newpage
 \markboth{}{}%
 \def\lastand{\ifnum\value{@inst}=2\relax
                 \unskip{} \andname\
              \else
                 \unskip \lastandname\
              \fi}%
 \def\and{\stepcounter{@auth}\relax
          \ifnum\value{@auth}=\value{@inst}%
             \lastand
          \else
             \unskip,
          \fi}%
  \raggedright
 {\Large \bfseries\boldmath
  \pretolerance=10000
  \if@numart
     \stepcounter{chapter}%
     \addtocounter{chapter}{-1}%
     \let\@svsec\@empty
  \else
     \refstepcounter{chapter}%
     \protected@edef\@svsec{\@seccntformat{chapter}\relax}%
  \fi
  \let\\=\newline
% \@hangfrom{\@svsec}%
  \@svsec
  \interlinepenalty \@M
  \@title \par}\vskip .8cm
\if!\@subtitle!\else {\large \bfseries\boldmath
  \vskip -.65cm
  \pretolerance=10000
  \@subtitle \par}\vskip .8cm\fi
 \setbox0=\vbox{\setcounter{@auth}{1}\def\and{\stepcounter{@auth}}%
 \def\thanks##1{}\@author}%
 \global\value{@inst}=\value{@auth}%
 \global\value{auco}=\value{@auth}%
 \setcounter{@auth}{1}%
{\lineskip .5em
\noindent\ignorespaces
\@author\vskip.35cm}
 {\small\institutename}%
 \ifdim\pagetotal>93pt
     \else
     \@tempdima=93pt\advance\@tempdima by-\pagetotal
     \vskip\@tempdima
  \fi}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%Platzhalter-Box fuer Abbildungen
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%
% Frame for paste-in figures or tables
\def\mpicplace#1#2{%#1 = width   #2 = height
\vbox{\@tempdima=#2\advance\@tempdima by-2\fboxrule
\hrule\@height \fboxrule\@width #1
\hbox to #1{\vrule\@width \fboxrule\@height\@tempdima\hfil
\vrule\@width \fboxrule\@height\@tempdima}\hrule\@height
\fboxrule\@width #1}}
