summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/powerdot/powerdot-upen.sty
blob: eea919e6ee2c22d2085b7a2490ada255ca13c343 (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
%%
%% This is file `powerdot-upen.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% powerdot.dtx  (with options: `pdupen')
%% 
%% ----------------------------------------------------------
%% Copyright (C) 2005 Hendri Adriaens and Christopher Ellison
%% ----------------------------------------------------------
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
%% 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.3 or later is part of all distributions of LaTeX
%% version 2003/12/01 or later.
%%
%% This work has the LPPL maintenance status "maintained".
%%
%% This Current Maintainer of this work is Christopher Ellison.
%%
%% This work consists of all files listed in manifest.txt.
%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{powerdot-upen}[2005/10/09 v1.1 upen style (PRU,HA)]
\RequirePackage{calc}
\RequirePackage{pifont}
\RequirePackage{pst-grad}
\definecolor{pddblue}{rgb}{0,.01,.37}
\definecolor{pdblue}{rgb}{.01,.06,.65}
\definecolor{pdlblue}{rgb}{.88,.95,1}
\definecolor{pdgyellow}{rgb}{.98,.78,.18}
\pddefinetemplate{basic}{
  titlefont=\large\bfseries\color{pdgyellow},
  tocslidesep=.6ex,
  toctcolor=white,
  tochlcolor=pddblue,
  tochltcolor=pdgyellow,
  ifsetup=portrait,
  textheight=.64\slideheight,
  titlepos={.12\slidewidth,.87\slideheight},
  titlewidth=.83\slidewidth,
  textpos={.12\slidewidth,.78\slideheight},
  textwidth=.83\slidewidth,
  tocsecsep=.6ex,
  stochook=tr,stocpos={.47\slidewidth,.12\slideheight},
  stocfont=\tiny\raggedleft,
  ntochook=tl,ntocpos={.52\slidewidth,.12\slideheight},
  lfpos={.05\slidewidth,.045\slideheight},
  rfpos={.95\slidewidth,.045\slideheight},
  ifsetup=landscape,
  titlepos={.175\slidewidth,.87\slideheight},
  titlewidth=.775\slidewidth,
  textheight=.7\slideheight,
  textpos={.175\slidewidth,.77\slideheight},
  textwidth=.775\slidewidth,
  lfpos={.05\slidewidth,.03\slideheight},
  rfpos={.95\slidewidth,.03\slideheight},
  tocpos={.02\slidewidth,.77\slideheight},
  tocwidth=.13\slidewidth,
  tocsecm={\psline[linewidth=.5pt,linecolor=pdgyellow]%
    (-.05,-.05)(.12\slidewidth,-.05)}
}{%
  \pdifsetup{landscape}{%
    \psframe[linestyle=none,fillstyle=gradient,gradbegin=pddblue,%
      gradend=pdblue,gradangle=-90,gradmidpoint=0,linewidth=0pt]%
      (0,.8\slideheight)(\slidewidth,0)%
    \psframe[linestyle=none,fillstyle=gradient,gradbegin=pddblue,%
      gradend=pddblue,gradmidpoint=0,dimen=outer,linewidth=0pt]%
      (0,.8\slideheight)(\slidewidth,\slideheight)%
  }{%
    \psframe[linestyle=none,fillstyle=gradient,gradbegin=pdblue,%
      gradend=pddblue,gradmidpoint=0,dimen=outer]%
      (-.01\slidewidth,1.1\slideheight)(1.05\slidewidth,-.01\slideheight)%
  }%
}
\pddefinetemplate[basic]{titleslide}{
  texthook=t,textpos={.5\slidewidth,.7\slideheight},
  textwidth=.9\slidewidth,textfont=\centering\color{pdgyellow},
  textheight=.63\slideheight,
  titlefont=\Large\bfseries\centering,tocpos,ntocpos,stocpos
}{%
  \setlength\@tempdima{.8\slideheight+.5pt}%
  \psframe[fillstyle=gradient,gradbegin=pdblue,gradend=pdgyellow,%
    gradangle=90,gradmidpoint=.5,linestyle=none,dimen=outer,linewidth=0pt]%
    (0,.8\slideheight)(\slidewidth,\@tempdima)%
  \setlength\@tempdima{.2\slideheight+.5pt}%
  \psframe[fillstyle=gradient,gradbegin=pdblue,gradend=pdgyellow,%
    gradangle=90,gradmidpoint=.5,linestyle=none,dimen=outer,linewidth=0pt]%
    (0,.2\slideheight)(\slidewidth,\@tempdima)%
}
\pddefinetemplate[basic]{slide}{}{%
  \pdifsetup{landscape}{%
    \psframe[fillstyle=gradient,gradbegin=pddblue,gradend=pdblue,%
      gradmidpoint=1,linestyle=none,dimen=outer,linewidth=0pt]%
      (0,\slideheight)(.15\slidewidth,0)%
    \pd@upenbg{.15\slidewidth}{.05\slidewidth}%
  }{\pd@upenbg{.1\slidewidth}{0pt}}%
}
\pddefinetemplate[basic]{wideslide}{
  titlepos={.05\slidewidth,.87\slideheight},
  titlewidth=.9\slidewidth,
  textpos={.05\slidewidth,.77\slideheight},
  textwidth=.9\slidewidth,
  ifsetup=landscape,tocpos
}{%
  \setlength\@tempdima{.8\slideheight-.5pt}%
  \pdifsetup{landscape}{%
    \psframe[fillstyle=gradient,gradbegin=pddblue,gradend=white,linewidth=0pt,%
      gradangle=90,gradmidpoint=.2,linestyle=none,dimen=outer]%
      (.05\slidewidth,.8\slideheight)(.5\slidewidth,\@tempdima)%
  }{%
    \psframe[fillstyle=gradient,gradbegin=pddblue,gradend=white,linewidth=0pt,%
      gradangle=90,gradmidpoint=.2,linestyle=none,dimen=outer]%
      (0,.8\slideheight)(.45\slidewidth,\@tempdima)%
  }%
}
\pddefinetemplate[slide]{sectionslide}{
  titlewidth=.45\slidewidth,titlehook=c,
  titlefont=\Large\bfseries\centering\color{pdgyellow},
  ifsetup=landscape,
  titlepos={.59\slidewidth,.53\slideheight},
  ifsetup=portrait,
  titlepos={.5\slidewidth,.53\slideheight}
}{%
  \psset{linewidth=.8pt,linecolor=pdblue}%
  \pdifsetup{landscape}{%
    \psframe[fillstyle=solid,fillcolor=pddblue,linestyle=none]%
      (.34\slidewidth,.65\slideheight)(.84\slidewidth,.4\slideheight)%
  }{%
    \psframe[fillstyle=solid,fillcolor=pddblue,linestyle=none]%
      (.16\slidewidth,.65\slideheight)(.84\slidewidth,.4\slideheight)%
  }%
}
\pddefinetemplate[wideslide]{sectionwideslide}{%
  titlewidth=.62\slidewidth,titlehook=c,
  titlefont=\Large\bfseries\centering\color{pdgyellow},
  titlepos={.5\slidewidth,.53\slideheight}
}{%
  \psframe*[linecolor=pddblue]%
    (.16\slidewidth,.65\slideheight)(.84\slidewidth,.4\slideheight)%
}
\def\pd@upenbg#1#2{%
  \setlength\@tempdima{#1+.5pt}%
  \psframe[fillstyle=gradient,gradbegin=pddblue,gradend=white,%
    gradmidpoint=.4,linestyle=none,dimen=outer,linewidth=0pt]%
    (#1,.5\slideheight)(\@tempdima,\slideheight)%
  \setlength\@tempdima{.45\slidewidth+#2}%
  \setlength\@tempdimb{.8\slideheight-.5pt}%
  \psframe[fillstyle=gradient,gradbegin=pddblue,gradend=white,linewidth=0pt,%
    gradangle=90,gradmidpoint=.2,linestyle=none,dimen=outer]%
    (#2,.8\slideheight)(\@tempdima,\@tempdimb)%
}
\setkeys[pd]{section}{sectemp=sectionslide,widesectemp=sectionwideslide}
\def\pd@tochighlight#1{%
  \begin{minipage}[b]\pd@@tocwidth
    \pd@usedtocfont\color\pd@@tochltcolor#1%
  \end{minipage}%
}
\pdifsetup{landscape}{\def\pd@tocentry#1{{\tiny\ensuremath\bullet}\ #1}}{}
\def\labelitemi{\footnotesize\ding{110}}
\def\labelitemii{\color{pdgyellow}\small ---}
\def\labelitemiii{\color{red}\scriptsize\ding{115}}
\def\labelitemiv{\color{yellow}\tiny\ensuremath\circ}
\pdsetup{
  list={labelsep=1em,leftmargin=*,itemsep=0pt,topsep=5pt,parsep=0pt}
}
\color{white}
\def\rmdefault{phv}
\def\sfdefault{phv}
\def\Hv@scale{.85}
\endinput
%%
%% End of file `powerdot-upen.sty'.