%%
%% This is file `powerdot-example2.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% powerdot.dtx  (with options: `pdexample2')
%% 
%% ---------------------------------------------------------------
%% 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
%% 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 "maintained".
%%
%% This Current Maintainer of this work is Hendri Adriaens.
%%
%% This work consists of all files listed in manifest.txt.
%%
\documentclass[
  size=10pt,
  %style=ikeda,
  style=aggie,  % aggie is great
  %style=fyma,  
  paper=a4paper,
%% Try me!
%%  orient=portrait,
%%  mode=handout,
%%  display=slidesnotes,
%%  blackslide,
  nopagebreaks,
  fleqn
]{powerdot}

\title{powerdot example 2}
\author{Hendri Adriaens\and Christopher Ellison}
\usepackage{color,ifthen}


\newcommand{\sq}[2]{%
    \definecolor{thiscol}{gray}{.#2}%
        \ifthenelse{#2<50}%
            {\color{white}}%
            {\color{black}}%
        \colorbox{thiscol}{\makebox[2em]{#1}}}


\pdsetup{
  lf=Example 2,
  rf=for powerdot,
  trans=Wipe,
  theslide=slide~\arabic{slide},
  list={itemsep=6pt}
}

\begin{document}

\maketitle

\begin{slide}{Outline}
	\tableofcontents
\end{slide}

\begin{slide}[toc=,bm=]{outline}
	\tableofcontents
\end{slide}

\section{This section has a slide}

\begin{slide}{Slide 2}
  Here is the binomium formula.\pause
  \begin{equation}\label{binomium}
    (a+b)^n=\sum_{k=0}^n{n\choose k}a^{n-k}b^k
  \end{equation}\pause
  We will prove formula (\ref{binomium}) on the blackboard.\\
  Click the title of this slide to switch to the black slide.
\end{slide}

\begin{note}{Note to slide 2}
  Here we could type the proof that
  we want to copy to the blackboard.
\end{note}

\begin{slide}{Slide 3}
  \begin{itemize}[type=1]
    \item This happens\dots\pause
    \item when you change\dots\pause
    \item the type of itemize.
  \end{itemize}
\end{slide}

\section[template=wideslide,tocsection=hidden]{A hidden wide section}

\begin{slide}{Slide 4}
  \begin{itemize}
    \item We only treat this material\dots\pause
    \begin{itemize}
      \item if we have some time left.\pause
      \item But don't hesitate\dots\pause
    \end{itemize}
    \item to read it yourself.
  \end{itemize}
\end{slide}

\begin{wideslide}{Slide 5}
  This wide slide   can contain more material
  as it is wider and does not have a table
   of contents. 
\end{wideslide}

\begin{wideslide}{one}
\begin{center}
\includegraphics[width=5in]{selected.eps}
\end{center}
\end{wideslide}


\begin{slide}{5}
{\tiny {\bf round 0:}\setlength{\tabcolsep}{0pt}
\begin{tabular}{r@{~}|@{~}rrrr@{~}|@{~}r}
\multicolumn{1}{c}{}&\multicolumn{4}{c}{Cost}\\\cline{2-5} Benefit
& 1 &2    & 3    & 4   &  Totals\\\hline
 12         &       &       &      &    &       \\
 6           &       &  \sq{1}{99}   & \sq{2}{98}     &  \sq{1}{99}  & \sq{4}{96}      \\
 0           &   \sq{13}{87}  & \sq{17}{83}     &  \sq{15}{85}  & \sq{4}{96}  & \sq{49}{51}      \\
 -6          &   \sq{10}{90}  & \sq{12}{88}     &  \sq{4}{96}    & \sq{1}{99}   & \sq{27}{73}       \\
 -12         &   \sq{4}{96}    &  \sq{6}{94}    & \sq{2}{98}     &    &    \sq{12}{88}    \\
 -18          &  \sq{3}{97}    &   \sq{2}{98}    & \sq{1}{99}  & \sq{1}{99}  &
 \sq{7}{93}\\\hline
Totals        &   \sq{30}{70}    & \sq{38}{62}      &  \sq{24}{76}
& \sq{6}{94} & \sq{98}{2}
\\\hline
\end{tabular}}


\end{slide}

\end{document}
\endinput
%%
%% End of file `powerdot-example2.tex'.
