summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/ha-prosper/Run/Styles/TCS/HAPTCSTealBlue.sty
blob: 4c5c370f1de2d774f32622094221c736d8ea109e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
%==============================================================================
%
% 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