%==============================================================================
%
% HAPTCSTealBlue-- style file for use with HA-prosper.
%
% Created by: Chris Ellison
%
% Copyright (c) 2004 Chris Ellison. All rights reserved.
%
% This program may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.2
% of this license or (at your option) any later version.
% The latest version of this license is in
%   http://www.latex-project.org/lppl.txt
% and version 1.2 or later is part of all distributions of LaTeX
% version 1999/12/01 or later.
%
% This style consists of the files listed in files.txt
%
%=============================================================================
%
% 2003/05/15
%   Modifications to the TCS style
%   Modifications inspired by PPRfyma
%   Added \parbox for the TOC and title
%   Ready for HA-prosper 4.2
%
%=============================================================================

\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{HAPTCSTealBlue}[2004/05/16]
\typeout{`TCSTealBlue' style for HA-prosper}
\typeout{(c) 2004 Chris Ellison}
\typeout{Package version: 1.0}
\typeout{ }

\ifHAP@portrait
  \PackageError{HAPTCSTealBlue}{This template does not support portrait slides}%
  {Sorry, no additional help}%
\fi

% Loading packages necessary for gradients
\IfFileExists{pst-grad}{\RequirePackage{pst-grad}}{\RequirePackage{gradient}}
\RequirePackage{pst-slpe}

% Color Definitions
\newrgbcolor{TCStealblue}{0 0.4 0.4}
\newrgbcolor{TCSbrickred}{.4 .1255 0}
\newrgbcolor{TCSbulletone}{0 1 .6}
\newrgbcolor{TCSbullettwo}{.725 .937 .933}
\newrgbcolor{TCSbulletthree}{.8 1 .4}
\newrgbcolor{TCSdarkblue}{0.14 0.34 0.55}
\newrgbcolor{TCSfaintblue}{0.88 0.95 1.00}
\newrgbcolor{HAP@framecolor}{1 0 0}
\newrgbcolor{HAP@textc}{1 1 1}

% Star
\def\TCSstar{%
  \SpecialCoor
  \begin{pspicture}(-.5,-.5)(.5,.5)%
  \pspolygon[fillstyle=ccslopes,%
  slopecolors= 0 .3906 .1289  0  .9 .2656 .2148 .125   2 .0547 .2695 .2344   3,%
  linestyle=none](.5;0)(.25;22.5)(.5;45)(.25;67.2)(.5;90)(.25;112.5)%
  (.5;135)(.25;157.5)(.5;180)(.25;202.5)(.5;225)(.25;247.5)(.5;270)%
  (.25;292.5)(.5;315)(.25;337.5)%
  \end{pspicture}%
  \NormalCoor
}

% Highlighting definitions
\newrgbcolor{HAP@hcolor}{0 .4 .4}  % Highlight frame color for TOC
\newrgbcolor{HAP@htcolor}{.8 1 .4} % Highlight text color for TOC

% Font definitions
\FontTitle{%
   \usefont{T1}{phv}{b}{n}\fontsize{14.4pt}{14pt}\selectfont\TCSbullettwo}{%
   \usefont{T1}{phv}{b}{n}\fontsize{14.4pt}{14pt}\selectfont\TCSbullettwo}
\FontText{%
   \usefont{T1}{phv}{m}{n}\fontsize{10pt}{10pt}\selectfont\HAP@textc}{%
   \usefont{T1}{phv}{m}{n}\fontsize{10pt}{10pt}\selectfont\HAP@textc}
\FontLeftFoot{%
   \@fontTextColor\fontsize{4pt}{4pt}\selectfont}{%
   \@fontTextColor\fontsize{4pt}{4pt}\selectfont}
\FontRightFoot{%
   \@fontTextColor\fontsize{4pt}{4pt}\selectfont}{%
   \@fontTextColor\fontsize{4pt}{4pt}\selectfont}

% Slide style definitions
\newcommand{\TitleSlide}[1]{%
  % color of bottom portion
  \psframe[linestyle=none,fillstyle=solid,%
     fillcolor=TCStealblue](-2.1,-2.1)(12.7,7.4)%
  \Logo(-1.17,7.4){%
    \@ifundefined{HAP@TSNav}%
      {\TCSstar}%
      {\Acrobatmenu{\HAP@TSNav}{\TCSstar}}
    }%
  % Main gradient
  \ifisDraft
  \else
  \psframe[linestyle=none, fillstyle=gradient,%
     gradbegin=black,gradend=TCStealblue,gradmidpoint=0](-2.1,-1.5)(12.5,9)
  % (-2.1,-.57)(12.5,8.47)  (llc)(urc)
  \fi
  \PutLogo%
  \HAP@PutLF{tl}{-1.65,-.97}%
  \HAP@PutRF{tr}{11.35,-.97}%
  {#1}}%

\newcommand{\NormalSlide}[1]{%
  \Logo(-1.17,7.4){%
    \@ifundefined{HAP@NSNav}%
      {\TCSstar}%
      {\Acrobatmenu{\HAP@NSNav}{\TCSstar}}%
    }%
  % Main gradient
  \ifisDraft
  \else
  \psframe[linestyle=none, fillstyle=gradient,%
     gradbegin=black,gradend=TCStealblue,gradmidpoint=0](-2.1,-1.5)(12.5,9)
  \fi
  \ifHAP@toc%
    \rput[lt](-1.7,6.55){\begin{minipage}[t]{2cm}\HAP@toc\end{minipage}}%
  \fi%
  \PutLogo%
  \HAP@PutLF{tl}{-1.65,-.97}%
  \HAP@PutRF{tr}{11.35,-.97}%
  {#1}}%

\newcommand{\SpecialSlide}[1]{%
  \Logo(-1.17,7.4){%
    \@ifundefined{HAP@NSNav}%
      {\TCSstar}%
      {\Acrobatmenu{\HAP@NSNav}{\TCSstar}}%
    }%
  % Main gradient
  \ifisDraft
  \else
  \psframe[linestyle=none, fillstyle=gradient,%1.37
     gradbegin=black,gradend=TCStealblue,gradmidpoint=0](-2.1,-1.5)(12.5,9)
  \fi
  \PutLogo%
  \HAP@PutLF{tl}{-1.65,-.97}%
  \HAP@PutRF{tr}{11.35,-.97}%
  {#1}}%

\newcommand{\HAPR@titleSlide}{\NewSlideStyle[11cm]{t}{4.67,2.4}{TitleSlide}}
\newcommand{\HAPR@normalSlide}{\NewSlideStyle[9.78cm]{tl}{.77,3}{NormalSlide}}
\newcommand{\HAPR@wideSlide}{\NewSlideStyle[12.3cm]{tl}{-1.4,3}{SpecialSlide}}

% List item definitions
\RequirePackage{pifont}
\myitem{1}{\ifHAP@active\TCSbulletone\fi\raisebox{1pt}{\fontsize{7pt}{7pt}\selectfont\ding{115}}}
\myitem{2}{\ifHAP@active\TCSbullettwo\fi\raisebox{1pt}{\fontsize{7pt}{7pt}\selectfont\ding{108}}}
\myitem{3}{\ifHAP@active\TCSbulletthree\fi\raisebox{1pt}{\fontsize{7pt}{7pt}\selectfont\ding{110}}}

% Style of table of contents entries
\newcommand{\HAP@tline}[1]{\ding{242}\,\parbox[t]{1.7cm}{\raggedright#1}}
\newcommand{\HAP@tlineonly}[1]{\parbox[t]{1.7cm}{\raggedright#1}}
\newcommand{\HAP@tsection}[1]{\parbox[b]{1.9cm}{\raggedright#1}}
\newcommand{\HAP@tsectionm}{\psline[linecolor=white,linewidth=.25pt](-.05,-.05)(2,-.05)}
% make is so that the highlight frame color is not present in TOC
\def\HAP@hltocentry{\parbox[b]{\HAP@twidth}{\raggedright{\HAP@htcolor\HAP@toctext}}}

% Placement of slide title
\newcommand{\slidetitle}[1]{\rput[Bl](.77,4.15){\fontTitle{\parbox[c]{10.3cm}{\raggedright#1}}}}

% Declare default behaviors for hidden navigation
\HAPsetup{tsnav=FullScreen,nsnav=ShowBookmarks}

\endinput