%==============================================================================
% Prosper -- (PPRstripe) Style file
% A LaTeX class for creating slides
% Author: Namio Matuda (matuda@film.s.dendai.ac.jp)
%
% Copyright (c) 2006  Matuda Namio
% 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{PPRstripe}[2006/01/28]

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

%%% default: light-fgcolor/dark-bgcolor color
\newrgbcolor{tfgcolor}{1.000 0.929 0.256} % khaki 1
\newrgbcolor{tbgcolor}{0.105 0.241 0.007} % olive drab 4
\newrgbcolor{stripe}{0.907 1.000 0.960} % mint cream

%%% other combination: dark-fgcolor/light-bgcolor color
%\newrgbcolor{tbgcolor}{0.726 0.9212 1.000} % a sort of turquoise 
%\newrgbcolor{stripe}{0.961 0.960 1.000} % blue snow
%\newrgbcolor{tfgcolor}{0.020 0.102 0.238} % steel blue 4

%%% chose as you like it
%\newrgbcolor{tbgcolor}{1 0.844  0.618} %  blanched almond
%\newrgbcolor{tbgcolor}{1 0.945 0.727} % cornsilk
%\newrgbcolor{tbgcolor}{0.981 0.921 0.802} % old lace
%\newrgbcolor{tbgcolor}{0.862 1.000 0.880} % honeydew
%\newrgbcolor{tbgcolor}{0.105 0.241 0.007} % olive drab 4
%\newrgbcolor{tbgcolor}{0.726 1.000 1.000} % light cyan
%\newrgbcolor{tbgcolor}{0.726 0.9212 1.000} % a sort of turquoise 

%\newrgbcolor{stripe}{1.000 0.961 0.960} % snow
%\newrgbcolor{stripe}{0.907 1.000 0.960} % mint cream

%\newrgbcolor{tfgcolor}{1.000 0.929 0.256} % khaki1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\ifinColor
   \def\colorA{tbgcolor}
   \def\colorC{\tfgcolor}
   \ifcolorBG
      \def\colorD{\black}
   \else
      \def\colorD{\black}
   \fi
\else
   \def\colorA{\white}
   \def\colorC{\black}
   \def\colorD{\black}
\fi

\FontTitle{%  'ptm' has serif, 'phv' sans serif
  \usefont{T1}{phv}{b}{n}\fontsize{20.74pt}{20pt}\selectfont \colorC}{%
  \usefont{T1}{phv}{b}{n}\fontsize{20.74pt}{20pt}\selectfont \colorD}
\FontText{\colorD\usefont{T1}{phv}{m}{n}\fontsize{14.4pt}{14pt} \selectfont}{%
  \colorD\usefont{T1}{phv}{m}{n}\fontsize{14.4pt}{14pt}\selectfont}

\ifinColor
   \ColorFoot{\colorC}
\else
   \ColorFoot{\black}
\fi

\newcommand{\slidetitle}[1]{ \rput[lt](-0.0,4.75){\fontTitle{#1}}}

\LogoPosition{-.4,-.7}

\newcommand{\stripeFrame}[1]{%
  \psframe[fillstyle=solid,fillcolor=\colorA,linestyle=none](-2,-1.4)(12.5,9)
\ifinColor
 \ifcolorBG
  \psframe[fillstyle=gradient,gradbegin=stripe,gradend=white,%
           gradmidpoint=0,gradangle=90,linestyle=none](-2,-.5)(12.5,7.5)
 \else
  \psframe[fillstyle=solid,fillcolor=white,linestyle=none](-2,-.5)(12.5,7.7)
 \fi
\else
  \psframe[fillstyle=solid,fillcolor=white,linestyle=none](-2,-.5)(12.5,7.7)
\fi
%stripes
  \psframe[fillstyle=solid,fillcolor=white,linestyle=none](-2,-.5)(12.5,0.0)
  \psframe[fillstyle=solid,fillcolor=white,linestyle=none](-2,1.0)(12.5,2.0)
  \psframe[fillstyle=solid,fillcolor=white,linestyle=none](-2,3.0)(12.5,4.0)
  \psframe[fillstyle=solid,fillcolor=white,linestyle=none](-2,5.0)(12.5,6.0)
  \psframe[fillstyle=solid,fillcolor=white,linestyle=none](-2,7.0)(12.5,7.5)

  \PutLogo % Mandatory
  {#1}}

\ifinColor
\myitem{1}{\includegraphics[width=.4cm]{img/red-bullet-on-white.ps}}
\myitem{2}{\includegraphics[width=.3cm]{img/green-bullet-on-white.ps}}
\myitem{3}{\includegraphics[width=.3cm]{img/yellow-bullet-on-white.ps}}
\else
\myitem{1}{\includegraphics[width=.4cm]{img/red-bullet-on-white.ps}}
\myitem{2}{\includegraphics[width=.3cm]{img/green-bullet-on-white.ps}}
\myitem{3}{\includegraphics[width=.3cm]{img/yellow-bullet-on-white.ps}}
\fi


\NewSlideStyle{t}{5.3,3.5}{stripeFrame}

\RequirePackage{semhelv}

%\PDFCroppingBox{5 10 590 810}


\endinput

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