\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{poster}
              [2000/07/18 v1.99
 Modified LaTeX document class]
\typeout{*****************************************************************}
\typeout{** Poster design for the section Energy Technology }
\typeout{** (c) Koen Schreel 1998, 1999, 2000                                   }
\typeout{** See file "poster.tex" for instructions                      }
\typeout{*****************************************************************}
\newcommand{\@ptsize}{}
\newif\if@restonecol
\newif\if@draft
\@draftfalse
\newif\if@twopage
\@twopagefalse
\newif\if@openbib
\@openbibfalse
\newif\if@student
\@studentfalse
\DeclareOption{a4paper}
   {\setlength\paperheight {297mm}%
    \setlength\paperwidth  {210mm}}
\DeclareOption{xsmall}{\renewcommand{\@ptsize}{8}}
\DeclareOption{small}{\renewcommand{\@ptsize}{9}}
\DeclareOption{normal}{\renewcommand{\@ptsize}{10}}
\DeclareOption{8pt}{\renewcommand{\@ptsize}{8}}
\DeclareOption{9pt}{\renewcommand{\@ptsize}{9}}
\DeclareOption{10pt}{\renewcommand{\@ptsize}{10}}
\DeclareOption{draft}{\setlength\overfullrule{5pt}\@drafttrue}
\DeclareOption{final}{\setlength\overfullrule{0pt}\@draftfalse}
\DeclareOption{leqno}{\input{leqno.clo}}
\DeclareOption{fleqn}{\input{fleqn.clo}}
\DeclareOption{twopage}{\@twopagetrue}
\DeclareOption{student}{\@studenttrue}
\ExecuteOptions{a4paper,normal,onecolumn,final}
\ProcessOptions
\if@twopage
  \if@student
    \typeout{!!! Option twopage not allowed in student lay-out!!!}
    \@twopagefalse
  \fi
\fi
\input{post\@ptsize.clo}
\setlength\lineskip{1\p@}
\setlength\normallineskip{1\p@}
\renewcommand{\baselinestretch}{}
\setlength\parskip{0\p@ \@plus \p@}
\@lowpenalty   51
\@medpenalty  151
\@highpenalty 301
\setcounter{topnumber}{2}
\renewcommand{\topfraction}{.9}
\setcounter{bottomnumber}{1}
\renewcommand{\bottomfraction}{.1}
\setcounter{totalnumber}{10}
\renewcommand{\textfraction}{.05}
\renewcommand{\floatpagefraction}{.7}
\setcounter{dbltopnumber}{2}
\renewcommand{\dbltopfraction}{.7}
\renewcommand{\dblfloatpagefraction}{.5}
%================================================================
% The PostScript Box stuff
%================================================================
\special{! TeXDict begin
/box{
%newpath 4 copy pop exch pop exch moveto 0 0 lineto pop pop
%3 mul lineto } bind def
newpath 0 moveto 0 0 lineto pop pop pop} bind def
%%newpath 4 copy pop exch 0.13 mul moveto pop pop pop 0.13 mul lineto } bind def
end }
\long\def\psboxit#1#2{%
\begingroup\setbox0=\hbox{#2}%
\hbox{%
\special{ps: gsave currentpoint translate 
        \number\dp0 \space 15800 300 VResolution div mul DVImag div div  %
        \number\ht0 \space -15800 300 VResolution div mul DVImag div div %
				\number\linewidth \space 15800 300 VResolution div mul DVImag div div %
        \number\wd0 \space 15800 300 Resolution div mul DVImag div div %
        #1 grestore}%
    \copy0}%
  \endgroup}%
%%===============================================================
\setcounter{secnumdepth}{0}
\newcounter {section}
\newcounter {subsection}[section]
\newcounter {subsubsection}[subsection]
\newcounter {paragraph}[subsubsection]
\newcounter {subparagraph}[paragraph]
\renewcommand{\thesection}      {\arabic{section}}
\renewcommand{\thesubsection}   {\thesection.\arabic{subsection}}
\renewcommand{\thesubsubsection}{(\Alph{subsubsection})}
\renewcommand{\theparagraph}    {(\Alph{subsubsection}.\arabic{paragraph})}
\renewcommand{\thesubparagraph} {(\Alph{subsubsection}.\arabic{paragraph}.\arabic{subparagraph})}
\newcommand{\section}[1]{\vspace{.7\baselineskip}\par\noindent%
{\psboxit{box 0.65 0.20 0.15 0.45 setcmykcolor 7 setlinewidth stroke}%
{\parbox[b]{\linewidth}%
{\large\Color{0.65 0.20 0.15 0.45}{\sf\bfseries #1}}}}\\[.5\baselineskip]}%
\newcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
                                     {1ex \@plus .2ex}%was 1.5ex
                                     {\reset@font\large\bfseries}}
\newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
                                     {1ex \@plus .2ex}%was 1.5 ex
                                     {\reset@font\normalsize\bfseries}}
\newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
                                    {3.25ex \@plus1ex \@minus.2ex}%
                                    {-1em}%
                                    {\reset@font\normalsize\bfseries}}
\newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\parindent}%
                                       {3.25ex \@plus1ex \@minus .2ex}%
                                       {-1em}%
                                      {\reset@font\normalsize\bfseries}}
\setlength\leftmargini  {2em}
\setlength\leftmarginii  {2.2em}
\setlength\leftmarginiii {1.87em}
\setlength\leftmarginiv  {1.7em}
\setlength\leftmarginv  {.5em}
\setlength\leftmarginvi {.5em}
\setlength\leftmargin    {\leftmargini}
\setlength  \labelsep  {.5em}
\setlength  \labelwidth{\leftmargini}
\addtolength\labelwidth{-\labelsep}
\@beginparpenalty -\@lowpenalty
\@endparpenalty   -\@lowpenalty
\@itempenalty     -\@lowpenalty
\renewcommand{\theenumi}{\arabic{enumi}}
\renewcommand{\theenumii}{\alph{enumii}}
\renewcommand{\theenumiii}{\roman{enumiii}}
\renewcommand{\theenumiv}{\Alph{enumiv}}
\newcommand{\labelenumi}{\theenumi.}
\newcommand{\labelenumii}{(\theenumii)}
\newcommand{\labelenumiii}{\theenumiii.}
\newcommand{\labelenumiv}{\theenumiv.}
\renewcommand{\p@enumii}{\theenumi}
\renewcommand{\p@enumiii}{\theenumi(\theenumii)}
\renewcommand{\p@enumiv}{\p@enumiii\theenumiii}
\newcommand{\labelitemi}{$\m@th\bullet$}
\newcommand{\labelitemii}{\normalfont\bfseries --}
\newcommand{\labelitemiii}{$\m@th\ast$}
\newcommand{\labelitemiv}{$\m@th\cdot$}
\newenvironment{description}
               {\list{}{\labelwidth\z@ \itemindent-\leftmargin
                        \let\makelabel\descriptionlabel}}
               {\endlist}
\newcommand{\descriptionlabel}[1]{\hspace\labelsep
                                \normalfont\bfseries #1}
\newenvironment{quotation}
               {\list{}{\listparindent 1.5em%
                        \itemindent    \listparindent
                        \rightmargin   \leftmargin
                        \parsep        \z@ \@plus\p@}%
                \item[]}
               {\endlist}
\newenvironment{quote}
               {\list{}{\rightmargin\leftmargin}%
                \item[]}
               {\endlist}
\setlength\arraycolsep{5\p@}
\setlength\tabcolsep{6\p@}
\setlength\arrayrulewidth{.4\p@}
\setlength\doublerulesep{2\p@}
\setlength\tabbingsep{\labelsep}
\skip\@mpfootins = \skip\footins
\setlength\fboxsep{3\p@}
\setlength\fboxrule{.4\p@}
\renewcommand{\theequation}{\arabic{equation}}
\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
\DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
\DeclareRobustCommand*{\cal}{\@fontswitch{\relax}{\mathcal}}
\DeclareRobustCommand*{\mit}{\@fontswitch{\relax}{\mathnormal}}
\newcommand{\@pnumwidth}{1.55em}
\newcommand{\@tocrmarg} {2.55em}
\newcommand{\@dotsep}{4.5}
\setcounter{tocdepth}{3}
\newdimen\bibindent
\bibindent=1.5em
\newenvironment{thebibliography}[1]
     {\section{\refname
        \@mkboth{\uppercase{\refname}}{\uppercase{\refname}}}%
      \list{\@biblabel{\arabic{enumiv}}}%
           {\settowidth\labelwidth{\@biblabel{#1}}%
            \leftmargin\labelwidth
            \advance\leftmargin\labelsep
            \if@openbib
              \advance\leftmargin\bibindent
              \itemindent -\bibindent
              \listparindent \itemindent
              \parsep \z@
            \fi
            \usecounter{enumiv}%
            \let\p@enumiv\@empty
            \renewcommand{\theenumiv}{\arabic{enumiv}}}%
      \if@openbib
        \renewcommand{\newblock}{\par}
      \else
        \renewcommand{\newblock}{\hskip .11em \@plus.33em \@minus.07em}%
      \fi
      \sloppy\clubpenalty4000\widowpenalty4000%
      \sfcode`\.=\@m}
     {\def\@noitemerr
       {\@latex@warning{Empty `thebibliography' environment}}%
      \endlist}
\newcommand{\newblock}{}
\renewcommand{\footnoterule}{%
\noindent
\hspace*{0.5pt}\psboxit{box 0.65 0.20 0.15 0.45 setcmykcolor 7 setlinewidth 
stroke}
{\parbox[b]{\linewidth}{\large\footnotesize\Color{0.65 0.20 0.15
0.45}{\sf\bfseries Footnotes}}}\vspace{2pt}}
\long\def\@makefntext#1{%
    \parindent .8em%
    \noindent
    \hbox to .8em{\hss\@makefnmark}#1}
\renewcommand{\thefootnote}{\alph{footnote}}
\newcommand{\refname}{References}
\newcommand{\figurename}{Figure}
\newcommand{\tablename}{Table}
\newcommand{\today}{\ifcase\month\or
  January\or February\or March\or April\or May\or June\or
  July\or August\or September\or October\or November\or December\fi
  \space\number\day, \number\year}
\setlength\columnsep{10\p@}
\setlength\columnseprule{0\p@}
\newcommand{\commissiel}{Deze tekst kan veranderd worden door een\\
{\tt $\backslash$renewcommand\{$\backslash$commissiel\}\{namen gescheiden door
dubbele backslashes\}}}
\newcommand{\commissier}{Deze tekst kan veranderd worden door een\\
{\tt $\backslash$renewcommand\{$\backslash$commissier\}\{namen gescheiden door
dubbele backslashes\}}}
\setlength{\footskip}{40pt}
\renewcommand{\ps@plain}{
\renewcommand{\@oddhead}{}
\renewcommand{\@evenhead}{}
\if@student
	\renewcommand{\@oddfoot}{
		\parbox[4cm]{.99\textwidth}{\footnotesize\sf Engineering thesis committee:\hfill
			\parbox[t]{0.36\textwidth}{\footnotesize\sf\commissiel}\hfill
			\parbox[t]{0.36\textwidth}{\footnotesize\sf\commissier}}
	}
\else
	\renewcommand{\@oddfoot}{}
\fi
\renewcommand{\@evenfoot}{}}
\pagestyle{plain}
\pagenumbering{arabic}      % Arabic page numbers
  \raggedbottom
\if@twocolumn
  \twocolumn
  \sloppy
  \flushbottom
\else
  \onecolumn
\fi
%\newlength{\headwidth}
%\newlength{\barwidth}

\newcommand{\@newcolumn}[2]{\end{multicols}\newpage%
    \special{psfile=poster2.eps voffset=-819 hoffset=-49}%
  	\noindent%
    \parbox[t][60pt]{16cm}{~\\ \vfill ~}\hfill%
	  \raisebox{-1.6cm}[0cm][0cm]{\epsfig{file=#2,height=1.4cm}}%
	  \addtolength{\columnsep}{8pt}%
	  \textColor{1 0.8 0 0.4}%
	  \setlength{\columnseprule}{0mm}%
		\begin{multicols}{#1}%
%		\mbox{}\vspace*{-0.73\baselineskip}%
		\noindent}%

\if@twopage
  \newenvironment{poster}[4][2]{\noindent
  \parbox[t][53pt]{\linewidth}{\Color{0.83 1 0 0.38}
  {\Large\sf\bfseries\vfill #2}\\ \vfill \large 
	\Color{0.83 1 0 0.38}{#3} \vfill}
	\addtolength{\columnsep}{8pt}
	\textColor{1 0.8 0 0.4}
	\setlength{\columnseprule}{0mm}
%	\vspace
	\begin{multicols}{#1}
%	\mbox{}\vspace*{-0.73\baselineskip}\vspace{-10.5pt}\\
%	\setlength{\headwidth}{\linewidth}
%	\addtolength{\headwidth}{0.5\columnsep}
%	\addtolength{\headwidth}{\columnseprule}
	\newcommand{\newcolumn}{\@newcolumn{#1}{#4}}}
  {%\newpage
	\setcounter{unbalance}{1}
	\end{multicols}}
\else
  \newenvironment{poster}[4][2]{\noindent
  \parbox[t][53pt]{16cm}{\Color{0.83 1 0 0.38}
  {\Large\sf\bfseries\vfill #2}\\ \vfill \large \bfseries
	\Color{0.83 1 0 0.38}{#3} \vfill}\hfill
	\raisebox{-1.6cm}[0cm][0cm]{\epsfig{file=#4,height=1.4cm}}
	\addtolength{\columnsep}{8pt}
	\textColor{1 0.8 0 0.4}
	\setlength{\columnseprule}{0mm}
	\begin{multicols}{#1}
%	\mbox{}\vspace*{-0.73\baselineskip}\vspace{-10.5pt}
%	\setlength{\headwidth}{\linewidth}
%	\addtolength{\headwidth}{0.5\columnsep}
%	\addtolength{\headwidth}{\columnseprule}
}
	{%\newpage
	\setcounter{unbalance}{1}
	\end{multicols}}
\fi
\if@student
  \special{psfile=poster_bgr.eps voffset=-819 hoffset=-49}
%  \special{psfile=poster_ptc.ps voffset=-819 hoffset=-49}
\else
  \if@twopage
    \special{psfile=poster1.eps voffset=-819 hoffset=-49}
  \else
    \special{psfile=poster_bgr.eps voffset=-819 hoffset=-49}
%    \special{psfile=poster_ptc.eps voffset=-819 hoffset=-49}    
  \fi
\fi
%\usepackage{mathtime}
\usepackage{colordvi}
\usepackage{multicol}
\RequirePackage[T1]{fontenc}
\renewcommand{\sfdefault}{zmb}
\renewcommand{\rmdefault}{zsc}
\renewcommand{\ttdefault}{pcr}

\endinput

%% 
%% End of file `poster.cls'.
