%%%  degm.cls   %%%

\usepackage{amsthm}
\theoremstyle{plain}

\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{degm}
         [2001/03/31 v0.4 Verlag Walter de Gruyter]
\DeclareOption*{%
    \PassOptionsToClass  {\CurrentOption}{article}}
\ProcessOptions
\LoadClass[a4paper,twoside]{article}

\RequirePackage{amsmath,amssymb}

\textheight192mm
\textwidth125mm
\vbadness=10000
\hbadness=10000
\topskip=12pt
\parindent=0.5cm
\parskip=0pt
\widowpenalty=10000
\clubpenalty=10000
\hfuzz=1.5pt
\setlength\headheight{8.5\p@}
\setlength\headsep{6mm}

\renewcommand{\@seccntformat}[1]{\csname the#1\endcsname}


\renewcommand\large{\@setfontsize\large\@xiipt{14.4}}
\renewcommand\Large{\@setfontsize\Large\@xivpt{16}}
\renewcommand\LARGE{\@setfontsize\LARGE\@xviipt{20}}

\renewcommand\normalsize{%
   \@setfontsize\normalsize\@xpt\@xiipt
   \abovedisplayskip 6\p@ \@plus1\p@
   \abovedisplayshortskip 6\p@ \@plus1\p@
   \belowdisplayshortskip 6\p@ \@plus1\p@
   \belowdisplayskip \abovedisplayskip
   \let\@listi\@listI}
\normalsize

\renewcommand\ps@headings{%
  \let\@oddfoot\@empty\let\@evenfoot\@empty
  \def\@evenhead{}%\small\itshape[Page \thepage]\hfil}%
  \def\@oddhead{}%\hfil\small\itshape[Page \thepage]}%
  \let\@mkboth\markboth
  \def\sectionmark##1{%
    \markboth {\uppercase{\ifnum \c@secnumdepth >\z@
        \thesection.\relax\fi
        ##1}}{}}%
  \def\subsectionmark##1{%
    \markright {\ifnum \c@secnumdepth >\@ne
        \thesubsection\relax \fi
        ##1}}}


\renewcommand\ps@myheadings{%
    \let\@oddfoot\@empty\let\@evenfoot\@empty
    \def\@evenhead{\thepage\hfil\small\leftmark\hfil}%
    \def\@oddhead{\hfil{\small\rightmark}\hfil\thepage}%
    \let\@mkboth\@gobbletwo
    \let\sectionmark\@gobble
    \let\subsectionmark\@gobble
    }

\renewcommand\maketitle{\par
  \begingroup
    \renewcommand\thefootnote{\fnsymbol{footnote}}%
    \def\@makefnmark{\hbox to\z@{$\m@th^{\@thefnmark}$\hss}}%
    \long\def\@makefntext##1{\parindent 1em\noindent
            \hbox to1.8em{\hss$\m@th^{\@thefnmark}$}##1}%
    \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
    \thispagestyle{headings}
    \@thanks
  \endgroup
  \setcounter{footnote}{0}%
  \let\thanks\relax
  \let\maketitle\relax\let\@maketitle\relax
  \gdef\@thanks{}\gdef\@author{}\gdef\@title{}}


\renewcommand\@maketitle{%
  \newpage
%  \null
%  \vskip 2em%
  \begin{center}%
    {\LARGE\bfseries \@title \par}%
    \vskip 24\p@%
        {\Large\itshape
      \lineskip .5em%
      \begin{tabular}[t]{c}%
        \@author
      \end{tabular}\par}%
%    \vskip 1em%
%    {\large \@date}%
  \end{center}%
  \par
  \vskip 60\p@}
  

\def\@sect#1#2#3#4#5#6[#7]#8{\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@
        \begin{center}#6\relax{\interlinepenalty \@M \@svsec #8\par}%
        \end{center}
       \csname #1mark\endcsname{#7}\addcontentsline
         {toc}{#1}{\ifnum #2>\c@secnumdepth \else
                      \protect\numberline{\csname the#1\endcsname}\fi
                    #7}\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
                       #7}}\fi
     \@xsect{#5}}


\def\@ssect#1#2#3#4#5{\@tempskipa #3\relax
   \ifdim \@tempskipa>\z@
     \begin{center}#4%
        {\interlinepenalty \@M #5\par}%
     \end{center}
   \else \def\@svsechd{#4%\hskip #1
    \relax
                        #5}\fi
    \@xsect{#3}}



\renewcommand\section{\@startsection {section}{1}{\z@}%
                                   {-36\p@ \@plus -1\p@ \@minus -4\p@}%
                                  {12\p@ \@plus 1\p@}%                                      
                                   {\reset@font\Large\bfseries}}%

\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
                                     {-24\p@ \@plus -1\p@ \@minus -4\p@}%
                                     {12\p@ \@plus 1\p@}%
                                     {\reset@font\large\bfseries}}

\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
                                     {3.25ex \@plus 1ex \@minus .2ex}%
                                     {-1.5ex \@plus .2ex}%
                                     {\reset@font\normalsize\bfseries}}

\renewenvironment{abstract}{\noindent\small{\bfseries\abstractname.}%
        }%
        {\vskip 11\p@}

\newenvironment{classification}{\noindent\small  2000 Mathematics Subject Classification:}{\vskip 12\p@}

\def\@lbibitem[#1]#2{\item[\hfill\@biblabel{#1}]\if@filesw
      {\let\protect\noexpand
       \immediate
       \write\@auxout{\string\bibcite{#2}{#1}}}\fi\ignorespaces}


\renewenvironment{thebibliography}[1]
     {\section*{\large\refname
        \@mkboth{\uppercase{\refname}}{\uppercase{\refname}}}%
      \list{\@biblabel{\arabic{enumiv}}}%
           {\settowidth\labelwidth{\@biblabel{#1}}%
            \labelsep2mm
            \itemsep1mm
        \topsep\z@
            \parsep\z@
            \advance\leftmargin\labelsep
            %\if@openbib%
             % \advance\leftmargin\bibindent%
              %\itemindent -\bibindent%
              %\listparindent \itemindent%
              %\parsep \z@%
            %\fi%
            \usecounter{enumiv}%
            \let\p@enumiv\@empty
            \renewcommand\theenumiv{\arabic{enumiv}}}%
      %%\if@openbib
        %%\renewcommand\newblock{\par}
      %%\else
        %%\renewcommand\newblock{\hskip .11em \@plus.33em %%\@minus.07em}%
      %\fi
      \sloppy\clubpenalty4000\widowpenalty4000%
      \sfcode`\.=\@m
      \small}
     {\def\@noitemerr
       {\@latex@warning{Empty `thebibliography' environment}}%
      \endlist}



\def\@seccntformat#1{\csname the#1\endcsname.\hskip 0.25em}



\pagestyle{myheadings}


%%%%%%%MACROS%%%%%%%%%%%%%%%%%%%%%%

\newskip\aline \newskip\halfaline
\aline=12pt plus 1pt minus 1pt
\halfaline=6pt plus 1pt minus 1pt
\def\skipaline{\vskip\aline}
\def\skiphalfaline{\vskip\halfaline}

\def\qedbox{$\rlap{$\sqcap$}\sqcup$}
\def\qed{\nobreak\hfill\penalty250 \hbox{}\nobreak\hfill\qedbox\skipaline}


\def\Proof{\ifdim\lastskip<\aline\removelastskip\skipaline\fi
\noindent\it Proof. \rm}




%%%%%%%%%%%%optional mathoperators%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%\def\Ker{\mathop{\operator@font Ker}\nolimits}
%%\def\Subg{\mathop{\operator@font Subg}\nolimits}
%%\def\Con{\mathop{\operator@font Con}\nolimits}
%%\def\rank{\mathop{\operator@font rank}\nolimits}
%%\def\core{\mathop{\operator@font core}\nolimits}
%%\def\SL{\mathop{\operator@font SL}\nolimits}
%%\def\GL{\mathop{\operator@font GL}\nolimits}
%%\def\ker{\mathop{\operator@font ker}\nolimits}



\endinput
