\NeedsTeXFormat{LaTeX2e}[1994/12/01]
\ProvidesPackage{natposter}[2006/05/17 v0.01 Basic class for Natura posters]
\RequirePackage{ifthen,fancyhdr,graphicx,framed,pstricks}

\DeclareOption{twocolumn}{\@twocolumntrue}
\ProcessOptions


\newrgbcolor{DarkOrange}{1 .498 0}
\newrgbcolor{DarkGrey}{.3 .3 .3}

\setlength{\columnsep}{15mm}

\newcommand{\subtitle}[1]{\def\thesubtitle{#1}}
\renewcommand{\title}[1]{\def\thetitle{#1}}
\renewcommand{\author}[1]{\def\theauthor{#1}}
\renewcommand\maketitle{\par
  \begingroup
    \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
    \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
    \long\def\@makefntext##1{\parindent 1em\noindent
            \hb@xt@1.8em{%
                \hss\@textsuperscript{\normalfont\@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{empty}\@thanks
  \endgroup
  \setcounter{footnote}{0}%
  \global\let\thanks\relax
  \global\let\maketitle\relax
  \global\let\@maketitle\relax
  \global\let\@thanks\@empty
  \global\let\@author\@empty
  \global\let\@date\@empty
  \global\let\@title\@empty
  \global\let\title\relax
  \global\let\author\relax
  \global\let\date\relax
  \global\let\and\relax
}

\def\@maketitle{\vskip -40mm
\begin{framed}
\begin{center}
  \DarkOrange \VERYHuge{\textsf{\textbf{\thetitle}}}\\
  \DarkGrey \Large{\textsf{\textbf{\thesubtitle}}}\\[3mm]
  \DarkOrange \large 
  \textsf{\theauthor}
\end{center}
\end{framed}
\vskip 3mm
}

\newcommand{\orange}[1]{{\DarkOrange\bfseries #1}}

\renewcommand\section{\@startsection{section}{1}{0pt}%
   {5mm}{1mm}{\DarkOrange\Large\sffamily\bfseries}}

\renewcommand\subsection{\@startsection{subsection}{2}{0pt}%
   {5mm}{1mm}{\DarkOrange\large\sffamily\bfseries}}

\renewcommand\subsubsection{\@startsection{subsubsection}{3}{0pt}%
   {5mm}{1mm}{\DarkOrange\sffamily\bfseries}}


\newenvironment{block}[1]{
  \begin{framed}
    \subsection*{\vskip -1cm\noindent#1}
    \small\it
}{\end{framed}}

\renewenvironment{abstract}{\begin{block}{\abstractname}}{\end{block}}


\if@twocolumn
  \twocolumn
  \sloppy
  \flushbottom
\else
  \onecolumn
\fi
\endinput


