%==============================================================================
%
% SDU -- (PPRsdu.sty) Style file
% A LaTeX class for creating slides
% Author: Jens Svalgaard Kohrt 
%         http://www.svalgaard.net/jens/
%         University of Southern Denmark, Odense
%
% Based on PPRblends.sty Copyright (c) 2001 Andrew Arnt
% All rights reserved.
%
% Permission is hereby granted, without written agreement and without
% license or royalty fees, to use, copy, modify, and distribute this
% software and its documentation for any purpose, provided that the
% above copyright notice and the following two paragraphs appear in
% all copies of this software.
% 
% IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, 
% SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF 
% THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE AUTHOR HAS BEEN ADVISED 
% OF THE POSSIBILITY OF SUCH DAMAGE.
% 
% 
% THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES,
% INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
% AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
% ON AN "AS IS" BASIS, AND THE AUTHOR HAS NO OBLIGATION TO
% PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
%
%=============================================================================


\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{PPRsdu}[2004/07/01]
\typeout{'SDU' -- University of Southern Denmark -- style for Prosper ---}
\typeout{(c) 2004 Jens Svalgaard Kohrt}

\IfFileExists{pst-grad}{\RequirePackage{pst-grad}}{\RequirePackage{gradient}}

\RequirePackage{semhelv}

\ifinColor
\newrgbcolor{cyellow}{1.0 0.812 0.004} 
\newrgbcolor{cred}{1.0 0.220 0.224}
\newcmykcolor{cblue}{1 .65 0 .3} % SDU blue
% \newrgbcolor{cblue}{0.2 0.2 0.8}
\newrgbcolor{ctitle}{0.2 0.2 0.6}
\newrgbcolor{cblack}{0.110 0.110 0.110}
\else
\newgray{cyellow}{0.75}
\newgray{cred}{0.50}
\newgray{cblue}{0.25}
\newgray{ctitle}{0.00}
\newrgbcolor{cblack}{0.110 0.110 0.110}
\fi


% mywhite is used to avoid a bug in Acroread 5, which refuses to redraw the
% screen if it does not have a background. This increases the file size
% unnecessarily.
\newrgbcolor{mywhite}{0.99 0.99 0.99}

\FontTitle{%
  \usefont{T1}{phv}{b}{n}\fontsize{24.88pt}{20pt}\selectfont\ctitle}{%
  \usefont{T1}{phv}{b}{n}\fontsize{24.88pt}{20pt}\selectfont\ctitle}
\FontText{%
  \black\usefont{T1}{phv}{m}{n}\fontsize{14.4pt}{14pt}\selectfont}{%
  \black\usefont{T1}{phv}{m}{n}\fontsize{14.4pt}{14pt}\selectfont}

\ColorFoot{\ctitle}

\newcommand{\slidetitle}[1]{%
  \rput[rb](11.5,3.1){%
    \parbox{9cm}{\begin{flushleft}\fontTitle{#1}\end{flushleft}}}}

\LogoPosition{-1.5,-1.1}

\newcommand{\SDUframe}[1]{%
%
% Fix for Acroread
\psset{linestyle=none,fillstyle=solid}
\psframe[fillcolor=mywhite](-1.9,-1.5)(\slideheight,\slidewidth)%
%
% Large seal right side
\rput[lt](7.1,8.5){\includegraphics[scale=1.0]{sdu_seal.eps}}
%
% Small logo with text, upper right corner
\rput[lt](-1.6,8.8){\includegraphics[scale=0.5]{sdu_logo.eps}}
%
\PutLogo % Mandatory
{#1}}

\myitem{1}{\psframe[fillstyle=solid,fillcolor=cblue,%
  linestyle=none](-.15,.25)(0.1,.01)}
\myitem{2}{\psframe[fillstyle=solid,fillcolor=cred,%
  linestyle=none](-.15,.25)(0.1,.01)}
\myitem{3}{\psframe[fillstyle=solid,fillcolor=cyellow,%
  linestyle=none](-.15,.25)(0.1,.01)}

\NewSlideStyle[12.75cm]{t}{4.8,2.4}{SDUframe}
\PDFCroppingBox{0 0 700 810}

\endinput

