% --------------------------------------%--------------------------------------
% ---------------------------- Identification part ----------------------------
% --------------------------------------%--------------------------------------

\RequirePackage{rcs}
\RequirePackage{ifthen}

\RCS$Date: 2002/07/09 23:45:45 $
\RCS$RCSfile: aasrc.cls,v $
\RCS$Revision: 1.1 $
\RCS$State: Exp $
\RCS$Author: aa $

\input{aausercs}


% --------------------------------------%--------------------------------------
% -------------------------------- Start code ---------------------------------
% --------------------------------------%--------------------------------------


% --------------------------------------%--------------------------------------
% -------------------------- Declaration of options ---------------------------
% --------------------------------------%--------------------------------------

\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{aasrc}}


% --------------------------------------%--------------------------------------
% --------------------------- Execution of options ----------------------------
% --------------------------------------%--------------------------------------

%\ExecuteOptions{}
\ProcessOptions


% --------------------------------------%--------------------------------------
% ------------------------------ Package loading ------------------------------
% --------------------------------------%--------------------------------------

\LoadClass{article}
\RequirePackage[latin1]{inputenc}
%\RequirePackage[T1]{fontenc}
%\RequirePackage{a4wide}
\RequirePackage{vmargin}
\RequirePackage{fancyheadings}
\RequirePackage{aasrc}


% --------------------------------------%--------------------------------------
% --------------------------------- Main code ---------------------------------
% --------------------------------------%--------------------------------------

% Page setup
\setpapersize{A4}
\setmarginsrb{2cm}{2cm}{2cm}{2cm}{%
  1.5\baselineskip}{\baselineskip}{0pt}{0pt}

% Header and foot
\lhead{\aatextfont{\@aatitle}}
\rhead{\aatextfont{\thepage}}
\cfoot{}
\addtolength{\headheight}{1pt}
\pagestyle{fancy}

\let\aatitle\title
\def\title#1{\def\@aatitle{#1}\aatitle{#1}}
\let\aamktitle\maketitle
\def\maketitle{\aamktitle\thispagestyle{empty}}

\parindent=0pt
\aamakecom
