% -*-LaTeX-*-
\NeedsTeXFormat{LaTeX2e}
\documentclass[pdf,mpa]{prosper}
%% MPA style already includes graphicx, color packets
\usepackage{pstricks,pst-node}

\title{The Prosper package for \LaTeX}
\subtitle{Presentations without PowerPoint}
\author{Georg Drenkhahn}
\email{georg@mpa-garching.mpg.de}
\institution{\includegraphics[height=1.5cm]{mpa_logo}}

\begin{document}
\maketitle

\overlays{4}{
  \begin{slide}{Introduction}    
    \begin{itemstep}
    \item \textcolor{blue}{\emph{Prosper}} is a plain \LaTeX\ packet.
      All common \LaTeX\  macros are available.
    \item Produces Postscript for printing \textcolor{blue}{slides}
      and \emph{P}ortable \emph{D}ocument \emph{F}ormat (PDF) files
      for \textcolor{blue}{presentations}.
    \item Presentations are viewed with the \textcolor{blue}{Acrobat
        reader}.  Common on many computer systems.
    \item System independent (Windows, UNIX, Mac, \ldots)
    \end{itemstep}    
  \end{slide}
}

\overlays{4}{
  \begin{slide}{Features}
    \begin{itemstep}
    \item Simple structure, few new commands
    \item New step-by-step itemisation environment (as seen)
    \item Various transition types between slides: Replace, Split,
      Blinds, Box, Wipe, Dissolve, Glitter
    \item Possibility to create own styles
    \end{itemstep}
  \end{slide}
}

\overlays{5}{
  \begin{slide}{Add, replace, delete}
    
    \onlySlide*{1}{Items can be \textcolor{blue}{added}}
    \onlySlide*{2}{\ldots or \textcolor{green}{replaced}}
    \FromSlide{3} Items can be \textcolor{blue}{added},
    \textcolor{green}{replaced} and \textcolor{red}{deleted}

    \FromSlide{4} This works in normal text, itemisation environments
    and math formulae:

    Induction equation \onlySlide{4}{(ideal MHD)}

    \begin{displaymath}
      \partial_t \vec B 
      = 
      %% white text trick to supress a jump at slide change
      %% not realy necessary
      \onlySlide*{4}{  
        \textcolor{blue}{\mathbf{curl}\left(\vec v\times\vec B\right)}
        \textcolor{white}{+\frac{c^2}{4\pi\sigma}\triangle\vec B}
        }
      \fromSlide*{5}{
        \rnode{ft}{\textcolor{blue}{\mathbf{curl}\left(\vec v\times\vec B\right)}}
        +\rnode{st}{\textcolor{red}{\frac{c^2}{4\pi\sigma}\triangle\vec B}}
        }
      %% the arguments \fromSlide,\onlySlide,\untilSlide makros are
      %% not included in the PS version.  The stuff after \FromSlide
      %% is included, though.  One has to add this extra:
      \onlyInPS{
        \rnode{ft}{\textcolor{blue}{\mathbf{curl}\left(\vec v\times\vec B\right)}}
        +\rnode{st}{\textcolor{red}{\frac{c^2}{4\pi\sigma}\triangle\vec B}}
        }
    \end{displaymath}\\[2em]

    \FromSlide{5}
    \hfill\rnode{id}{`flux freezing'}
    \hfill\rnode{di}{diffusion term}
    \hspace*{\fill}
    
    \nccurve[linecolor=blue,angleA=90,angleB=270]{->}{id}{ft}
    \nccurve[linecolor=red,angleA=90,angleB=270]{->}{di}{st}

  \end{slide}
}

%%%

\begin{slide}[Glitter]{Standard styles}
  \vspace{-.5cm}
  \centerline{%
  \begin{tabular}{cc}
    \includegraphics[width=.28\hsize,angle=270]{/afs/mpa/common/pdsoft/common/share/tex/prosper/doc/doc-examples/ExampleAlienglow.ps}
    &
    \includegraphics[width=.28\hsize,angle=270]{/afs/mpa/common/pdsoft/common/share/tex/prosper/doc/doc-examples/ExampleAutumn.ps}\\
    Alienglow & Autumn\\
    \includegraphics[width=.28\hsize,angle=270]{/afs/mpa/common/pdsoft/common/share/tex/prosper/doc/doc-examples/ExampleAzure.ps}
    &
    \includegraphics[width=.28\hsize,angle=270]{/afs/mpa/common/pdsoft/common/share/tex/prosper/doc/doc-examples/ExampleContemporain.ps}\\
    Azure & Contemporain
  \end{tabular}}
\end{slide}

%%%

\begin{slide}[Wipe]{Standard styles 2}
  \vspace{-.5cm}
  \centerline{%
  \begin{tabular}{cc}
    \includegraphics[width=.28\hsize,angle=270]{/afs/mpa/common/pdsoft/common/share/tex/prosper/doc/doc-examples/ExampleDarkblue.ps}
    &
    \includegraphics[width=.28\hsize,angle=270]{/afs/mpa/common/pdsoft/common/share/tex/prosper/doc/doc-examples/ExampleFrames.ps}\\
    Darkblue & Frames\\
    \includegraphics[width=.28\hsize,angle=270]{/afs/mpa/common/pdsoft/common/share/tex/prosper/doc/doc-examples/ExampleLignesbleues.ps}
    &
    \includegraphics[width=.28\hsize,angle=270]{/afs/mpa/common/pdsoft/common/share/tex/prosper/doc/doc-examples/ExampleNuanceGris.ps}\\
    Lignesbleues & NuanceGris
  \end{tabular}}
\end{slide}

%%%

\begin{slide}[Box]{Standard styles 3}
  \vspace{-.5cm}
  \centerline{%
  \begin{tabular}{cc}
    \includegraphics[width=.28\hsize,angle=270]{/afs/mpa/common/pdsoft/common/share/tex/prosper/doc/doc-examples/ExampleTroisPoints.ps}
    &
    \includegraphics[width=.28\hsize,angle=270]{/afs/mpa/common/pdsoft/common/share/tex/prosper/contrib/gyom.ps}\\
    TroisPoints & gyom\\
    \multicolumn{2}{c}{
    \includegraphics[width=.28\hsize,angle=270]{/afs/mpa/common/pdsoft/common/share/tex/prosper/contrib/rico.ps}
    }\\
    \multicolumn{2}{c}{rico}
  \end{tabular}}
\end{slide}

%%%
\newcommand{\btt}[1]{\texttt{\textcolor{blue}{#1}}}
\newcommand{\gtt}[1]{\texttt{\textcolor{green}{#1}}}
\newcommand{\rtt}[1]{\texttt{\textcolor{red}{#1}}}

\begin{slide}[Dissolve]{Structure}

\verb|\documentclass[pdf,mpa]{|\rtt{prosper}\verb|}|\\
\begin{verbatim}
\title{Some presentation}
...
\maketitle
\end{verbatim}
\verb|\begin{|\btt{slide}\verb|}{1. Slide}|\\
\verb|  normal text/graphics on slide|\\
\verb|\end{|\btt{slide}\verb|}|\\
\verb|\|\gtt{overlays}\verb|{4}{|\\
\verb|  \begin{|\btt{slide}\verb|}{Slide with more parts}|\\
\verb|    ...|\\
\verb|  \end{|\btt{slide}\verb|}|\\
\verb|}|\\
\verb|\begin{document}|

\end{slide}

%%%

\begin{slide}[Dissolve]{Overlays}

\verb|\|\btt{overlay}\verb|{4}{|\\
\verb|  \begin{|\btt{slide}\verb|}{Title}|\\
\verb|    \|\btt{onlySlide*}\verb|{1}{...}|\\
\verb|    \|\btt{fromSlide}\verb|{2}{...}|\\
\verb|    \|\btt{untilSlide}\verb|{3}{...}|\\
\verb|    \|\btt{FromSlide}\verb|{4}|\\
\verb|    ...|\\
\verb|  \end{|\btt{slide}\verb|}|\\
\verb|}|

\end{slide}

%%%

\overlays{4}{
  \begin{slide}{Creation from source}
    \begin{itemstep}
    \item \texttt{latex} (twice for cross-references):\\
      \textcolor{blue}{.tex $\to$ .dvi}
    \item for slides: \texttt{dvips}:\\
      \textcolor{blue}{.dvi $\to$ .ps}
    \item for pdf presentations: \texttt{dvips,ps2pdf} or
      \texttt{dvi2pdf}:\\
      \textcolor{blue}{.dvi $\to$ .pdf}
    \item dvi2pdf is a Perl script in the pdsoft area.  Takes care of
      all pdf issues: vector fonts, paper size, optimisation.
    \end{itemstep}
  \end{slide}
}

\end{document}
