%==============================================================================
%
% HA-linit -- style file for use with HA-prosper.
%
% Created by: Clifford Wolf
%             http://www.clifford.at/
%
% Based on HAPHA style by:
%             Hendri Adriaens
%             http://center.uvt.nl/phd_stud/adriaens
%             Center for Economic Research
%             Tilburg University, the Netherlands
%
% Copyright (c) 2005 Clifford Wolf. All rights reserved.
% Copyright (c) 2003-2004 Hendri Adriaens. 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.
%
%==============================================================================

\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{HAPlinbit}[2004/02/20]
\typeout{`HA' style for HA-prosper}
\typeout{(c) 2003-2004 Hendri Adriaens, Tilburg, the Netherlands}
\typeout{Package version: 1.4}
\typeout{ }

% Color definitions
\newrgbcolor{ddblue}{.17 .31 .44}
\newrgbcolor{HAP@textc}{.17 .31 .44}
\newrgbcolor{dblue}{.19 .44 .61}
\newrgbcolor{lblue}{.75 .85 .92}
\newrgbcolor{llblue}{.90 .95 .98}
\newrgbcolor{HAP@framecolor}{.17 .31 .44}

% Highlighting definitions
\newrgbcolor{HAP@hcolor}{.17 .31 .44}  % Highlight frame color
\newrgbcolor{HAP@htcolor}{.90 .95 .98} % Highlight text color
\def\HAP@hlca{-.05}                    % Highlight frame coordinates relative to entry
\def\HAP@hlcb{-.05}
\def\HAP@hlcc{2}
\def\HAP@hlcd{.15}

% Font definitions
\FontTitle{\usefont{T1}{phv}{b}{n}\fontsize{14.4pt}{14pt}\selectfont\ddblue}%
  {\usefont{T1}{phv}{b}{n}\fontsize{14.4pt}{14pt}\selectfont\ddblue}
\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]{%
  \ifHAP@portrait%
    \psframe[linestyle=none,fillstyle=solid,%
    fillcolor=llblue](-2.1,-2.3)(12.7,8.4)%
    \psframe[linestyle=none,fillstyle=solid,%
    fillcolor=ddblue](-2.1,8.35)(12.5,8.4)%
    \HAP@PutLF{tl}{-0.95,-.35}%
    \HAP@PutRF{tr}{8.6,-.35}%
  \else%
    \psframe[linestyle=none,fillstyle=solid,%
    fillcolor=llblue](-2.1,-2.1)(12.7,7.4)%
    \psframe[linestyle=none,fillstyle=solid,%
    fillcolor=ddblue](-2.1,7.35)(12.5,7.4)%
    \HAP@PutLF{tl}{-1.65,-.9}%
    \HAP@PutRF{tr}{11.35,-.9}%
  \fi%
  {#1}}%

\newcommand{\NormalSlide}[1]{%
  \ifHAP@portrait%
    \psframe[linestyle=none,fillstyle=solid,%
    fillcolor=llblue](-2.3,9.965)(.537,-.43)%
    \psframe[linestyle=none,fillstyle=solid,%
    fillcolor=llblue](-2.3,12)(12.5,9.935)%
    \psframe[linestyle=none,fillstyle=solid,%
    fillcolor=lblue](-2.1,-.6)(12.5,-.2)%
    \psframe[linestyle=none,fillstyle=solid,%
    fillcolor=llblue](-2.1,-2.3)(12.5,-.57)%
    \psframe[linestyle=none,fillstyle=solid,%
    fillcolor=dblue](-2.1,-2.2)(12.5,-2.3)%
    \rput[lb](-2.3,9.95){%
        \@ifundefined{HAP@NSNav}%
        {\includegraphics[scale=.14]{linbit.ps}}%
        {\Acrobatmenu{\HAP@NSNav}{\includegraphics[scale=.14]{linbit.ps}}}%
      }%
    \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=llblue](-2.3,7.72)(.537,-.43)%
    \ifHAP@toc%
      \rput[lt](-1.7,7.05){\begin{minipage}[t]{2cm}\HAP@toc\end{minipage}}%
    \fi%
    \psframe[linestyle=none,fillstyle=solid,%
    fillcolor=llblue](-2.3,8.9)(12.5,7.685)%
    \psframe[linestyle=none,fillstyle=solid,%
    fillcolor=lblue](-2.1,-1.3)(12.5,-.4)%
    \psframe[linestyle=none,fillstyle=solid,%
    fillcolor=dblue](-2.1,-1.32)(12.5,-1.27)%
    \rput[lb](-2.3,7.7){%
        \@ifundefined{HAP@NSNav}%
        {\includegraphics[scale=.14]{linbit.ps}}%
        {\Acrobatmenu{\HAP@NSNav}{\includegraphics[scale=.14]{linbit.ps}}}%
      }%
    \HAP@PutLF{tl}{-1.65,-.9}%
    \HAP@PutRF{tr}{11.35,-.9}%
  \fi%
  {#1}}%
  
\newcommand{\SpecialSlide}[1]{%
  \ifHAP@portrait%
    \psframe[linestyle=none,fillstyle=solid,%
    fillcolor=llblue](-2.3,9.965)(.537,-.43)%
    \psframe[linestyle=none,fillstyle=solid,%
    fillcolor=llblue](-2.3,12)(12.5,9.935)%
    \psframe[linestyle=none,fillstyle=solid,%
    fillcolor=lblue](-2.1,-.6)(12.5,-.2)%
    \psframe[linestyle=none,fillstyle=solid,%
    fillcolor=llblue](-2.1,-2.3)(12.5,-.57)%
    \psframe[linestyle=none,fillstyle=solid,%
    fillcolor=dblue](-2.1,-2.2)(12.5,-2.3)%
    \rput[lb](-2.3,9.95){%
        \@ifundefined{HAP@NSNav}%
        {\includegraphics[scale=.14]{linbit.ps}}%
        {\Acrobatmenu{\HAP@NSNav}{\includegraphics[scale=.14]{linbit.ps}}}%
      }%
    \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=llblue](-2.3,8.9)(12.5,7.685)%
    \psframe[linestyle=none,fillstyle=solid,%
    fillcolor=lblue](-2.1,-1.3)(12.5,-.4)%
    \psframe[linestyle=none,fillstyle=solid,%
    fillcolor=dblue](-2.1,-1.32)(12.5,-1.27)%
    \rput[lb](-2.3,7.7){%
        \@ifundefined{HAP@NSNav}%
        {\includegraphics[scale=.14]{linbit.ps}}%
        {\Acrobatmenu{\HAP@NSNav}{\includegraphics[scale=.14]{linbit.ps}}}%
      }%
    \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[7.8cm]{tl}{.77,4}{SpecialSlide}}
  \newcommand{\slidetitle}[1]{\rput[lt](.77,5.15){\fontTitle{#1}}}
\else%
  \newcommand{\HAPR@titleSlide}{\NewSlideStyle[11cm]{t}{4.67,2.4}{TitleSlide}}
  \newcommand{\HAPR@normalSlide}{\NewSlideStyle[9.78cm]{tl}{.77,3.5}{NormalSlide}}
  \newcommand{\HAPR@wideSlide}{\NewSlideStyle[12.3cm]{tl}{-1.4,3.5}{SpecialSlide}}
  \newcommand{\slidetitle}[1]{\rput[lt](.77,4.7){\fontTitle{#1}}}
\fi%

% List item definitions
\RequirePackage{pifont}
\myitem{1}{\dblue\raisebox{1pt}{\fontsize{7pt}{7pt}\selectfont\ding{110}}}
\myitem{2}{\dblue\raisebox{1pt}{\fontsize{7pt}{7pt}\selectfont\ding{117}}}
\myitem{3}{\dblue\raisebox{1pt}{\fontsize{5pt}{5pt}\selectfont\ding{110}}}

% Style of table of contents entries
\newcommand{\HAP@tline}[1]{\ding{108}\,#1}
\newcommand{\HAP@tlineonly}[1]{#1}
\newcommand{\HAP@tsection}[1]{\psline[linecolor=ddblue,linewidth=.25pt](\HAP@hlca,\HAP@hlcb)(\HAP@hlcc,\HAP@hlcb)#1}
\newcommand{\HAP@tsectiononly}[1]{\parbox{2cm}{\raggedleft#1\,}}
\newcommand{\HAP@tsectionskip}{1.5em}

\endinput
