%==============================================================================
% Prosper -- (PPRciment.sty) Style file
% A LaTeX class for creating slides
% Author: Mathieu Goutelle (mgoutell[at]users[dot]sourceforge[dot]net)
%         INRIA Rhône-Alpes
%         École Normale Supérieure de Lyon, France
%
% Copyright (c) 2003 Mathieu Goutelle
% 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{PPRciment}[2003/03/06]
\typeout{ciment style for Prosper ---}
\typeout{(c) 2003 Mathieu Goutelle, INRIA, France}
\typeout{ }

% Required packages
\RequirePackage{amssymb}
\RequirePackage{semhelv,mathpazo}
\RequirePackage{multido}

% Colors 
\newrgbcolor{mydarkred}{0.7 0.1 0.1}
\newrgbcolor{mydarkgray}{0.2 0.2 0.2}
\newrgbcolor{mylightgray}{0.7 0.7 0.7}
\ifinColor%
   \def\colA{mydarkred}
   \def\colB{mydarkred}
   \global\let\colC=\mydarkred
   \global\let\colD=\mydarkgray
\else%
   \def\colA{mylightgray}
   \def\colB{black}
   \global\let\colC=\black
   \global\let\colD=\black
\fi

% The fonts
\FontTitle{%
  \usefont{T1}{phv}{b}{n}\fontsize{16pt}{16pt}\selectfont\colC}{%
  \usefont{T1}{phv}{b}{n}\fontsize{16pt}{16pt}\selectfont\colC}
\FontText{%
  \usefont{T1}{phv}{m}{n}\fontsize{12pt}{12pt}\selectfont\black}{%
  \usefont{T1}{phv}{m}{n}\fontsize{12pt}{12pt}\selectfont\black}

\def\@fontSubtitleColor{\@fontTitleColor\fontsize{14pt}{14pt}\selectfont\itshape}

\ColorFoot{\colD}

% Positionning of the title of a slide.
\newlength{\CimentTitleLength}
\setlength{\parindent}{0pt}
\def\slidetitle#1{%
  \rput[lt](-0.8,4.6){%
    \parbox[t]{11cm}{%
      \settowidth{\CimentTitleLength}{\fontTitle{#1}}%
      \addtolength{\CimentTitleLength}{0.1cm}%
      {\fontTitle{#1}}\\%
      \psline[linewidth=3pt,linecolor=mydarkred](-0.05,0.45)(\CimentTitleLength,0.45)%
      \psline[linewidth=1pt,linecolor=mydarkred](\CimentTitleLength,0.484)(12.1,0.484)%
    }%
  }%
  \null\\[-1.2cm]%
}

% Positionning for a logo
\LogoPosition{-1.2,-1.2}

\newcommand{\CimentFrame}[1]{%
  \multirput(0,2pt){160}{\psline[linecolor=mylightgray,linewidth=0.5pt](-2,-2)(13,-2)}%
  \psline[linewidth=1pt,linecolor=mydarkred](-1.5,-0.8)(12.1,-0.8)%
%  
  \PutLogo% Mandatory
  {#1}}

\myitem{1}{\colD\raisebox{1pt}{\scriptsize\ensuremath{\blacksquare}}}
\myitem{2}{\colD{\scriptsize\ensuremath{\blacklozenge}}}
\myitem{3}{\colD\raisebox{1pt}{\scriptsize\ensuremath{\bullet}}}

\NewSlideStyle{t}{5.3,2.9}{CimentFrame}
\PDFCroppingBox{0 0 596 842}

\endinput

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