%PDF- %PDF-
| Direktori : /proc/self/root/usr/share/texlive/texmf-dist/tex/latex/powerdot/ |
| Current File : //proc/self/root/usr/share/texlive/texmf-dist/tex/latex/powerdot/powerdot-upen.sty |
%%
%% This is file `powerdot-upen.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-upen}[2005/12/10 v1.3 upen style (PRU,HA)]
\RequirePackage{calc}
\RequirePackage{pifont}
\RequirePackage{pst-grad}
\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{pdcolor4},
clockcolor=pdcolor4,clockpos={.99\slidewidth,\slideheight},
tocslidesep=.6ex,
toctcolor=white,
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},
cfpos={.5\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},
cfpos={.5\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=pdcolor2,%
gradend=pdcolor3,gradangle=-90,gradmidpoint=0,linewidth=0pt]%
(0,.8\slideheight)(\slidewidth,0)%
\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=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{pdcolor4},
textheight=.63\slideheight,
titlefont=\Large\bfseries\centering,tocpos,ntocpos,stocpos
}{%
\setlength\@tempdima{.8\slideheight+.5pt}%
\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=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=pdcolor2,gradend=pdcolor3,%
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=pdcolor2,gradend=white,linewidth=0pt,%
gradangle=90,gradmidpoint=.2,linestyle=none,dimen=outer]%
(.05\slidewidth,.8\slideheight)(.5\slidewidth,\@tempdima)%
}{%
\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{pdcolor4},
ifsetup=landscape,
titlepos={.59\slidewidth,.53\slideheight},
ifsetup=portrait,
titlepos={.5\slidewidth,.53\slideheight}
}{{%
\psset{linewidth=.8pt,linecolor=pdcolor3}%
\pdifsetup{landscape}{%
\psframe[fillstyle=solid,fillcolor=pdcolor2,linestyle=none]%
(.34\slidewidth,.65\slideheight)(.84\slidewidth,.4\slideheight)%
}{%
\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{pdcolor4},
titlepos={.5\slidewidth,.53\slideheight}
}{%
\psframe*[linecolor=pdcolor2]%
(.16\slidewidth,.65\slideheight)(.84\slidewidth,.4\slideheight)%
}
\def\pd@upenbg#1#2{%
\setlength\@tempdima{#1+.5pt}%
\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=pdcolor2,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{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}
}
\def\rmdefault{phv}
\def\sfdefault{phv}
\def\Hv@scale{.85}
\endinput
%%
%% End of file `powerdot-upen.sty'.