summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/powerdot/powerdot-upen.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-07-14 22:42:30 +0000
committerKarl Berry <karl@freefriends.org>2006-07-14 22:42:30 +0000
commit9050dab9c1fe96ee740f4b240c9f1cbdeb764d08 (patch)
tree7e0ecfb5592cc0cfc6b22a9492daa2a278b04502 /Master/texmf-dist/tex/latex/powerdot/powerdot-upen.sty
parent8e31fe3c99d1f1b6a0eda074f89b206fd70aa9e5 (diff)
powerdot update
git-svn-id: svn://tug.org/texlive/trunk@1842 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/powerdot/powerdot-upen.sty')
-rw-r--r--Master/texmf-dist/tex/latex/powerdot/powerdot-upen.sty122
1 files changed, 62 insertions, 60 deletions
diff --git a/Master/texmf-dist/tex/latex/powerdot/powerdot-upen.sty b/Master/texmf-dist/tex/latex/powerdot/powerdot-upen.sty
index eea919e6ee2..284ad14a2dd 100644
--- a/Master/texmf-dist/tex/latex/powerdot/powerdot-upen.sty
+++ b/Master/texmf-dist/tex/latex/powerdot/powerdot-upen.sty
@@ -6,9 +6,9 @@
%%
%% powerdot.dtx (with options: `pdupen')
%%
-%% ----------------------------------------------------------
-%% Copyright (C) 2005 Hendri Adriaens and Christopher Ellison
-%% ----------------------------------------------------------
+%% ---------------------------------------------------------------
+%% Copyright (C) 2005-2006 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
@@ -20,81 +20,84 @@
%%
%% This work has the LPPL maintenance status "maintained".
%%
-%% This Current Maintainer of this work is Christopher Ellison.
+%% This Current Maintainer of this work is Hendri Adriaens.
%%
%% 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)]
+\ProvidesPackage{powerdot-upen}[2005/12/06 v1.2 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}
+\pddefinepalettes{default}{
+ \colorlet{pdcolor1}{white}
+ \definecolor{pdcolor2}{rgb}{0,.01,.37}
+ \definecolor{pdcolor3}{rgb}{.01,.06,.65}
+ \definecolor{pdcolor4}{rgb}{.98,.78,.18}
+}
\pddefinetemplate{basic}{
- titlefont=\large\bfseries\color{pdgyellow},
+ titlefont=\large\bfseries\color{pdcolor4},
+ clockcolor=pdcolor4,clockpos={.99\slidewidth,\slideheight},
tocslidesep=.6ex,
toctcolor=white,
- tochlcolor=pddblue,
- tochltcolor=pdgyellow,
+ tochlcolor=pdcolor2,
+ tochltcolor=pdcolor4,
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},
+ 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)}
+ 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=pdcolor4]%
+ (-.05,-.05)(.12\slidewidth,-.05)}
}{%
\pdifsetup{landscape}{%
- \psframe[linestyle=none,fillstyle=gradient,gradbegin=pddblue,%
- gradend=pdblue,gradangle=-90,gradmidpoint=0,linewidth=0pt]%
+ \psframe[linestyle=none,fillstyle=gradient,gradbegin=pdcolor2,%
+ gradend=pdcolor3,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]%
+ \psframe[linestyle=none,fillstyle=gradient,gradbegin=pdcolor2,%
+ gradend=pdcolor2,gradmidpoint=0,dimen=outer,linewidth=0pt]%
(0,.8\slideheight)(\slidewidth,\slideheight)%
}{%
- \psframe[linestyle=none,fillstyle=gradient,gradbegin=pdblue,%
- gradend=pddblue,gradmidpoint=0,dimen=outer]%
+ \psframe[linestyle=none,fillstyle=gradient,gradbegin=pdcolor3,%
+ gradend=pdcolor2,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},
+ textwidth=.9\slidewidth,textfont=\centering\color{pdcolor4},
textheight=.63\slideheight,
titlefont=\Large\bfseries\centering,tocpos,ntocpos,stocpos
}{%
\setlength\@tempdima{.8\slideheight+.5pt}%
- \psframe[fillstyle=gradient,gradbegin=pdblue,gradend=pdgyellow,%
+ \psframe[fillstyle=gradient,gradbegin=pdcolor3,gradend=pdcolor4,%
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,%
+ \psframe[fillstyle=gradient,gradbegin=pdcolor3,gradend=pdcolor4,%
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,%
+ \psframe[fillstyle=gradient,gradbegin=pdcolor2,gradend=pdcolor3,%
gradmidpoint=1,linestyle=none,dimen=outer,linewidth=0pt]%
(0,\slideheight)(.15\slidewidth,0)%
\pd@upenbg{.15\slidewidth}{.05\slidewidth}%
@@ -109,48 +112,48 @@
}{%
\setlength\@tempdima{.8\slideheight-.5pt}%
\pdifsetup{landscape}{%
- \psframe[fillstyle=gradient,gradbegin=pddblue,gradend=white,linewidth=0pt,%
+ \psframe[fillstyle=gradient,gradbegin=pdcolor2,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,%
+ \psframe[fillstyle=gradient,gradbegin=pdcolor2,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},
+ titlefont=\Large\bfseries\centering\color{pdcolor4},
ifsetup=landscape,
- titlepos={.59\slidewidth,.53\slideheight},
+ titlepos={.59\slidewidth,.53\slideheight},
ifsetup=portrait,
- titlepos={.5\slidewidth,.53\slideheight}
-}{%
- \psset{linewidth=.8pt,linecolor=pdblue}%
+ titlepos={.5\slidewidth,.53\slideheight}
+}{{%
+ \psset{linewidth=.8pt,linecolor=pdcolor3}%
\pdifsetup{landscape}{%
- \psframe[fillstyle=solid,fillcolor=pddblue,linestyle=none]%
+ \psframe[fillstyle=solid,fillcolor=pdcolor2,linestyle=none]%
(.34\slidewidth,.65\slideheight)(.84\slidewidth,.4\slideheight)%
}{%
- \psframe[fillstyle=solid,fillcolor=pddblue,linestyle=none]%
+ \psframe[fillstyle=solid,fillcolor=pdcolor2,linestyle=none]%
(.16\slidewidth,.65\slideheight)(.84\slidewidth,.4\slideheight)%
}%
-}
+}}
\pddefinetemplate[wideslide]{sectionwideslide}{%
titlewidth=.62\slidewidth,titlehook=c,
- titlefont=\Large\bfseries\centering\color{pdgyellow},
+ titlefont=\Large\bfseries\centering\color{pdcolor4},
titlepos={.5\slidewidth,.53\slideheight}
}{%
- \psframe*[linecolor=pddblue]%
+ \psframe*[linecolor=pdcolor2]%
(.16\slidewidth,.65\slideheight)(.84\slidewidth,.4\slideheight)%
}
\def\pd@upenbg#1#2{%
\setlength\@tempdima{#1+.5pt}%
- \psframe[fillstyle=gradient,gradbegin=pddblue,gradend=white,%
+ \psframe[fillstyle=gradient,gradbegin=pdcolor2,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,%
+ \psframe[fillstyle=gradient,gradbegin=pdcolor2,gradend=white,linewidth=0pt,%
gradangle=90,gradmidpoint=.2,linestyle=none,dimen=outer]%
(#2,.8\slideheight)(\@tempdima,\@tempdimb)%
}
@@ -162,13 +165,12 @@
}
\pdifsetup{landscape}{\def\pd@tocentry#1{{\tiny\ensuremath\bullet}\ #1}}{}
\def\labelitemi{\footnotesize\ding{110}}
-\def\labelitemii{\color{pdgyellow}\small ---}
+\def\labelitemii{\color{pdcolor4}\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}