\def\fileversion{0.4}
\def\filedate{1997/02/26}
  \NeedsTeXFormat{LaTeX2e}
  \ProvidesPackage{billing}[\filedate\space\fileversion\space
                       Layout fuer MPI-Bericht]
%%
\RequirePackage[T1]{fontenc}
\RequirePackage{epsfig}
\RequirePackage{times}

\RequirePackage[footnotesize,it]{caption}

\renewcommand{\captionfont}{\footnotesize\itshape}



% Seiten-Abmessungen

\setlength\textheight {42\baselineskip}         %% (\baselineskip=12pt)

\setlength\marginparwidth {1em}
\setlength\oddsidemargin {44pt}
\setlength\evensidemargin {70pt}

\setlength\topmargin {11mm}
\setlength\headsep {0mm}
\setlength\headheight {0mm}
\setlength\textwidth {108mm}

\parskip0pt plus1pt
\parindent 1.1em                %  entspricht 11pt in 10pt-Times-Roman



% Abschnitts-Ueberschriften

\renewcommand{\section}{\@startsection
        {section}%                                      % name
        {1}%                                            % level
        {0mm}%                                          % indent
        {-1.7142857\baselineskip}%                      % beforeskip    -- entspricht 24pt bei 12pt Schrift
        {0.85714286\baselineskip plus1pt minus1pt}%     % afterskip     -- entspricht 12pt bei 12pt Schrift
        {\normalfont\large\upshape}}%                   % style

\renewcommand{\subsection}{\@startsection
        {subsection}%                                   % name
        {2}%                                            % level
        {0mm}%                                          % indent
        {-0.85714286\baselineskip}%                     % beforeskip    -- entspricht 12pt bei 12pt Schrift
        {0.85714286\baselineskip plus1pt minus1pt}%     % afterskip     -- entspricht 12pt bei 12pt Schrift
        {\normalfont\large\itshape}}%                   % style

\renewcommand{\subsubsection}{\@startsection
        {subsubsection}%                                % name
        {3}%                                            % level
        {0mm}%                                          % indent
        {-1\baselineskip plus1pt minus1pt}%             % beforeskip
        {0.5\baselineskip plus1pt minus1pt}%            % afterskip
        {\normalfont\normalsize\itshape}}%              % style



% Kopf- und Fusszeilen  --  neuer Pagestyle 'bookplain'

\newcommand{\ps@bookplain}{%
   \renewcommand{\@oddhead}{}%
   \renewcommand{\@evenhead}{}%
   \renewcommand{\@evenfoot}{\textrm{\thepage}\hfil}%
   \renewcommand{\@oddfoot}{\hfil\textrm{\thepage}}}



% Titelseite, Abstract, Danksagung

\renewenvironment{abstract}
  {\subsubsection*{\abstractname}%
        \footnotesize}
  {\par\normalsize}

\newenvironment{manythanks}
  {\subsubsection*{\manythanksname}%
        \footnotesize}
  {\par\normalsize}

\renewcommand{\@maketitle}{%
        \newpage%
        \noindent\rule{\linewidth}{4pt}\\[-2.5mm]%
        \noindent\rule{\linewidth}{0.25mm}%
        \null%
        \vskip 54mm%
        \begin{flushleft}%
        {\Large \@title \par}%                          % 14.4pt in 10pt-article-class
        \vskip 16pt%
        {\large%                                        % 12pt   in 10pt-article-class
                \lineskip 0.5em%
                \@author%
        \par}%
        \end{flushleft}%
        \vskip 1.5em%
        \par}%



% Bilder und Float-Control

\renewcommand{\textfraction}{0.115}
\renewcommand{\topfraction}{0.8}
\renewcommand{\bottomfraction}{0.8}
\renewcommand{\floatpagefraction}{0.7}



% Listen-Umgebungen modifizieren (nur erste und zeite Stufe -- nur fuer 10pt):

\renewcommand{\labelitemi}{\makebox[1.1em][l]{\bfseries --}}
\renewcommand{\labelitemii}{\makebox[1.1em][l]{$\m@th\cdot$}}

\renewcommand{\labelenumi}{\makebox[1.1em][l]{\theenumi.}}
\renewcommand{\labelenumii}{\makebox[1.1em][l]{\theenumii)}}

\setlength\partopsep{0\p@}
\setlength\leftmargini {1.1em}
\setlength\leftmarginii {1.1em}

\setlength\labelsep {0pt}
\setlength\labelwidth {\leftmargini}
\addtolength\labelwidth {-\labelsep}

\def\@listI{\leftmargin\leftmargini%
        \parsep 0\p@%
        \topsep 3\p@ \@plus1\p@ \@minus2\p@%
        \itemsep 0\p@}
\let\@listi\@listI
\@listi

\def\@listii{\leftmargin\leftmarginii
        \labelwidth\leftmarginii
        \advance\labelwidth-\labelsep
        \parsep 0\p@%
        \topsep 2\p@ \@plus0\p@ \@minus1\p@%
        \itemsep \parsep}



% sprachabhaengige Parameter (Namen von Abbildungen, etc)

\let\OLDcaptionsgerman=\captionsgerman          % alte Definitionen retten
\let\OLDcaptionsenglish=\captionsenglish        % alte Definitionen retten

\def\captionsgerman{%
        \OLDcaptionsgerman%
        \def\figurename{Abb.}%
        \def\tablename{Tab.}%
        \def\manythanksname{Danksagung}}

\def\captionsenglish{%
        \OLDcaptionsenglish%
        \def\figurename{Fig.}%
        \def\tablename{Tab.}%
        \def\manythanksname{Acknowledgements}}

\let\captionsUSenglish=\captionsenglish

\ifnum\language=\l@german
        \message{deutsch}
        \captionsgerman
\else
        \message{englisch}
        \captionsenglish
\fi



% Fussnoten-Layout aendern

\long\def\@makefntext#1{%
        \parindent 1.1em\noindent
        \hbox to 15\p@{\hss\@makefnmark}#1}




% Literaturverzeichnis-Layout aendern

\renewenvironment{thebibliography}[1]
     {\subsubsection*{\refname
        \@mkboth{\uppercase{\refname}}{\uppercase{\refname}}}%
      \list{\@biblabel{\arabic{enumiv}}}%
           {\settowidth\labelwidth{\@biblabel{#1}}%
            \leftmargin\labelwidth
            \setlength\labelsep{0.5em}          % Aenderungen in den List-Env. rueckgaengig machen
            \advance\leftmargin\labelsep
            \@openbib@code
            \usecounter{enumiv}%
            \let\p@enumiv\@empty
            \renewcommand{\theenumiv}{\arabic{enumiv}}%
                \footnotesize%          % muss vor Def. von \itemsep, etc. stehen
                \itemsep 0cm%           %
                \parsep 0cm%            %    Aenderungen !!!
                \parskip 0cm}%          %
        \renewcommand{\newblock}{\hskip .11em \@plus.33em \@minus.07em}%
      \sloppy\clubpenalty4000\widowpenalty4000%
      \sfcode`\.=\@m}
     {\def\@noitemerr
       {\@latex@warning{Empty `thebibliography' environment}}%
      \endlist%
      \normalsize}                      %    Aenderung !!!
\let\@openbib@code\@empty


\endinput
%% 
%% End of file `billing.sty'.
