diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/powerdot/powerdot-sailor.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/powerdot/powerdot-sailor.sty | 174 |
1 files changed, 99 insertions, 75 deletions
diff --git a/Master/texmf-dist/tex/latex/powerdot/powerdot-sailor.sty b/Master/texmf-dist/tex/latex/powerdot/powerdot-sailor.sty index b813c2b5cbc..350c70e15da 100644 --- a/Master/texmf-dist/tex/latex/powerdot/powerdot-sailor.sty +++ b/Master/texmf-dist/tex/latex/powerdot/powerdot-sailor.sty @@ -6,9 +6,9 @@ %% %% powerdot.dtx (with options: `pdsailor') %% -%% ---------------------------------------------------------- -%% 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,62 +20,86 @@ %% %% 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-sailor}[2005/10/09 v1.1 sailor style (MH,HA)] +\ProvidesPackage{powerdot-sailor}[2005/12/06 v1.2 sailor style (MH,HA)] \RequirePackage{calc} \RequirePackage{amssymb} \RequirePackage{pst-grad} -\definecolor{pddblue}{rgb}{.141,.188,.235} -\definecolor{pdblue}{rgb}{.298,.392,.49} -\definecolor{pdlblue}{rgb}{.522,.592,.647} -\definecolor{pdgray}{rgb}{.8627,.8941,.9255} +\pddefinepalettes{Sea}{% Sea sailor (default) + \definecolor{pdcolor1}{rgb}{.141,.188,.235} % Dark blue #24303C + \definecolor{pdcolor2}{rgb}{.298,.392,.490} % Medium blue #4C647D + \definecolor{pdcolor3}{rgb}{.522,.592,.647} % Light blue #8597A5 + \definecolor{pdcolor4}{rgb}{.8627,.8941,.9255} % Lighter blue #DCE4EC +}{River}{% River variant + \definecolor{pdcolor1}{rgb}{.141,.235,.192} % Dark green #243C31 + \definecolor{pdcolor2}{rgb}{.298,.490,.404} % Medium green #4C7D67 + \definecolor{pdcolor3}{rgb}{.522,.647,.592} % Light green #85A597 + \definecolor{pdcolor4}{rgb}{.8627,.9255,.8980} % Lighter green #DCECE5 +}{Wine}{% Wine variant + \definecolor{pdcolor1}{rgb}{.235,.141,.161} % Dark red #3C2429 + \definecolor{pdcolor2}{rgb}{.490,.298,.337} % Medium red #7D4C56 + \definecolor{pdcolor3}{rgb}{.647,.522,.545} % Light red #A5858B + \definecolor{pdcolor4}{rgb}{.9255,.8627,.8745} % Lighter red #ECDCDF +}{Chocolate}{% Chocolate variant + \definecolor{pdcolor1}{rgb}{.235,.212,.141} % Dark brown #3C3624 + \definecolor{pdcolor2}{rgb}{.490,.443,.298} % Medium brown #7D714C + \definecolor{pdcolor3}{rgb}{.647,.616,.522} % Light brown #A59D85 + \definecolor{pdcolor4}{rgb}{.9255,.9098,.8627} % Lighter brown #ECE8DC +}{Cocktail}{% Cocktail variant + \definecolor{pdcolor1}{rgb}{.180,.141,.235} % Dark violet #2E243C + \definecolor{pdcolor2}{rgb}{.380,.298,.490} % Medium violet #614C7D + \definecolor{pdcolor3}{rgb}{.576,.522,.647} % Light violet #9385A5 + \definecolor{pdcolor4}{rgb}{.8902,.8627,.9255} % Lighter violet #E3DCEC +} \pddefinetemplate{basic}{% texthook=tl, titlefont=\Large\bfseries\color{white}\raggedleft, - iacolor=pdlblue, - toctcolor=pdlblue, + clockhook=tl,clockpos={0,\slideheight},clockalign=0, + iacolor=pdcolor3, + toctcolor=pdcolor3, tochlcolor=white, - tochltcolor=pddblue, + tochltcolor=pdcolor1, ifsetup=landscape, - lfpos={.02\slidewidth,.02\slideheight}, - rfpos={.98\slidewidth,.02\slideheight}, - tocsecsep=2.5ex, - tocslidesep=1.2ex, - tocslideindent=1ex, - tocpos={.01\slidewidth,.8\slideheight}, - tocwidth=.14\slidewidth, - tocsecm={\psline[linewidth=.5pt,linecolor=pddblue]% - (-.05,-.05)(.14\slidewidth,-.05)}, + lfpos={.02\slidewidth,.02\slideheight}, + rfpos={.98\slidewidth,.02\slideheight}, + tocsecsep=2.5ex, + tocslidesep=1.2ex, + tocslideindent=1ex, + tocpos={.01\slidewidth,.8\slideheight}, + tocwidth=.14\slidewidth, + tocsecm={\psline[linewidth=.5pt,linecolor=pdcolor1]% + (-.05,-.05)(.14\slidewidth,-.05)}, ifsetup=portrait, - lfpos={.02\slidewidth,.015\slideheight}, - rfpos={.98\slidewidth,.015\slideheight}, - tocsecsep=.1ex, - tocslidesep=.1ex, - stochook=tr, - stocpos={.49\slidewidth,.09\slideheight}, - stocfont=\tiny\raggedleft, - stocwidth=.48\slidewidth, - ntocpos={.51\slidewidth,.09\slideheight}, - ntocwidth=.48\slidewidth, + lfpos={.02\slidewidth,.015\slideheight}, + rfpos={.98\slidewidth,.015\slideheight}, + tocsecsep=.1ex, + tocslidesep=.1ex, + stochook=tr, + stocpos={.49\slidewidth,.09\slideheight}, + stocfont=\tiny\raggedleft, + stocwidth=.48\slidewidth, + ntocpos={.51\slidewidth,.09\slideheight}, + ntocwidth=.48\slidewidth, }{} \pddefinetemplate[basic]{topframe}{% titlehook=r, + clockcolor=white, ifsetup=landscape, - titlewidth=.9\slidewidth, - titlepos={.95\slidewidth,.92\slideheight}, - textheight=.74\slideheight, - textpos={.2\slidewidth,.8\slideheight}, - textwidth=.77\slidewidth, + titlewidth=.9\slidewidth, + titlepos={.95\slidewidth,.92\slideheight}, + textheight=.74\slideheight, + textpos={.2\slidewidth,.8\slideheight}, + textwidth=.77\slidewidth, ifsetup=portrait, - titlewidth=.94\slidewidth, - titlepos={.98\slidewidth,.95\slideheight}, - textheight=.75\slideheight, - textpos={.03\slidewidth,.87\slideheight}, - textwidth=.94\slidewidth + titlewidth=.94\slidewidth, + titlepos={.98\slidewidth,.95\slideheight}, + textheight=.75\slideheight, + textpos={.03\slidewidth,.87\slideheight}, + textwidth=.94\slidewidth }{% \pdifsetup{landscape}{% \pd@sailorroundedtopframe{.15\slideheight}% @@ -87,12 +111,13 @@ texthook=rt, textpos={.95\slidewidth,.77\slideheight}, textwidth=.9\slidewidth, - textfont=\color{pddblue}\raggedleft\tabcolsep0pt, + textfont=\color{pdcolor1}\raggedleft\tabcolsep0pt, textheight=.72\slideheight, titlefont=\Large\bfseries\color{white}, + clockcolor=pdcolor1, tocpos,ntocpos,stocpos -}{% - \psset{linecolor=pddblue}% +}{{% + \psset{linecolor=pdcolor1}% \pdifsetup{landscape}{% \pd@sailorroundedframe{\slidewidth}{.25\slidewidth}{.7\slideheight}% {.17\slideheight}% @@ -101,45 +126,45 @@ {.12\slideheight}% }% \pd@sailorgrad\slidewidth{.5\slideheight}% - \psset{linecolor=pdlblue}% + \psset{linecolor=pdcolor3}% \psarc*(0,.2\slideheight){3pt}{270}{90}% \multips(.08\slidewidth,.2\slideheight)(.08\slidewidth,0){9}{% \qdisk(0,0){3pt}% }% -} -\pddefinetemplate[topframe]{slide}{}{% +}} +\pddefinetemplate[topframe]{slide}{}{{% \pdifsetup{landscape}{% \pd@sailorgrad{.16\slidewidth}{.5\slideheight}% - \psset{linecolor=pdlblue}% + \psset{linecolor=pdcolor3}% \multips(.16\slidewidth,0.75pt)(0,.01\slideheight){82}{% \qdisk(0,0){.75pt}% }% }\pd@sailortocbg -} +}} \pddefinetemplate[topframe]{wideslide}{% tocpos,ifsetup=landscape, - textpos={.03\slidewidth,.8\slideheight}, - textwidth=.94\slidewidth + textpos={.03\slidewidth,.8\slideheight}, + textwidth=.94\slidewidth }{% \pdifsetup{portrait}\pd@sailortocbg{}% } \pddefinetemplate[slide]{sectionslide}{% - titlefont=\Large\bfseries\color{pddblue}\centering, + titlefont=\Large\bfseries\color{pdcolor1}\centering, titlehook=c, titlewidth=.55\slidewidth, ifsetup=landscape, - titlepos={.58\slidewidth,.55\slideheight}, + titlepos={.58\slidewidth,.55\slideheight}, ifsetup=portrait, - titlepos={.5\slidewidth,.55\slideheight}, + titlepos={.5\slidewidth,.55\slideheight}, }{} \pddefinetemplate[basic]{sectionwideslide}{% tocpos,stocpos,ntocpos, titlehook=c,titlewidth=.75\slidewidth, titlepos={.4\slidewidth,.695\slideheight}, titlefont=\Large\bfseries\color{white}\centering -}{% +}{{% \pd@sailorgrad\slidewidth{.5\slideheight}% - \psset{linecolor=pddblue}% + \psset{linecolor=pdcolor1}% \pdifsetup{landscape}{% \pd@sailorroundedframe{0pt}{.75\slidewidth}{.7\slideheight}% {.1\slideheight}% @@ -147,43 +172,43 @@ \pd@sailorroundedframe{0pt}{.75\slidewidth}{.7\slideheight}% {.07\slideheight}% }% - \psset{linecolor=pdlblue}% + \psset{linecolor=pdcolor3}% \psarc*(\slidewidth,.2\slideheight){3pt}{90}{270}% \multips(.92\slidewidth,.2\slideheight)(-.08\slidewidth,0){9}{% \qdisk(0,0){3pt}% }% -} -\def\pd@sailorroundedtopframe#1{% +}} +\def\pd@sailorroundedtopframe#1{{% \setlength\@tempdima{\slideheight-#1}% - \psset{linewidth=0pt,fillcolor=pdblue,fillstyle=solid,linecolor=pdblue}% + \psset{linewidth=0pt,fillcolor=pdcolor2,fillstyle=solid,linecolor=pdcolor2}% \psframe(#1,\slideheight)(\slidewidth,\@tempdima)% \pswedge*(#1,\slideheight){#1}{180}{275}% - \psset{linecolor=pddblue,linewidth=.8pt}% + \psset{linecolor=pdcolor1,linewidth=.8pt}% \psline(\slidewidth,\@tempdima)(#1,\@tempdima)% \psarc[fillstyle=none](#1,\slideheight){#1}{180}{270}% -} -\def\pd@sailorroundedframe#1#2#3#4{% +}} +\def\pd@sailorroundedframe#1#2#3#4{{% \setlength\@tempdima{#3+#4}% \setlength\@tempdimb{#3-#4}% - \psset{linewidth=0pt,linecolor=pdblue,fillcolor=pdblue,fillstyle=solid}% + \psset{linewidth=0pt,linecolor=pdcolor2,fillcolor=pdcolor2,fillstyle=solid}% \psframe(#1,\@tempdima)(#2,\@tempdimb)% \ifdim#1>#2\pswedge*(#2,#3){#4}{85}{275}\else\pswedge*(#2,#3){#4}{265}{95}\fi - \psset{linecolor=pddblue,linewidth=.8pt}% + \psset{linecolor=pdcolor1,linewidth=.8pt}% \psline(#1,\@tempdima)(#2,\@tempdima)% \ifdim#1>#2\psarc(#2,#3){#4}{90}{270}\else\psarc(#2,#3){#4}{270}{90}\fi \psline(#1,\@tempdimb)(#2,\@tempdimb)% -} +}} \def\pd@sailorgrad#1#2{% \psframe[linestyle=none,linewidth=0pt,fillstyle=gradient,% - gradbegin=pdgray,gradend=white,gradmidpoint=0](0,0)(#1,#2)% + gradbegin=pdcolor4,gradend=white,gradmidpoint=0](0,0)(#1,#2)% } -\def\pd@sailortocbg{% - \psset{linecolor=pdlblue}% +\def\pd@sailortocbg{{% + \psset{linecolor=pdcolor3}% \pd@sailorgrad\slidewidth{.1\slideheight}% \multips(1.5pt,.1\slideheight)(.01\slidewidth,0){100}{% \qdisk(0,0){.75pt}% }% -} +}} \setkeys[pd]{section}{sectemp=sectionslide,widesectemp=sectionwideslide} \def\pd@title#1{% \parbox[c][.15\textheight]{.75\slidewidth}{\raggedleft#1}% @@ -195,12 +220,11 @@ \pd@usedtocfont\color\pd@@tochltcolor#1% \end{minipage}% } -\def\labelitemi{\footnotesize\color{pdblue}\ensuremath\blacksquare} -\def\labelitemii{\footnotesize\color{pddblue}\ensuremath\square} -\def\labelitemiii{\tiny\color{pdblue}\ensuremath\blacksquare} -\def\labelitemiv{\tiny\color{pddblue}\ensuremath\square} +\def\labelitemi{\footnotesize\color{pdcolor2}\ensuremath\blacksquare} +\def\labelitemii{\footnotesize\color{pdcolor1}\ensuremath\square} +\def\labelitemiii{\tiny\color{pdcolor2}\ensuremath\blacksquare} +\def\labelitemiv{\tiny\color{pdcolor1}\ensuremath\square} \pdsetup{list={labelsep=1em,leftmargin=*,itemsep=0pt,topsep=5pt,parsep=0pt}} -\color{pddblue} \def\rmdefault{phv} \def\sfdefault{phv} \def\Hv@scale{.85} |