%==============================================================================
% Prosper -- (PPRautumn.sty) Style file
% A LaTeX class for creating slides
% Author: Frederic Goualard (Frederic.Goualard@irin.univ-nantes.fr)
%         Institut de Recherche en Informatique de Nantes
%         University of Nantes, France
%
% Copyright (c) 2000 Frederic Goualard
% 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.
%
% CVSId : $Id: PPRautumn.sty,v 1.2 2000/12/05 14:56:48 exupery Exp $
%==============================================================================
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{PPRautumn}[2000/11/24]
\typeout{autumn style for Prosper ---}
\typeout{(c) 2000 Frederic Goualard, CWI, The Netherlands}
\typeout{CVSId: $Id: PPRautumn.sty,v 1.2 2000/12/05 14:56:48 exupery Exp $}
\typeout{ }

% Required packages
\IfFileExists{pst-grad}{\RequirePackage{pst-grad}}{\RequirePackage{gradient}}
\RequirePackage{amssymb}
\RequirePackage{times}

% Colors 
\newrgbcolor{goldenrod}{.80392 .60784 .11373}
\newrgbcolor{darkgoldenrod}{.5451 .39608 .03137}
\newrgbcolor{brown}{.15 .15 .15}
\newrgbcolor{darkolivegreen}{.33333 .41961 .18431}
\ifinColor
\def\colA{darkolivegreen}
\def\colB{brown}
\global\let\colC=\goldenrod
\ifcolorBG
\global\let\colD=\white
\else
\global\let\colD=\black
\fi
\else
\def\colA{white}
\def\colB{lightgray}
\global\let\colC=\blue
\global\let\colD=\black
\fi

% The fonts
\FontTitle{%
  \usefont{T1}{ptm}{b}{n}\fontsize{20.74pt}{20pt}\selectfont\colC}{%
  \usefont{T1}{ptm}{b}{n}\fontsize{20.74pt}{20pt}\selectfont\colC}
\FontText{%
  \usefont{T1}{ptm}{m}{n}\fontsize{14.4pt}{13pt}\selectfont\colD}{%
  \usefont{T1}{ptm}{m}{n}\fontsize{14.4pt}{13pt}\selectfont\colD}

\ColorFoot{\colD}

% Positionning of the title of a slide.
\def\slidetitle#1{\rput[lb](-.7,3.8){%
    \parbox{11.5cm}{\fontTitle{\baselineskip=0pt #1}}}}

% Positionning for a logo
\LogoPosition{-1,-1.1}

\newcommand{\BSquareFrame}[1]{%
  \ifcolorBG
  \psframe[fillstyle=gradient,gradbegin=\colB,gradend=\colA,gradmidpoint=1]%
          (-2,-1.4)(12.5,9)
  \fi
  \psframe[fillstyle=gradient,gradbegin=darkolivegreen,gradend=darkgoldenrod,gradmidpoint=1,
          linestyle=none]%
          (-2,-1.4)(1,9)
  \psline[linecolor=darkgoldenrod,linewidth=3pt](-.7,7.1)(13,7.1)        
  \psline[linecolor=darkgoldenrod,linewidth=1pt](-.7,7)(13,7)        
  \PutLogo % Mandatory
  {#1}}

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

\NewSlideStyle[11.6cm]{t}{5.4,3}{BSquareFrame}
\PDFCroppingBox{10 35 594 830}

\titleSpacing{\vspace*{20pt}}

\endinput

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: t
%%% End: 

