\def\fileversion{0.01}
\def\filedate{2004/06/07}
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{seminar}[\filedate\space Version \fileversion\space by
  Alexander Knapp]

\LoadClass[a4paper,12pt,fleqn,leqno,tbtags]{amsart}
\DeclareOption*{%
  \PassOptionsToClass{\CurrentOption}{amsart}%
}
\ProcessOptions
% Redefine section, subsection, and paragraph
\def\section{\@startsection{section}{1}%
  \z@{1.5\linespacing\@plus.5\linespacing}{.5\linespacing}%
  {\normalfont\scshape\centering}}
\def\subsection{\@startsection{subsection}{2}%
  \z@{1\linespacing\@plus.3\linespacing}{.5\linespacing}%
  {\normalfont\itshape}}
\def\paragraph{\@startsection{paragraph}{4}%
  \z@{.5\linespacing\@plus.16\linespacing}{-\fontdimen2\font}%
  {\normalfont\itshape}}
% Redefine line of table of contents
\def\@tocline#1#2#3#4#5#6#7{\relax
  \ifnum #1>\c@tocdepth % then omit
  \else
    \par \addpenalty\@secpenalty\addvspace{#2}%
    \begingroup \hyphenpenalty\@M
    \@ifempty{#4}{%
      \@tempdima\csname r@tocindent\number#1\endcsname\relax
    }{%
      \@tempdima#4\relax
    }%
    \parindent\z@ \leftskip#3\relax \advance\leftskip\@tempdima\relax
    %\rightskip\@pnumwidth plus4em \parfillskip-\@pnumwidth
    \rightskip\@pnumwidth plus4em \parfillskip-\@pnumwidth \advance\parfillskip#3\relax
    #5\leavevmode\hskip-\@tempdima #6\nobreak\relax
    \leaders\hbox to 1em{\hss.\hss}\hfil\hbox to\@pnumwidth{\@tocpagenum{#7}}\par
    %\hfil\hbox to\@pnumwidth{\@tocpagenum{#7}}\par
    \nobreak
    \endgroup
  \fi}

\RequirePackage[german]{babel}
\RequirePackage[latin1]{inputenc}
\RequirePackage{amsmath,amssymb,amsthm}
% Redefine proof
\renewenvironment{proof}[1][\proofname]{\par
  \pushQED{\qed}%
  \normalfont\topsep\abovedisplayskip% \topsep6\p@\@plus6\p@\relax
  \trivlist
  \item[\hskip\labelsep
        \itshape
    #1\@addpunct{.}]\ignorespaces
}{%
  \popQED\endtrivlist\@endpefalse
}
\newtheoremstyle{def}{\abovedisplayskip}{\belowdisplayskip}{\upshape}{}{\bfseries}{.}{ }{}
\theoremstyle{def}
\newtheorem{definition}{Definition}
\newtheorem{lemma}[definition]{Lemma}
\newtheorem{proposition}[definition]{Satz}
\newtheorem{corollary}{Korollar}
\RequirePackage{latexsym,stmaryrd}
\let\url\@undefined
\RequirePackage{url}
\RequirePackage{subfigure}
\RequirePackage{multicol}
\RequirePackage{epic,eepic}
\RequirePackage{longtable}
\RequirePackage{graphicx}

% Formatting
\advance\topmargin by -1.2cm
%\advance\textheight by 1cm
\textheight647pt
\advance\evensidemargin by -1.1cm
\advance\oddsidemargin by -1.1cm
\advance\textwidth by 2.2cm
\parindent0pt
%\newif\ifdoublespaced\doublespacedtrue
\newif\ifdoublespaced\doublespacedfalse
\ifdoublespaced\renewcommand{\baselinestretch}{1.5}\else\fi
\renewcommand{\topfraction}{0.99}
\renewcommand{\bottomfraction}{0.99}
\renewcommand{\textfraction}{0.01}
\setlength\textfloatsep{6mm plus 4pt minus 4pt}
\allowdisplaybreaks
%\raggedbottom


