%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% LaTeX class for a poster bearing Macquarie University logo
% Written by Susan Howlett, Macquarie University, 2011
%
% If you are affiliated with Macquarie University, you may use the class file
% as is; otherwise you must remove the Macquarie University logo and change the
% colour scheme (which is based on the logo).
%
% You may modify the class file for your own purposes, but please leave this
% header intact.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{MQposter}[2011/05/23 LaTeX class for a Macquarie University poster]

\DeclareOption*{
  \PassOptionsToClass{\CurrentOption}{a0poster}
}
\ProcessOptions\relax
\LoadClass[a0]{a0poster}

\RequirePackage{mathptmx}  % use Times New Roman
\RequirePackage{setspace}  % for \onehalfspacing
\RequirePackage{graphicx}  % for \includegraphics

\RequirePackage{color}
\definecolor{macred}{rgb}{0.54,0.02,0.15}

\RequirePackage{multicol}
\setlength{\columnsep}{4em}

\RequirePackage{fancyhdr}
\renewcommand\maketitle{\thispagestyle{fancy}}
\headheight390pt
\footskip150pt
\renewcommand{\headrulewidth}{0pt}
\addtolength{\textheight}{-550pt}
\chead{
  \vskip50pt
  {\color{macred}\VeryHuge\sffamily \@title}
  \vskip50pt
  {\LARGE\sffamily \@author}
  \vskip20pt
  \onehalfspacing{\large\sffamily \@affil}
  \vskip20pt
}
\cfoot{}
\rfoot{
  \includegraphics[height=150pt]{MQlogo.pdf}
}

\newcommand{\@affil}{}
\newcommand{\affiliation}[1]{\renewcommand\@affil{#1}}
