%%
%% This is file `4beige.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% wind.dtx  (with options: `4beige')
%% 
%% Copyleft 1997  Stefan Blochwitz, Andreas Tille
%% 
%% Benutzung auf eigene Gefahr
%% 


\csname @ifundefined\endcsname{tableofabbreviations}{}{\endinput}
\NeedsTeXFormat{LaTeX2e}
\newcommand{\at@caption}{\@ifstar\at@caption@star\latexcaption}
\long\def\at@caption@star#1{\begingroup
    \@parboxrestore
    \normalsize
    \@makecaption{}{\ignorespaces #1}\par
  \endgroup}
\newcommand{\LeftCap}{\renewcommand{\at@capfil}{\relax}}
\newcommand{\at@capfil}{\hfil}
\newcommand{\at@makecaption}[2]{%
  \vskip\abovecaptionskip
  \def\at@test{#1}%
  \ifx\at@test\@empty\relax\else\def\at@test{{\bf #1:~}}\fi%
  \sbox\@tempboxa{\footnotesize\at@test #2}%
  \ifdim \wd\@tempboxa >\hsize
    {\footnotesize\at@test #2}\par
  \else
    \global \@minipagefalse
    \hb@xt@\hsize{\at@capfil\box\@tempboxa\hfil}%
  \fi
  \vskip\belowcaptionskip}
\let\latexcaption=\caption
\let\latex@makecaption=\@makecaption
\renewcommand{\caption}{\at@caption}
\renewcommand{\@makecaption}{\at@makecaption}
\newcommand{\longwrittensection}{\global\let\old@sect\@sect%
\def\@sect##1##2##3##4##5##6[##7]##8{\global\let\@sect\old@sect
  \ifnum ##2>\c@secnumdepth
     \let\@svsec\@empty\else
     \refstepcounter{##1}%
     \let\@@protect\protect
     \def\protect{\noexpand\protect\noexpand}%
     \edef\@svsec{\@seccntformat{##1}}%
     \let\protect\@@protect\fi
     \@tempskipa ##5\relax
      \ifdim \@tempskipa>\z@
        \begingroup ##6\relax
          \@hangfrom{\hskip ##3\relax\@svsec}%
                    {\interlinepenalty \@M ##8\par}%
        \endgroup
       \csname ##1mark\endcsname{##7}\addcontentsline
         {toc}{##1}{\ifnum ##2>\c@secnumdepth \else
                      \protect\numberline{\csname the##1\endcsname}\fi
                    ##8}\else%
        \def\@svsechd{##6\hskip ##3\relax  %% \relax added 2 May 90
                   \@svsec ##8\csname ##1mark\endcsname
                      {##7}\addcontentsline
                           {toc}{##1}{\ifnum ##2>\c@secnumdepth \else
                           \protect\numberline{\csname the##1\endcsname}%
                                     \fi
                       ##8}}\fi
     \@xsect{##5}}}
\@ifundefined{chapter}{}{%
   \let\latexchapter=\chapter
   \renewcommand{\chapter}{\longwrittensection\latexchapter}
   \let\oldchaptermark\chaptermark
}
\let\oldsectionmark\sectionmark
\let\latexsection=\section
\let\latexsubsection=\subsection
\let\latexsubsubsection=\subsubsection
\renewcommand{\section}{\longwrittensection\latexsection}
\renewcommand{\subsection}{\longwrittensection\latexsubsection}
\renewcommand{\subsubsection}{\longwrittensection\latexsubsubsection}
\@ifundefined{chapter}{%
   \newcommand{\at@rightmark}{section}%
   \newcommand{\at@leftmark}{subsection}%
   \newcommand{\at@rightnum}{\thesection\quad}%
   \newcommand{\at@leftnum}{\thesubsection\quad}%
   \newcommand{\at@bibname}{\refname}
   \newcommand{\at@chapterasterix}{\section*}
}{%
   \newcommand{\at@rightmark}{chapter}%
   \newcommand{\at@leftmark}{section}%
   \newcommand{\at@rightnum}{\@chapapp\ \thechapter. \ \relax}%
   \newcommand{\at@leftnum}{\thesection. \ \relax}%
   \newcommand{\at@bibname}{\bibname}
   \newcommand{\at@chapterasterix}{\chapter*}
}
\if@twoside
    \newcommand{\ps@beige}{%
      \let\@oddfoot\@empty\let\@evenfoot\@empty
      \def\@evenhead{\thepage\hfil\leftmark}%
      \def\@oddhead{\rightmark\hfil\thepage}%
      \let\@mkboth\markboth
      \expandafter\def\csname\at@rightmark mark\endcsname##1{%
        \markboth {\rm\small{\ifnum \c@secnumdepth >\z@
            \at@rightnum\fi%
            ##1}}{}}%
      \expandafter\def\csname\at@leftmark mark\endcsname##1{%
        \markright {\rm\small{\ifnum \c@secnumdepth >\@ne
            \at@leftnum\fi%
            ##1}}}}
\else
    \newcommand{\ps@beige}{%
      \let\@oddfoot\@empty
      \def\@oddhead{\rightmark\hfil\thepage}%
      \let\@mkboth\markboth
      \expandafter\def\csname\at@rightmark mark\endcsname##1{%
        \markright {\rm\small{\ifnum \c@secnumdepth >\m@ne
            \at@rightnum\fi%
            ##1}}}}
\fi
\pagestyle{beige}
\newcommand\attableofcontents{%
    \if@twocolumn
      \@restonecoltrue\onecolumn
    \else
      \@restonecolfalse
    \fi
    \@mkboth{{\rm\small\contentsname}}{{\rm\small\contentsname}}
    {\at@chapterasterix{\contentsname}}
    \@starttoc{toc}%
    \if@restonecol\twocolumn\fi
    }
\let\oldtableofcontents=\tableofcontents
\renewcommand{\tableofcontents}{\attableofcontents}
\newenvironment{atthebibliography}[1]
     {\at@chapterasterix{\at@bibname
        \@mkboth{\rm\small\at@bibname}{\rm\small\at@bibname}}%
      \addcontentsline{toc}{\at@rightmark}{\at@bibname}
      \list{\@biblabel{\@arabic\c@enumiv}}%
           {\settowidth\labelwidth{\@biblabel{#1}}%
            \leftmargin\labelwidth
            \advance\leftmargin\labelsep
            \@openbib@code
            \usecounter{enumiv}%
            \let\p@enumiv\@empty
            \renewcommand\theenumiv{\@arabic\c@enumiv}}%
      \sloppy
      \clubpenalty4000
      \@clubpenalty \clubpenalty
      \widowpenalty4000%
      \sfcode`\.\@m}
     {\def\@noitemerr
       {\@latex@warning{Empty `thebibliography' environment}}%
      \endlist}
\let\oldthebibliography=\thebibliography
\renewcommand{\thebibliography}{\atthebibliography}
\newcommand{\abbreviationsname}{Abk\"urzungsverzeichnis}
\newcommand\tableofabbreviations{%
    \at@chapterasterix{\abbreviationsname
        \@mkboth{{\rm\small \abbreviationsname}}%
                {{\rm\small \abbreviationsname}}}%
    \addcontentsline{toc}{\at@rightmark}{\abbreviationsname}%
    \thispagestyle{empty}%
    }
\renewcommand{\topfraction}{0.99}
\renewcommand{\bottomfraction}{0.99}
\renewcommand{\textfraction}{0.01}
\renewcommand{\floatpagefraction}{0.80}
\DeclareOption{nodottedcontentsline}{\NoDottedContentsline}
\newif\ifdottedcontentsline
\dottedcontentslinetrue
\newcommand{\NoDottedContentsline}{\dottedcontentslinefalse}
\ProcessOptions
\renewcommand{\@dottedtocline}[5]{%
  \ifnum #1>\c@tocdepth \else
    \vskip \z@ \@plus.2\p@
    {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
     \parindent #2\relax\@afterindenttrue
     \interlinepenalty\@M
     \leavevmode
     \@tempdima #3\relax
     \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
     {#4}\nobreak
     \ifdottedcontentsline\leaders\hbox{$\m@th
        \mkern \@dotsep mu\hbox{.}\mkern \@dotsep
        mu$}\fi\hfill
     \nobreak
     \hb@xt@\@pnumwidth{\hfil\normalfont \normalcolor #5}%
     \par}%
  \fi}
\newlength\emergencyadd
\newcommand{\tolerant}[1]
           {\emergencyadd=#1\advance\emergencystretch\emergencyadd}
\newcommand{\pingelig}{\par\advance\emergencystretch-\emergencyadd}



\endinput
%%
%% End of file `4beige.sty'.
