%% version = 1.05 of powerdot-zen.sty 2006 May 14
%% This is file `powerdot-zen.sty',
%% It is a modification of `powerdot-default.sty',
%% from Hendri Adriaens and Christopher Ellison
%%
%% The idea is to make a very clean and simple style.
%%
%%   Dr. Thomas D. Schneider
%%   toms@alum.mit.edu
%%   permanent email: toms@alum.mit.edu (use only if first address fails)
%%   https://alum.mit.edu/www/toms/
%% ---------------------------------------------------------------
%%
%% INAPPROPRIATE AND IRRELEVANT PARAGRAPH FOR NOW:
%% 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 Current Maintainer of this work is Tom Schneider
%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{powerdot-zen}[2006/04/18 v1.03 zen style]
\RequirePackage{pifont}
%\definecolor{pdcolor1}{rgb}{.17,.31,.44}
\definecolor{pdcolor1}{rgb}{.00,.00,.00} % Define basic color to be BLACK
\definecolor{pdcolor2}{rgb}{.75,.85,.92}
\definecolor{pdcolor3}{rgb}{.9,.95,.98}
% \definecolor{pdcolor4}{rgb}{.00,.00,.00} % black
\definecolor{pdcolor4}{rgb}{.00,.00,.00} % black
\definecolor{pdcolor5}{rgb}{.17,.31,.44} % original light blue for text
% \definecolor{iacolor}=green
% \definecolor{iacolor}{rgb}{1.00,1.00,1.00}%green
\pddefinepalettes{blue}{}{red}{
  \colorlet{pdcolor1}{pdcolor1>wheel,150}
  \colorlet{pdcolor2}{pdcolor2>wheel,150}
  \colorlet{pdcolor3}{pdcolor3>wheel,150}
}{green}{
  \colorlet{pdcolor1}{pdcolor1>wheel,290}
  \colorlet{pdcolor2}{pdcolor2>wheel,290}
  \colorlet{pdcolor3}{pdcolor3>wheel,290}
}{yellow}{
  \colorlet{pdcolor1}{pdcolor1>wheel,-150}
  \colorlet{pdcolor2}{pdcolor2>wheel,-150}
  \colorlet{pdcolor3}{pdcolor3>wheel,-150}
}{brown}{
  \colorlet{pdcolor1}{pdcolor1>wheel,180}
  \colorlet{pdcolor2}{pdcolor2>wheel,180}
  \colorlet{pdcolor3}{pdcolor3>wheel,180}
}{purple}{
  \colorlet{pdcolor1}{pdcolor1>wheel,45}
  \colorlet{pdcolor2}{pdcolor2>wheel,45}
  \colorlet{pdcolor3}{pdcolor3>wheel,45}
}
\newbox\pd@imagebox
% This defines an icon in the upper left corner:
%\pdifsetup{landscape}{
%  \sbox\pd@imagebox{\includegraphics[trim=50 20 0 20,clip,%
%    width=.17\slidewidth,height=.1\slideheight]{powerdot-zen.ps}%
%  }
%}{
%  \sbox\pd@imagebox{\includegraphics[trim=170 0 80 0,clip,%
%    height=.1\slideheight]{powerdot-zen.ps}%
%  }
%}
\pddefinetemplate{titleslide}{
  titlefont=\large\bfseries\centering,
  clockcolor=pdcolor1,clockpos={.99\slidewidth,\slideheight},
%  lfpos={.03\slidewidth,.04\slideheight},
%  rfpos={.97\slidewidth,.04\slideheight},
% cut position of footer down:
%  lfpos={.03\slidewidth,.02\slideheight},
%  rfpos={.97\slidewidth,.02\slideheight},
  lfpos={.03\slidewidth,.015\slideheight},
  rfpos={.97\slidewidth,.015\slideheight},
  texthook=t,textpos={.5\slidewidth,.7\slideheight},
  textwidth=.9\slidewidth,textfont=\centering,
  textheight=.6\slideheight,
  iacolor=green % no effect
}{%
% Two background strips on the title slide:
%   \psframe*[linecolor=pdcolor3,linewidth=0pt]%
%     (0,.8\slideheight)(\slidewidth,0)%
%   \psline[linecolor=pdcolor1]%
%     (0,.8\slideheight)(\slidewidth,.8\slideheight)%
% revise:
  \psframe*[linecolor=pdcolor3,linewidth=0pt]%
    (0,1.0\slideheight)(\slidewidth,0)%
%  \psline[linecolor=pdcolor1]%
%    (0,1.0\slideheight)(\slidewidth,0.0\slideheight)%
}
\pddefinetemplate{basic}{
%  titlepos={.2\slidewidth,.93\slideheight},
  titlepos={.2\slidewidth,.96\slideheight},
  titlewidth=.75\slidewidth,textheight=.68\slideheight,
%  titlefont=\large\bfseries\raggedright, % ORIGINAL
  titlefont=\large\bfseries\raggedright\centering, % TITLE CENTERING
  clockcolor=pdcolor1,clockpos={.99\slidewidth,\slideheight},
%  lfpos={.03\slidewidth,.04\slideheight},
%  rfpos={.97\slidewidth,.04\slideheight},
% cut position of footer down:
%  lfpos={.03\slidewidth,.02\slideheight},
%  rfpos={.97\slidewidth,.02\slideheight},
  lfpos={.03\slidewidth,.015\slideheight},
  rfpos={.97\slidewidth,.015\slideheight},
% removing these removed the toc = table of contents
     tocslidesep=.6ex,
     toctcolor=pdcolor1,
     tochlcolor=pdcolor1,
     tochltcolor=pdcolor3,
  ifsetup=portrait,
    textpos={.05\slidewidth,.83\slideheight},
    textwidth=.9\slidewidth,
% removing these removed the toc = table of contents
     tocsecsep=.6ex,
     stochook=tr,stocpos={.48\slidewidth,.09\slideheight},
     stocfont=\tiny\raggedleft,
     ntocpos={.52\slidewidth,.09\slideheight},
  ifsetup=landscape,
    textpos={.2\slidewidth,.83\slideheight},
    textwidth=.75\slidewidth
}{%
% Adjust the colored strip at top and bottom:
%   \psframe*[linecolor=pdcolor3,linewidth=0pt]%
%     (0,\slideheight)(\slidewidth,.9\slideheight)%
%   \psframe*[linecolor=pdcolor2,linewidth=0pt]%
%     (0,0)(\slidewidth,.1\slideheight)%
%   \rput[tl](0,\slideheight){\usebox\pd@imagebox}%
%
% strip at top:
%  \psframe*[linecolor=pdcolor3,linewidth=0pt]%
% make strip at top darker:
  \psframe*[linecolor=pdcolor2,linewidth=0pt]%
    (0,\slideheight)(\slidewidth,.95\slideheight)%
%
% strip at bottom:
  \psframe*[linecolor=pdcolor2,linewidth=0pt]%
    (0,0)(\slidewidth,.05\slideheight)%
  \rput[tl](0,\slideheight){\usebox\pd@imagebox}%
}
\pddefinetemplate[basic]{wideslide}{
% text position: move up
%   textpos={.05\slidewidth,.83\slideheight},
%  titlepos={.5\slidewidth,.96\slideheight}, % TITLE CENTERING
%  titlehook=Bc, % TITLE CENTERING
  titlepos={.5\slidewidth,.95\slideheight}, % TITLE CENTERING
  titlehook=b, % TITLE CENTERING
  textpos={.05\slidewidth,.90\slideheight},
  textwidth=.9\slidewidth,
  iacolor=white,% if green, then GREEN!!! TDS
}{}
\pddefinetemplate[basic]{slide}{
  ifsetup=landscape,
% removing these removed the toc = table of contents
    tocpos={.015\slidewidth,.83\slideheight},
    tocwidth=.14\slidewidth,
    tocsecm={\psline[linewidth=.5pt,linecolor=pdcolor1]%
      (-.05,-.05)(.143\slidewidth,-.05)}
}{%
  \pdifsetup{landscape}{%
    \psframe[fillstyle=solid,fillcolor=pdcolor3,linestyle=none,%
      linewidth=0pt](0,.9\slideheight)(.17\slidewidth,.1\slideheight)%
  }{}%
}

\pddefinetemplate[slide]{sectionslide}{
  titlehook=c,titlefont=\Large\bfseries\centering,
  ifsetup=landscape,
    titlepos={.575\slidewidth,.55\slideheight},
  ifsetup=portrait,
    titlewidth=.9\slidewidth,
    titlepos={.5\slidewidth,.55\slideheight}
}{}
\pddefinetemplate[wideslide]{sectionwideslide}{
  titlehook=c,titlefont=\Large\bfseries\centering,
  titlewidth=.9\slidewidth,
  titlepos={.5\slidewidth,.55\slideheight}
}{}
\setkeys[pd]{section}{
  sectemp=sectionslide,widesectemp=sectionwideslide,
}

\pddefinetemplate[slide]{tightslide}{
% tight slide definition (experimental)
  titlepos={.2\slidewidth,.53\slideheight},
}{%
  \pdifsetup{landscape}{%
    \psframe[fillstyle=solid,fillcolor=pdcolor4,linestyle=none,%
      linewidth=0pt](0,.95\slideheight)(.17\slidewidth,.05\slideheight)%
  }{}%
}

%\def\labelitemi{\footnotesize\ding{110}}
%\def\labelitemii{\small\ding{117}}
%\def\labelitemiii{\tiny\ding{110}}
%\def\labelitemiv{\tiny\ding{117}}
% bullets taken from  from powerdot-paintings.st
% \def\labelitemi{\color{pdcolor3}\ensuremath\bullet}
% \def\labelitemii{\color{pdcolor5}\ensuremath\bullet}
% \def\labelitemiii{\color{pdcolor6}\ensuremath\bullet}
% \def\labelitemiv{\color{pdcolor1}\ensuremath\bullet}
\def\labelitemi{\ensuremath\bullet}
\def\labelitemii{\footnotesize\ensuremath\bullet}
% \def\labelitemiii{\small\ensuremath\bullet}
\def\labelitemiii{\small\ensuremath\circle}
\def\labelitemiv{\tiny\ensuremath\bullet}
% \def\baselinestretch{0.6} % Zen has TIGHTER lines - less space wasted.
\def\baselinestretch{0.8} % Zen has TIGHTER lines - less space wasted.
\pdsetup{
  list={labelsep=1em,leftmargin=*,itemsep=0pt,topsep=5pt,parsep=0pt}
}
\def\rmdefault{cmss}
\endinput
%%
%% End of file `powerdot-zen.sty'.
