%==============================================================================
%
% HAPAggie -- style file for use with HA-prosper.
%
% Created by: Jack Stalnaker
%             stalnaker@tamu.edu
%             Texas A&M University
%
% Copyright (c) 2004 Jack Stalnaker. 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 program consists of the files listed in files.txt present in this package.
%
% Credit goes to Hendri Adriaens for creating HA-Prosper, and because this
%   style is based on an amalgamation of his HA style and the CentER style.
%   I made it more Texas A&M-like and added the curves and gradients.
%   I also changed the way the toc entries were highlighted in order to
%   allow multi-line entries. This was accomplished with strategically placed
%   \parboxes and \psframeboxes.
%
% N.B. This looks best when "Smooth line art" has been checked under
%   Acrobat Reader-->Edit-->Preferences-->General. Also, this would look
%   good with your logo(s) between the footers, as in the CentER style.
%==============================================================================

\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{HAPAggie}[2004/05/16]
\typeout{`Aggie' style for HA-prosper}
\typeout{(c) 2004 Jack Stalnaker, College Station, Texas}
\typeout{Package version: 1.1}
\typeout{ }

% Color definitions
\newrgbcolor{HAP@textc}{.17 .31 .44}
\newrgbcolor{maroon}{.51 .13 .16}
\newrgbcolor{HAP@framecolor}{.00 .37 .00}
\newrgbcolor{ccopperd}{.89 .85 .69}
\newrgbcolor{ccopperl}{.96 .94 .89}

% Highlighting definitions
\newrgbcolor{HAP@hcolor}{.51 .13 .16}  % Highlight frame color
\newrgbcolor{HAP@htcolor}{.99 .99 .99} % Highlight text color

% Font definitions
\FontTitle{\usefont{T1}{uag}{b}{n}\fontsize{14.4pt}{14pt}\selectfont\maroon}%
  {\usefont{T1}{phv}{b}{n}\fontsize{14.4pt}{14pt}\selectfont\maroon}
\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}
\ifHAP@portrait%
  \FontToc{\@fontTextColor\fontsize{4pt}{6pt}\selectfont}%
    {\@fontTextColor\fontsize{4pt}{6pt}\selectfont}
\else%
  \FontToc{\@fontTextColor\fontsize{6pt}{7.5pt}\selectfont}%
    {\@fontTextColor\fontsize{6pt}{7.5pt}\selectfont}
\fi

% Slide style definitions
\RequirePackage{pst-grad}
\newcommand{\TitleSlide}[1]{%
  \ifHAP@portrait%
    \psframe[linestyle=none,fillstyle=solid,%
    fillcolor=ccopperl](-2.1,-2.3)(12.7,8.4)%
    \psframe[linestyle=none,fillstyle=solid,%
    fillcolor=ccopperd](-2.1,8.35)(12.5,8.4)%
    \psellipse[linestyle=solid,linecolor=maroon,fillstyle=solid,%
    fillcolor=ccopperd](4,-1)(10,2)%
    \rput[lb](-0.5,8.8){%
        \@ifundefined{HAP@TSNav}%
        {\includegraphics[scale=.35]{AMLogo.eps}}%
        {\Acrobatmenu{\HAP@TSNav}{\includegraphics[scale=.35]{AMLogo.eps}}}%
      }%
    \HAP@PutLF{tl}{-0.95,-.35}%
    \HAP@PutRF{tr}{8.6,-.35}%
  \else%
    \psframe[linestyle=none,fillstyle=solid,%
    fillcolor=ccopperl](-2.1,-2.1)(12.7,7.4)%
    \psframe[linestyle=none,fillstyle=solid,%
    fillcolor=maroon](-2.1,7.35)(12.5,7.4)%
    \psellipse[linestyle=solid,linecolor=maroon,fillstyle=solid,%
    fillcolor=ccopperd](4.5,-1.5)(10,1.5)%
    \rput[lb](-1.5,6.6){%
        \@ifundefined{HAP@TSNav}%
        {\includegraphics[scale=.35]{AMLogo.eps}}%
        {\Acrobatmenu{\HAP@TSNav}{\includegraphics[scale=.35]{AMLogo.eps}}}%
      }%
    \HAP@PutLF{tl}{-1.65,-.9}%
    \HAP@PutRF{tr}{11.35,-.9}%
  \fi%
  {#1}}%

\newcommand{\NormalSlide}[1]{%
  \ifHAP@portrait%
    \psframe[linestyle=none,fillstyle=gradient,%
    gradbegin=ccopperl,gradend=white,gradmidpoint=0](-2.3,12)(.9,-.43)%
    \psellipse[linestyle=none,fillstyle=solid,%
    fillcolor=white](1.3,4.5)(1.5,8)%
    \psframe[linestyle=none,fillstyle=solid,%
    fillcolor=ccopperd](-2.1,-.6)(12.5,-.2)%
    \psline[linecolor=maroon,linewidth=.5pt](-2.1,-.21)(12.5,-.21)%
    \psframe[linestyle=none,fillstyle=solid,%
    fillcolor=ccopperl](-2.1,-2.3)(12.5,-.57)%
    \psframe[linestyle=none,fillstyle=solid,%
    fillcolor=maroon](-2.1,-2.2)(12.5,-2.3)%
    \rput[lb](-1,9.7){%
        \@ifundefined{HAP@NSNav}%
        {\includegraphics[scale=.25]{AMLogo.eps}}%
        {\Acrobatmenu{\HAP@NSNav}{\includegraphics[scale=.25]{AMLogo.eps}}}%
      }%
    \ifHAP@toc%
      \rput[tr](3.7,-.8){\begin{minipage}[t]{2cm}\HAP@tsections\end{minipage}}%
      \rput[tl](4.1,-.8){\begin{minipage}[t]{2cm}\HAP@tcontent\end{minipage}}%
    \fi%
    \HAP@PutLF{tl}{-0.95,-.35}%
    \HAP@PutRF{tr}{8.6,-.35}%
  \else%
    \psframe[linestyle=none,fillstyle=gradient,%
    gradbegin=ccopperl,gradend=white,gradmidpoint=0](-2.3,9)(.7,-.53)%
    \psellipse[linestyle=none,fillstyle=solid,%
    fillcolor=white](3.3,4.3)(3,10)%
    \ifHAP@toc%
      \rput[lt](-1.7,6.55){\begin{minipage}[t]{2cm}\HAP@toc\end{minipage}}%
    \fi%
    \psframe[linestyle=none,fillstyle=solid,%
    fillcolor=ccopperd](-2.1,-1.5)(12.5,-.5)%
    \psline[linecolor=maroon,linewidth=.5pt](-2.1,-.51)(12.5,-.51)%
    \rput[lb](-1.4,7.2){%
        \@ifundefined{HAP@NSNav}%
        {\includegraphics[scale=.25]{AMLogo.eps}}%
        {\Acrobatmenu{\HAP@NSNav}{\includegraphics[scale=.25]{AMLogo.eps}}}%
      }%
    \HAP@PutLF{tl}{-1.65,-.9}%
    \HAP@PutRF{tr}{11.35,-.9}%
  \fi%
  {#1}}%

\newcommand{\SpecialSlide}[1]{%
  \ifHAP@portrait%
    \psframe[linestyle=none,fillstyle=gradient,%
    gradbegin=ccopperl,gradend=white,gradmidpoint=0](-2.3,12)(.9,-.43)%
    \psellipse[linestyle=none,fillstyle=solid,%
    fillcolor=white](1.3,4.5)(1.5,8)%
    \psframe[linestyle=none,fillstyle=solid,%
    fillcolor=ccopperd](-2.1,-.6)(12.5,-.2)%
    \psline[linecolor=maroon,linewidth=.5pt](-2.1,-.21)(12.5,-.21)%
    \psframe[linestyle=none,fillstyle=solid,%
    fillcolor=ccopperl](-2.1,-2.3)(12.5,-.57)%
    \psframe[linestyle=none,fillstyle=solid,%
    fillcolor=maroon](-2.1,-2.2)(12.5,-2.3)%
    \rput[lb](-1,9.7){%
        \@ifundefined{HAP@NSNav}%
        {\includegraphics[scale=.25]{AMLogo.eps}}%
        {\Acrobatmenu{\HAP@NSNav}{\includegraphics[scale=.25]{AMLogo.eps}}}%
      }%
    \ifHAP@toc%
      \rput[tr](3.7,-.8){\begin{minipage}[t]{2cm}\HAP@tsections\end{minipage}}%
      \rput[tl](4.1,-.8){\begin{minipage}[t]{2cm}\HAP@tcontent\end{minipage}}%
    \fi%
    \HAP@PutLF{tl}{-0.95,-.35}%
    \HAP@PutRF{tr}{8.6,-.35}%
  \else%
    \psframe[linestyle=none,fillstyle=solid,%
    fillcolor=ccopperd](-2.1,-1.5)(12.5,-.5)%
    \psframe[linestyle=none,fillstyle=gradient,gradbegin=ccopperl,%
    gradend=white,gradmidpoint=1,gradangle=90](-2.1,7.65)(12.5,9.0)
    \rput[lb](-1.4,7.2){%
        \@ifundefined{HAP@NSNav}%
        {\includegraphics[scale=.25]{AMLogo.eps}}%
        {\Acrobatmenu{\HAP@NSNav}{\includegraphics[scale=.25]{AMLogo.eps}}}%
      }%
    \psline[linecolor=maroon,linewidth=.5pt](-2.1,-.51)(12.5,-.51)%
    \HAP@PutLF{tl}{-1.65,-.9}%
    \HAP@PutRF{tr}{11.35,-.9}%
  \fi%
  {#1}}%

\ifHAP@portrait
  \newcommand{\HAPR@titleSlide}{\NewSlideStyle[8.4cm]{t}{3.85,2.4}{TitleSlide}}
  \newcommand{\HAPR@normalSlide}{\NewSlideStyle[7.8cm]{tl}{.77,4}{NormalSlide}}
  \newcommand{\HAPR@wideSlide}{\NewSlideStyle[8.3cm]{tl}{-0.5,4}{SpecialSlide}}
  \newcommand{\slidetitle}[1]{\rput[Bl](.77,4.9){\fontTitle{\textsl{#1}}}}
\else
  \newcommand{\HAPR@titleSlide}{\NewSlideStyle[11cm]{t}{4.67,2.4}{TitleSlide}}
  \newcommand{\HAPR@normalSlide}{\NewSlideStyle[9.78cm]{tl}{.77,3.7}{NormalSlide}}
  \newcommand{\HAPR@wideSlide}{\NewSlideStyle[12.3cm]{tl}{-1.4,3.3}{SpecialSlide}}
  \newcommand{\slidetitle}[1]{\rput[Bl](.77,4.4){\fontTitle{\textsl{#1}}}}
\fi

% List item definitions
\RequirePackage{pifont}
\myitem{1}{\ifHAP@active\maroon\fi\raisebox{1pt}{\fontsize{6pt}{6pt}\selectfont\ding{108}}}
\myitem{2}{\ifHAP@active\maroon\fi\raisebox{1pt}{\fontsize{7pt}{7pt}\selectfont\ding{70}}}
\myitem{3}{\ifHAP@active\maroon\fi\raisebox{1pt}{\fontsize{5pt}{5pt}\selectfont\ding{110}}}

% Style of table of contents entries
\newcommand{\HAP@tline}[1]{\ding{118}\,\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}{%
  \ifHAP@portrait\else
    \psline[linecolor=maroon,linewidth=.25pt](-.05,-.05)(2,-.05)%
  \fi
}
\newcommand{\HAP@tsectiononly}[1]{\parbox{1.7cm}{\raggedright#1\,}}

\endinput