summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/powerdot/powerdot-klope.sty
blob: 48d3d6a458b90c6f9f335a0f20825eb418e6be96 (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
%%
%% This is file `powerdot-klope.sty',
%% ---------------------------------------------------------------
%% Copyright (C) 2005-2010 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 "unmaintained".
%%
%% This work consists of all files listed in manifest.txt.
%%
%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{powerdot-klope}[2005/12/10 v1.1 klope style (CE,HA)]
\RequirePackage{pifont}
\RequirePackage{pst-slpe}
\pddefinepalettes{Spring}{
  \definecolor{pdcolor1}{rgb}{.475,.376,.271} % cedar
  \definecolor{pdcolor2}{rgb}{.682,.749,.376} % moss
  \definecolor{pdcolor3}{rgb}{1,.949,.749}    % sand
  \definecolor{pdcolor4}{rgb}{.749,.675,.376} % driftwood
  \colorlet{myiacolor}{pdcolor4}
  \colorlet{sectitlecolor}{pdcolor2}
  \colorlet{stitlecolor}{pdcolor3}
  \colorlet{lgsquare}{pdcolor1}
  \colorlet{smsquare}{pdcolor4}
  \colorlet{slidebg}{pdcolor3}
  \colorlet{slidehbg}{pdcolor2}
  \colorlet{mytoctcolor}{pdcolor1}
  \colorlet{mytochltcolor}{pdcolor3}
  \def\pd@klopebg{%
    \psframe[linestyle=none,fillstyle=slope,slopebegin=pdcolor3,%
      slopeend=pdcolor2,slopeangle=270](0,0)(\slidewidth,\slideheight)%
  }
}{PastelFlower}{
  \definecolor{pdcolor1}{rgb}{.349,.5,.5}     % sea green
  \definecolor{pdcolor2}{rgb}{.8,.706,.561}   % brown
  \definecolor{pdcolor3}{rgb}{.812,.902,.902} % sky blue
  \definecolor{pdcolor4}{rgb}{.8,.561,.561}   % rose
  \colorlet{myiacolor}{pdcolor4}
  \colorlet{sectitlecolor}{pdcolor4}
  \colorlet{stitlecolor}{pdcolor3}
  \colorlet{lgsquare}{pdcolor1}
  \colorlet{smsquare}{pdcolor4}
  \colorlet{slidebg}{pdcolor3}
  \colorlet{slidehbg}{pdcolor2}
  \colorlet{mytoctcolor}{pdcolor1}
  \colorlet{mytochltcolor}{pdcolor3}
  \def\pd@klopebg{%
    \psframe[linestyle=none,fillstyle=slope,slopebegin=pdcolor3,%
      slopeend=pdcolor2,slopeangle=270](0,0)(\slidewidth,\slideheight)%
  }
}{BlueWater}{
  \definecolor{pdcolor1}{rgb}{.902,.957,1}    % lightblue
  \definecolor{pdcolor2}{rgb}{.376,.588,.749} % medblue
  \definecolor{pdcolor3}{rgb}{.749,.635,.376} % lighttan
  \definecolor{pdcolor4}{rgb}{1,.8,.749}      % pink
  \colorlet{myiacolor}{pdcolor3}
  \colorlet{sectitlecolor}{pdcolor1}
  \colorlet{stitlecolor}{pdcolor2}
  \colorlet{lgsquare}{pdcolor3}
  \colorlet{smsquare}{pdcolor4}
  \colorlet{slidebg}{pdcolor2}
  \colorlet{slidehbg}{pdcolor1}
  \colorlet{mytoctcolor}{pdcolor3}
  \colorlet{mytochltcolor}{pdcolor2}
  \def\pd@klopebg{%
    \psframe*[linecolor=pdcolor2](0,0)(\slidewidth,\slideheight)%
  }
}{BlackWhite}{
  \definecolor{pdcolor1}{rgb}{0,0,0}    % white
  \definecolor{pdcolor2}{rgb}{1,1,1}    % black
  \definecolor{pdcolor3}{rgb}{.5,.5,.5} % gray
  \colorlet{myiacolor}{pdcolor3}
  \colorlet{sectitlecolor}{pdcolor1}
  \colorlet{stitlecolor}{pdcolor1}
  \colorlet{lgsquare}{pdcolor1}
  \colorlet{smsquare}{pdcolor3}
  \colorlet{slidebg}{pdcolor2}
  \colorlet{slidehbg}{pdcolor2}
  \colorlet{mytoctcolor}{pdcolor3}
  \colorlet{mytochltcolor}{pdcolor1}
  \def\pd@klopebg{%
    \psframe*[linecolor=pdcolor2](0,0)(\slidewidth,\slideheight)%
  }
}
\pddefinetemplate{titleslide}{
  textpos={.15\slidewidth,.75\slideheight},
  textwidth=.7\slidewidth,
  titlefont=\bfseries\LARGE\centering,
  textfont=\centering,
  textheight=.67\slideheight,
  clockhook=t,clockpos={.5\slidewidth,.045\slideheight},
  clockalign=1,clockcolor=pdcolor1
}{{%
  \psset{linewidth=0pt}\pd@klopebg
  \pd@klopesq+-01\pd@klopesq++00\pd@klopesq-+10\pd@klopesq--11%
}}
\pddefinetemplate{slide}{
  titlepos={.15\slidewidth,.93\slideheight},
  titlewidth=.7\slidewidth,
  titlefont=\bfseries\Large\color{stitlecolor}\centering,
  stochook=t,
  stocpos={.5\slidewidth,.89\slideheight},
  stocwidth=.7\slidewidth,stocorient=h,
  toctcolor=mytoctcolor,
  tochltcolor=mytochltcolor,
  tocsecsep=4pt,
  textpos={.05\slidewidth,.8\slideheight},
  textwidth=.9\slidewidth,
  textheight=.72\slideheight,
  lfpos={.015\slidewidth,.015\slideheight},
  lffont=\tiny,
  cfpos={.5\slidewidth,.015\slideheight},
  cffont=\tiny,
  rfpos={.985\slidewidth,.015\slideheight},
  rffont=\tiny,
  iacolor=myiacolor,
  clockhook=t,clockpos={.5\slidewidth,.045\slideheight},
  clockalign=1,clockcolor=pdcolor1
}{{%
  \psset{linewidth=0pt}%
  \psframe*[linecolor=slidebg](0,0)(\slidewidth,\slideheight)%
  \psframe*[linecolor=slidehbg](0,.85\slideheight)(\slidewidth,\slideheight)%
  \pd@klopesq+-01\pd@klopesq--11%
  \psset{linewidth=.1pt}%
  \psline[linecolor=pdcolor1](0,.05\slideheight)(\slidewidth,.05\slideheight)%
  \psline[linecolor=slidehbg](0,.055\slideheight)(\slidewidth,.055\slideheight)%
}}
\pddefinetemplate[slide]{wideslide}{}{}
\pddefinetemplate[slide]{sectionslide}{
  titlepos={.15\slidewidth,.55\slideheight},
  titlefont=\bfseries\LARGE\color{sectitlecolor}\centering,
  textpos,lfpos,cfpos,rfpos
}{{%
  \psframe*[linecolor=slidebg](0,0)(\slidewidth,.5\slideheight)%
  \pd@klopesq++00\pd@klopesq-+10%
}}
\def\pd@klopesq#1#2#3#4{%
  \@tempdima#3\slidewidth\@tempdimb#4\slideheight
  \advance\@tempdima#1.3cm\advance\@tempdimb#2.3cm
  \edef\pd@tempa{\the\@tempdima}\edef\pd@tempb{\the\@tempdimb}%
  \advance\@tempdima#1.8cm\advance\@tempdimb#2.8cm
  \psframe*[linecolor=lgsquare](\pd@tempa,\pd@tempb)%
    (\@tempdima,\@tempdimb)%
  \@tempdima\pd@tempa\@tempdimb\pd@tempb
  \advance\@tempdima#1.3cm\advance\@tempdimb#2.3cm
  \edef\pd@tempa{\the\@tempdima}\edef\pd@tempb{\the\@tempdimb}%
  \advance\@tempdima#1.7cm\advance\@tempdimb#2.7cm
  \psframe*[linecolor=smsquare](\pd@tempa,\pd@tempb)%
    (\@tempdima,\@tempdimb)%
}
\def\pd@tocdisplay#1{\pd@usedtocfont\color\pd@@toctcolor#1}
\def\pd@tochighlight#1{\pd@usedtocfont\color\pd@@tochltcolor#1}
\setkeys[pd]{section}{sectemp=sectionslide,widesectemp=sectionslide}
\def\labelitemi{\footnotesize\ding{110}}
\def\labelitemii{\small\ding{117}}
\def\labelitemiii{\tiny\ding{110}}
\def\labelitemiv{\tiny\ding{117}}
\pdsetup{
  list={labelsep=1em,leftmargin=*,itemsep=0pt,topsep=5pt,parsep=0pt}
}
\def\rmdefault{cmss}
\endinput
%%
%% End of file `powerdot-klope.sty'.