summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/HA-prosper/Styles/Aggie/HAPAggie.sty
blob: 1ed1c7922da858e6e6ba55d4dd7053d71499d86b (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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
%==============================================================================
%
% 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