% Based on article with features from BIT,
% such as nice fonts for section and subsection titles
% Edited by Christina Christara
% This is a LaTeX2e document class.
%\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{mypaper}

% All options are passed to the article class.
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions
%\LoadClass[leqno]{article} % if left equation numbering is desired
\LoadClass{article} % default is right equation numbering

% can define these in the *.tex file or here
%\newenvironment{AMS}{\small\textit{AMS subject classification:}}{}
%\newenvironment{keywords}{\small\textit{Key words:}}{}

\@afterindenttrue
% modify section headers -- get rid of ugly large size fonts
\renewcommand{\section}{\@startsection{section}{1}{\z@}%
                                     {3.0ex \@plus 1 ex \@minus .2ex}%
                                     {1.3ex \@plus .2 ex}%
                                     {\reset@font\large\bfseries}}

\renewcommand{\subsection}{\@startsection{subsection}{1}{\z@}%
                                     {2.5ex \@plus 1 ex \@minus .2ex}%
                                     {1.3ex \@plus .2 ex}%
                                     {\reset@font\normalsize\bfseries}}

\renewcommand{\subsubsection}{\@startsection{subsubsection}{1}{\z@}%
                                     {2.5ex \@plus 1 ex \@minus .2ex}%
                                     {1.3ex \@plus .2 ex}%
                                     {\reset@font\normalsize\itshape}}

\mark{{}{}}

% redefine page headers -- include date, and alternate between title and authors
\def\ps@myheadings{
\def\@oddhead{\hbox{} \hfil{\scriptsize\rightmark} \hfil{\thepage}}
\def\@oddfoot{\hbox{} \hfil\hbox{} \hfil\footnotesize\@date}
%\def\@oddfoot{}
\def\@evenhead{{\thepage} \hfil{\scriptsize\leftmark} \hfil\hbox{}}
\def\@evenfoot{\footnotesize\@date \hfil\hbox{} \hfil\hbox{}}
%\def\@evenfoot{}
\def\sectionmark##1{}\def\subsectionmark##1{}
}
% special layout of first page
\def\ps@myfirst{
\def\@oddhead{\scriptsize\myinfo\hfil}
\def\@oddfoot{\hbox{} \hfil\hbox{} \hfil\footnotesize\@date}
}

\ps@myheadings\pagenumbering{arabic} \onecolumn
\@twosidetrue
