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

\RequirePackage{rcs}

\RCS$Date: 2001/10/01 08:51:18 $
\RCS$RCSfile: aala.cls,v $
\RCS$Revision: 1.2 $
\RCS$State: Exp $
\RCS$Author: aa $

\input{aausercs}


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


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

% Paper type
\DeclareOption{a4paper}{\def\aala@paper{A4}\def\aala@apaper{a4paper}}

% Fonts
\DeclareOption{lcmss}{%
  % Font faimily for bout encodings
  \DeclareFontFamily{OT1}{lcmss}{}
  \DeclareFontFamily{T1}{lcmss}{}
  % Font shapes: italic = slant, and OT1 doesn't have bold oblique
  \DeclareFontShape{OT1}{lcmss}{m}{n}{<->lcmss8}{}
  \DeclareFontShape{OT1}{lcmss}{m}{it}{<->lcmssi8}{}
  \DeclareFontShape{OT1}{lcmss}{m}{sl}{<->ssub*lcmss/m/it}{}
  \DeclareFontShape{OT1}{lcmss}{bx}{n}{<->lcmssb8}{}
  \DeclareFontShape{OT1}{lcmss}{bx}{it}{<->sub*lcmss/bx/n}{}
  \DeclareFontShape{OT1}{lcmss}{bx}{sl}{<->sub*lcmss/bx/n}{}
  \DeclareFontShape{T1}{lcmss}{m}{n}{<->dclq8}{}
  \DeclareFontShape{T1}{lcmss}{m}{it}{<->dcli8}{}
  \DeclareFontShape{T1}{lcmss}{m}{sl}{<->ssub*lcmss/m/it}{}
  \DeclareFontShape{T1}{lcmss}{bx}{n}{<->dclb8}{}
  \DeclareFontShape{T1}{lcmss}{bx}{it}{<->dclo8}{}
  \DeclareFontShape{T1}{lcmss}{bx}{sl}{<->ssub*lcmss/bx/it}{}
  % Defaults
  \def\rmdefault{lcmss}
  \def\sfdefault{lcmss}}


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

\ExecuteOptions{a4paper,lcmss}
\ProcessOptions


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

\LoadClass[\aala@apaper,landscape]{article}
\input{size20}
\RequirePackage{vmargin}
\RequirePackage{calc}
\RequirePackage{graphics}
%\RequirePackage{version}
%\RequirePackage{aapagestruct}


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

% Line under title
%\newcommand{\laline}{\@empty}

% The lys-ark (la) environment
\newenvironment{la}[1][\@empty]{%
  \hbox\bgroup
    \vtop to \textheight\bgroup
      \if#1\@empty      % No title
        \vfil
      \else             % Title
        \hbox{\textbf{\Large #1}}
        \hbox{%
          \@ifundefined{laline}{%
            %\raisebox{.5\baselineskip}{\rule{\textwidth}{1mm}}
            \hspace{-.1\textwidth}%
            \raisebox{-.25\baselineskip}{%
              \resizebox{1.1\textwidth}{.05\textheight}{%
                \includegraphics{aalaline}}}}{\laline}}
        \vfil
      \fi
      \hbox to \textwidth\bgroup
        \vtop\bgroup \parindent=0pt \parskip=18pt
          }{% This is where the contents go!
        \egroup
      \egroup
      \vfil
    \egroup
  \egroup}

% Set paper size and style (a4 landscape and empty).
\setpapersize[landscape]{\aala@paper}
\setmarginsrb{1in}{1in}{1in}{1in}{0pt}{0pt}{0pt}{0pt}
\pagestyle{empty}
