%==============================================================================
% Prosper -- (PPRfyma.sty) Style file
% A LaTeX class for creating slides
% Author: Laurent Jacques <ljacques@fyma.ucl.ac.be>
%         FYMA/UCL
%
% Copyright (c) 2002 Laurent Jacques
% 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: PPRfyma.sty,v 1.1 2003/01/27 14:39:20 exupery Exp $
%==============================================================================
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{PPRfymalf}[2002/12/03]
\typeout{FYMALF style for Prosper ---}
\typeout{(copyleft) 2002, L. Jacques FYMA/UCL}
\typeout{CVSId: $Id: PPRfyma.sty,v 1.1 2003/01/27 14:39:20 exupery Exp $}
\typeout{ }

\RequirePackage{amssymb}
\RequirePackage{multido}
\RequirePackage{ifthen}
%\RequirePackage{calc}
% Loading packages necessary to define this slide style.
\IfFileExists{pst-grad}{\RequirePackage{pst-grad}}{\RequirePackage{gradient}}

\newrgbcolor{fymablue}{0.24 0.45 0.70}
\newrgbcolor{fymalightblue}{0.43 0.61 0.84}
\newrgbcolor{fymadarkblue}{0.14 0.34 0.55}
\newrgbcolor{fymaroyalblue}{0.06 0.25 0.41}
\newrgbcolor{fymafaintblue}{0.88 0.95 1.00}
\newrgbcolor{bleuclair}{0.83 0.90 1.00}
\newrgbcolor{fymaredblue}{0.55 0.20 0.31}



\FontTitle{%
  \usefont{T1}{pag}{m}{sl}\fontsize{12pt}{12pt}\selectfont\fymaroyalblue}{%
  \usefont{T1}{pag}{m}{sl}\fontsize{12pt}{12pt}\selectfont\fymaroyalblue}
\FontText{%
  \usefont{T1}{pbk}{m}{n}\fontsize{11pt}{11pt}\selectfont\fymadarkblue}{%
  \usefont{T1}{pbk}{m}{n}\fontsize{10pt}{10pt}\selectfont\fymadarkblue}

\ColorFoot{\usefont{T1}{pzc}{m}{n}\fontsize{12pt}{10pt}\selectfont\fymablue}


% Positionning of the title of a slide.
\newlength{\FymaTitleLength}
\newcommand{\slidetitle}[1]{%
  \rput[lt](-0.8,4.6){\parbox[t]{11cm}
    {
      \settowidth{\FymaTitleLength}{#1}
      \addtolength{\FymaTitleLength}{0.2cm}
      {\fymaroyalblue #1}\\
      \psframe[linestyle=none,fillstyle=solid,linewidth=2pt,fillcolor=fymalightblue](-0.05,0.45)(\FymaTitleLength,0.55)
    }
  }
  \ \\[-1.5cm]
}

\def\toolbar{\bleuclair\tiny%
  \Acrobatmenu{ShowBookmarks}{~\boldmath$\equiv$~}% 
  \Acrobatmenu{ShowThumbs}{~\boldmath$\odot$~}%
  \qquad%
  \Acrobatmenu{FirstPage}{~$\blacktriangleleft$|~}%
  \Acrobatmenu{PrevPage}{~$\blacktriangleleft$~}%
  \Acrobatmenu{FullScreen}{~\raisebox{-1pt}{$\blacksquare$}~}%
  \Acrobatmenu{NextPage}{~$\blacktriangleright$~}%
  \Acrobatmenu{LastPage}{~|$\blacktriangleright$~}%
  \qquad%
  \Acrobatmenu{GeneralInfo}{~\boldmath$\circledR$~}%
  \Acrobatmenu{GeneralPrefs}{~\textbf{?}~}%
  \Acrobatmenu{FullScreenPrefs}{~\textbf{!}~}%
  \qquad%
  \hyperlink{pI}{~I~}%
  \hyperlink{p1}{~1~}%
  \hyperlink{p3}{~2~}%
  \hyperlink{p2}{~3~}%
  \hyperlink{pC}{~C~}%
}

\newcounter{partie}
\newcommand{\partie}[2]{%
  \overlays{1}{\stepcounter{partie}
  \slideCaption{\fymaroyalblue\Roman{partie}.#1} 
    \part{\hypertarget{#2}{\Large #1}}%[Glitter]{#1}
  }
}

  
\newcounter{tempCounter}
\newcounter{tmpcalc}
\newcounter{tmpcalcb}

% Redefining the bullet of the itemize
\myitem{1}{{\scriptsize\fymalightblue\raisebox{2pt}{\ensuremath{\bullet}}}}
\myitem{2}{{\scriptsize\fymalightblue\raisebox{2pt}{\ensuremath{\circ}}}}

% Positionning for a logo
\LogoPosition{-1.25,-1.15}



%compteurs circulaires from Mancini Style
\renewpagestyle{GenericPageStyle}%
{%
  \put(135,-3){\toolbar}%
%  \ifInOverlays%
  \setcounter{tempCounter}{\value{limitOverlays}}%
  \addtocounter{tempCounter}{1}%
  \setcounter{tmpcalc}{\thepage}
  \setcounter{tmpcalcb}{\theoverlaysCount}
  \addtocounter{tmpcalcb}{-1}
%  \ifnum0<\value{limitOverlays}%
  {\put(367.5,-10){\fymablue\hyperlink{\thetmpcalc.\thetmpcalcb}{$\circ$}}}%
  \multido{\i=1+1,\n=14+4}{\value{tempCounter}}{%
    \ifthenelse{\i=\value{overlaysCount}}%
    {\put(367.5,-\n){\black$\blacktriangleleft$}}%
    {\ifnum\i>\value{limitOverlays}%
      \addtocounter{tmpcalcb}{2}%
      \put(367.5,-\n){\fymaroyalblue\hyperlink{\thetmpcalc.\thetmpcalcb}{$\circ$}}%
      %%\typeout{\thetmpcalc.\thetmpcalcb}%
      \else%
      \put(367.5,-\n){\fymablue\hyperlink{\thetmpcalc.\i}{$\bullet$}}%
      %%\typeout{\thetmpcalc.\i}%
      \fi}}%
%  \fi%
%  \fi%
  \addtocounter{tmpcalc}{-1}%
  \put(355,-3){\fymablue\hyperlink{\thetmpcalc.1}{\tiny$\blacktriangleleft$}}%
  \addtocounter{tmpcalc}{2}%
  \put(360,-3){\fymaroyalblue\hyperlink{\thetmpcalc.1}{\tiny$\blacktriangleright$}}%
}{\ifnoFooter\else\hfill%
  \ifisDraft
  {\@colorFoot\tiny \textbf{\jobname.tex}~--~\@Title~--~\@Author~--~\number\day/\number\month/\number\year~--~\timenow~--~p.~\thepage\ifallPages/\realpageref{last@page}\fi}%
  \else
  \ifshowVersion
  {\@colorFoot\tiny \textbf{\jobname.tex}~--~\@Title~--~\@Author~--~\number\day/\number\month/\number\year~--~\timenow~--~p.~\thepage\ifallPages/\realpageref{last@page}\fi}%
  \else
  {\@colorFoot\tiny
    \hypertarget{\thepage.\arabic{overlaysCount}}{\@cartouche~--~p.~\thepage\ifallPages/\realpageref{last@page}\fi}%
    \typeout{\thepage.\arabic{overlaysCount}}
  }%
  \fi\fi\fi%
}



% Definition of this style for slides.

\newcommand{\TPFrame}[1]
{
  % Main gradient
  \ifisDraft
  \else
  \psframe[linestyle=none, fillstyle=gradient, 
  gradbegin=fymafaintblue,gradend=white,gradmidpoint=0]
  (-0.87,-0.77)(11.97,8.47)
  \fi
  % Top line
  \psframe[linestyle=none,fillstyle=solid,linewidth=2pt,fillcolor=fymalightblue](-1,8.5)(12.1,8.4)

  % Top left cross
  \psframe[linestyle=none,fillstyle=solid,linewidth=2pt,fillcolor=fymalightblue](-0.9,8.6)(-0.8,8.25)
  % Top right cross
  \psframe[linestyle=none,fillstyle=solid,linewidth=2pt,fillcolor=fymalightblue](11.9,8.6)(12.0,8.25)

  % Bottom line
  \psframe[linestyle=none,fillstyle=solid,linewidth=2pt,fillcolor=fymalightblue](-1,-0.8)(12.1,-0.7)

  % Bottom left blue rectangle
  %\psframe[linestyle=none,fillstyle=solid,linewidth=2pt,fillcolor=fymalightblue](-1.4,-1.2)(0.4,-0.7)

  % Bottom left cross
  \psframe[linestyle=none,fillstyle=solid,linewidth=2pt,fillcolor=fymalightblue](-0.9,-0.9)(-0.8,-0.55)

  % Bottom right cross
  \psframe[linestyle=none,fillstyle=solid,linewidth=2pt,fillcolor=fymalightblue](11.9,-0.9)(12,-0.55)

  {\fymadarkblue \small \PutLogo} % Mandatory 
  {#1}
}

\NewSlideStyle{t}{6,3}{TPFrame}
\PDFCroppingBox{10 40 594 820}
\RequirePackage{semhelv}
\addtolength{\textwidth}{2cm}
\endinput

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