%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ------------------------------------------------------------------------
% Grundlagen Wissenschaftlichen Arbeitens - LaTeX Style File
% ------------------------------------------------------------------------
% File name: gwa.sty
% Author: Wilfried Elmenreich
% Modifications: Raimund Kirner (13.03.2006)
% Revision: 1.1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%
%----------------------------------------------------------------- ID ---
%

\NeedsTeXFormat{LaTeX2e} \ProvidesPackage{gwa}

%
%------------------------------------------------------------ Packages --
%

\RequirePackage{times}
\RequirePackage{a4}

%
%--------------------------------------------------------- Page format --
%

\setlength{\topmargin}{-1.2cm}
\setlength{\textwidth}{16.5cm}
\setlength{\textheight}{23cm}
\setlength{\oddsidemargin}{0.3cm}
\setlength{\evensidemargin}{-0.6cm}
\setlength{\parindent}{3.5mm}
\setlength{\columnsep}{6mm}
\setlength{\hoffset}{0cm}

\def\kompakt{\setlength{\baselineskip}{.93\baselineskip}\setlength{\columnsep}{5.5mm}}

\renewcommand{\floatpagefraction}{0.9}
\renewcommand{\textfraction}{0.05}
\renewcommand{\topfraction}{1.0}
\renewcommand{\bottomfraction}{1.0}

%\DeclareOption{latex}{
%\setlength{\oddsidemargin}{1.1cm}
%\setlength{\evensidemargin}{0.1cm}}
%
%\DeclareOption{pdflatex}{
%\setlength{\oddsidemargin}{0.5cm}
%\setlength{\evensidemargin}{-0.5cm}}

%\ProcessOptions

%
%----------------------------------------- Caption and list formatting --
%

\def\section{\@startsection{section}{2}{0cm}{-1.5ex plus -.1ex minus
 -.2ex}{1.5ex}{\large\sc}}
\def\subsection{\@startsection{subsection}{2}{0cm}{-1.5ex plus -.1ex minus
 -.2ex}{1.5ex}{\normalsize\sc}}
 \def\subsubsection{\@startsection{subsubsection}{2}{0cm}{-1.5ex plus -.1ex minus
 -.2ex}{1.5ex}{\normalsize\sc}}
%\renewcommand \thesection {\@Roman\c@section}
%\renewcommand\thesubsection {\@Alph\c@subsection}

\renewcommand\labelitemi{\normalfont\bfseries --}
\renewcommand\labelitemii{$\m@th\bullet$}

%
%----------------------------------------- Title and author formatting --
%

\def\affiliations#1{\gdef\@affiliations{#1}}
\def\inst#1{\unskip$^{#1}$}

\def\authN#1{{\large#1}}
\def\matNr#1{{\normalsize\/Matr.Nr. #1}}
\def\kennZ#1{{\normalsize\/Kennzahl #1}}
\def\authI#1{{\normalsize#1}}
\def\authU#1{{\normalsize#1}}
\def\email#1{{\normalsize#1}}

\makeatletter

\makeatletter

\def\@maketitle{%
  \newpage
  \null
  \vskip 4em%
  \begin{center}%
  \let \footnote \thanks
    {\vskip -6em \LARGE \@title \par}%
    \vskip 1.5em%
    {\large
      \lineskip .5em%
      \begin{tabular}[t]{c}%
        \@author
      \end{tabular}\par}%
    \vskip 1em%
    {\normalsize \@date}%
  \end{center}%
  \par
  \vskip 1em
}

%\bibliographystyle{unsrt}
\pagestyle{plain}

%
%---------------------------------------------------- Abstract command --
%

\newenvironment{absenv}{%
      \list{}{\advance\topsep by0.35cm
      \relax\small
      \leftmargin=0cm
      \labelwidth=\z@
      \listparindent=0cm
      \itemindent=0cm
      \rightmargin\leftmargin
      }\item[\hskip\labelsep
        \bfseries Abstract] --- \em \setlength{\parskip}{0pt}}

\renewcommand{\abstract}[1]{
  \begin{absenv}
  #1
  \end{absenv}
  \vskip 1.5em
  \thispagestyle{plain}}

%
%---------------------------------------------------- Abstract command --
%

\renewenvironment{thebibliography}[1]
     {\section*{\refname}%
      \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
      \list{\@biblabel{\@arabic\c@enumiv}}%
           {\settowidth\labelwidth{\@biblabel{#1}}%
           \setlength{\parsep}{0em}
           \setlength{\itemsep}{1pt}
            \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}

% = eof ==================================================================
