% This is necessary if your default paper size of dvips is letter \special{papersize=210mm,297mm} \documentclass[cray,slideColor,pdf]{prosper} %---------------------------------------------------------------------- NOTES - % o Preloaded packages by prosper.clo % = seminar, pstricks, hyperref % o Preloaded packages by PPRcraycm.sty % = pifont, amsmath, amssymb, pst-grad, pst-blur % o Last modified 10/23/2003 %---------------------------------------------------------------------- END - \usepackage{pst-plot,pst-node,pst-slpe} \hypersetup{% pdftitle={A Guide to Prosper}, pdfsubject={pdf presentation}, pdfauthor={Ki-Joo Kim}, pdfkeywords={prosper, pdf, presentation, latex, tex}, pdfpageduration=500, % Max value }% \newcommand{\colhack}{\hspace{1ex}\hspace{-1ex}} % A temp remedy of color problem %---------------------------------------------------------------------- COVER - \title{A Guide to Prosper}% \author{Ki-Joo Kim \\ \href{mailto:kijoo2000@yahoo.com}{{\magenta kijoo2000@yahoo.com}}}% \institution{Department \\ Organization, Location}% %\Logo{\includegraphics[clip=true,scale=0.4]{cmu.eps}}% \Logo{\tiny Cincinnati, OH}% %\slideCaption{Text that will overwrite the default title caption}% \begin{document} \maketitle% %---------------------------------------------------------------------- SLIDE - \begin{slide}{Why Prosper?} \begin{itemize} \item \LaTeX{} class for fancy PDF presentation. \item \colhack {\olive PS} for print and {\olive PDF} for screen presentation. \item Full support of {\pink PSTricks}. \item \colhack {\pink Transitions} and {\pink overlays}. $\Rightarrow$ \emph{\scriptsize No need of {\olive PDF enhancement tools} such as PPower4 or TeXPower}. \item Easy to use. Simple structure with a few macros! \item Easy to expand. Create your own style files! \end{itemize} \end{slide} %---------------------------------------------------------------------- SLIDE - \overlays{3}{% \begin{slide}{Basic Structure} \begin{minipage}[c]{0.05\textwidth} \end{minipage} \hfill \begin{minipage}[c]{0.55\textwidth} {\tiny% {\olive \path{\documentclass[cray,slideColor,pdf]{prosper}}} \FromSlide{2}% {\lublue% \path{\title{}}\\ \path{\author{}}\\ \path{\institution{}}\\ \path{\Logo{}}\\ {\olive \path{\begin{document}}}\\ \path{\maketitle}} \FromSlide{3}% {\red \path{\overlays{n}}\texttt{\{\%}}\\ {\pink \path{\begin{slide}}}{\blue \path{[trans]}}{\pink \path{{Title}}}\\ \emph{... contents ...}\\ {\pink \path{\end{slide}}}\\ {\red \texttt{\}\%}}\\ % {\olive \path{\end{document}}} }% end of \tiny \end{minipage} \hfill \begin{minipage}[c]{0.39\textwidth} {\footnotesize% \begin{itemize} \item \colhack {\olive `PPRcray' style}. \FromSlide{2}% \item \colhack {\lublue Make slide cover}. \FromSlide{3}% \item \colhack {\pink Make slides}. \begin{itemize} \item \colhack {\red Overlays} (option). \item \colhack {\blue Transitions} (option). \end{itemize} \end{itemize}} \end{minipage} \end{slide} }% %---------------------------------------------------------------------- SLIDE - \begin{slide}{`PPRcray.sty'} \begin{itemize} \item Text font: {\pink Computer Modern Sans Serif} \item Math font: Computer Modern Math ($f(x)$) \item Colors \begin{itemize} \item Highlighting: {\pink Pink}, {\olive Olive}. \item Cray colors: {\crayorange Cray orange}, {\crayblue Cray blue}, {\craypurple Cray purple}. \end{itemize} \end{itemize} \end{slide} %---------------------------------------------------------------------- SLIDE - \begin{slide}{How to Run} \begin{itemize} \item \texttt{latex foo} (2 or 3 times) \item \texttt{dvips {\pink -Ppdf -G0} foo} \item \texttt{ps2pdf foo.ps} \begin{itemize}\setlength{\itemsep}{-\parsep} \item Use \texttt{\scriptsize \olive -dPDFSETTINGS=/prepress} option to prevent EPS downsampling. \item Pass \texttt{\olive distiller} option to Prosper when you use `Adobe Distiller'. \end{itemize} \item \texttt{pdf2htmlpres.py} for PDF to HTML conversion. \begin{itemize}\setlength{\itemsep}{-\parsep} \item Source: {\scriptsize \magenta \url{http://freshmeat.net/articles/view/667/}} \item Example: {\scriptsize \texttt{python pdf2htmlpres.py -g png -f foo.pdf}} \end{itemize} \end{itemize} \end{slide} %---------------------------------------------------------------------- SLIDE - \begin{slide}{Hyper Links with \texttt{hyperref}} \begin{itemize} \item \colhack {\pink \verb|\href{url}{text}|} for url link {\olive behind} text. \begin{itemize}\setlength{\itemsep}{-\parsep} \item \verb|\href{http://}{text}| for www {\scriptsize (e.g., \href{http://www.ctan.org}{{\magenta CTAN}})}. \item \verb|\href{mailto:}{text}| for email {\scriptsize (e.g., \href{mailto:kim.ki-joo@epa.gov}{{\magenta Ki-Joo}})}. \item \verb|\href{run:program}{text}| for running an external program {\scriptsize (e.g., Click \href{run:clock.avi}{{\cyan here}} to run `clock.avi' file)}. \end{itemize} \item \colhack {\pink \verb|\url{url}|} for url link {\scriptsize (e.g., {{\magenta \url{http://www.ctan.org}}})} \item \colhack {\pink \verb|\hyperlink{target}{text}|} creates an \emph{internal link}. \item \colhack {\pink \verb|\hypertarget{target}{text}|} creates an \emph{internal target}. \emph{text} can be empty. \end{itemize} \end{slide} %---------------------------------------------------------------------- SLIDE - \begin{slide}{Basic Colors} \begin{itemize} \item Default {\pink PSTricks} colors. \begin{itemize}\setlength{\itemsep}{-\parsep} \item \colhack {\red Red} from \verb|{\red Red}|. Additional colors are {\green green}, {\blue blue}, {\cyan cyan}, {\magenta magenta}, and {\yellow yellow}. \item \colhack {\darkgray Dark gray}, {\gray gray}, and {\lightgray light gray}. \end{itemize} \item New color definitions (n=0 to 1). \begin{itemize}\setlength{\itemsep}{-\parsep} \item {\olive \verb|\newgray{name}{n1}|} for gray color. \item {\olive \verb|\newrgbcolor{name}{n1 n2 n3}|} for RGB color. \item {\olive \verb|\newcmykcolor{name}{n1 n2 n3 n4}|} for CMYK color. \end{itemize} \item To use \texttt{color} \hypertarget{color2}{package} definitions, see \hyperlink{color1}{{\green here}}. \end{itemize} \end{slide} %---------------------------------------------------------------------- SLIDE - \begin{slide}{EPS Inclusion} \begin{itemize} \item \colhack{\pink \verb|\includegraphics[width=1\textwidth]{}|} inside \texttt{minipage} or \texttt{tabular} environment, or \verb|\rput| for easy control. \item Example: {\pink \verb|\rput[ref](x,y){\includegraphics[]{}}|}. \rput[lt](0,0){\includegraphics[scale=0.15,clip=true]{tiger}} \end{itemize} \end{slide} %---------------------------------------------------------------------- SLIDE - \begin{slide}[Dissolve]{Transitions} \begin{itemize} \item Prosper offers {\olive seven} transitions between slides: \begin{itemize}\setlength{\itemsep}{-\parsep} \item Split, Blinds, Box, Wipe, Glitter, Dissolve, and \item Replace or R (default). \end{itemize} \item For default transition, {\pink \path{\DefaultTransition{trans}}}. \item For slide-specific transition, {\pink \path{\begin{slide}[trans]{title}}}. \item Missing features. \begin{itemize}\setlength{\itemsep}{-\parsep} \item {\scriptsize Does not support detail option parameters, e.g., \texttt{\{Wipe /Di 315 /D 3\}}}. \item {\scriptsize Does not support individual transitions inside a slide due to its box-like slide environment}. \end{itemize} \end{itemize} \end{slide} %---------------------------------------------------------------------- SLIDE - \overlays{4}{% \begin{slide}[Box]{Overlays -- Simple} \begin{minipage}[t]{0.63\textwidth} \begin{itemize} \item Simple overlays can be done with \begin{itemize} \item \colhack {\pink \path{\overlays{n}}\texttt{\{\%}} just above the \emph{slide} environment and \texttt{\pink \}\%} after the environment. \item Use \texttt{\pink itemstep} environment instead of \texttt{itemize} environment. \end{itemize} \end{itemize} \end{minipage} \hfill% \begin{minipage}[t]{0.35\textwidth} \begin{itemstep} \item Overlay 1 \item Overlay 2 \item Overlay 3 \end{itemstep} \end{minipage} \vspace{2ex}% \FromSlide{4}% \emph{Note:} Inside overlays \path{\verb} is not working. Use {\pink \path{\path{}}} instead! \end{slide} } %---------------------------------------------------------------------- SLIDE - \overlays{14}{% \begin{slide}{Overlays -- Regular} \begin{itemize} \item Five overlays here(1st overlay). \begin{itemize} \untilSlide{4}{\item \colhack {\blue \path{\untilSlide{4}{stuff}}}: Stuff from 1st to 4th.} \fromSlide{2}{\item \colhack {\blue \path{\fromSlide{2}{stuff}}}: Stuff from 2nd to last.} \onlySlide{3}{\item \colhack {\blue \path{\onlySlide{3}{stuff}}}: Stuff only on 3rd overlay.} \fromSlide{5}{\item Item on 5th overlay.} \end{itemize} \FromSlide{6}% \item \colhack {\pink Backward writing} is easy and simple: \fromSlide{14}{{\red D}}\fromSlide{13}{{\green A}}\fromSlide{12}{I}% \fromSlide{11}{{\magenta S}}\fromSlide{10}{{\cyan Y}}\fromSlide{9}{{\yellow W}}\fromSlide{8}{{\olive E}}% \fromSlide{7}{{\pink B}} \end{itemize} \end{slide} }% %---------------------------------------------------------------------- SLIDE - \overlays{4}{% \begin{slide}{Overlays -- PSTricks Ex} \begin{minipage}[c]{0.48\textwidth} \hspace{0.32cm} PSTricks works well! \begin{itemize} \FromSlide{2}% \item Draw axis. \fromSlide{3}{\item Plot two functions. \begin{itemize} \item {\scriptsize $y=(x-1)^2$.} \item {\scriptsize $y=\frac{x+1}{2}$}. \end{itemize}} \fromSlide{4}{\item Fill inside the curves using \path|\pscustom|.} \end{itemize} \end{minipage} \hfill% \begin{minipage}[c]{0.48\textwidth} \psset{xunit=0.8cm,yunit=0.8cm} \begin{pspicture}(-1.5,-1.5)(4.5,4) %\psgrid[gridcolor=gray]% % Axis \FromSlide{2}% \psset{linewidth=0.5pt} \psline{->}(-1.5,0)(3.5,0) \rput[r](3.8,0){\tiny $\mathbf{x}$} \psline{->}(0,-1.5)(0,3.5) \rput[b](0,3.7){\tiny $\mathbf{y}$} \multido{\n=-1+1}{5}{% \rput(\n,-0.3){\tiny \n} \rput(-0.3,\n){\tiny \n}} \FromSlide{3}% % Function plots \psset{linewidth=0.5pt} \psplot[linecolor=blue]{-0.7}{2.7}{x 1 sub 2 exp} \psplot[linecolor=red]{-1.3}{3}{x 2 div 0.5 add} \FromSlide{4}% \pscustom[linestyle=none,fillstyle=solid,fillcolor=craypurple]{% \psplot{0.219224}{2.280776}{x 1 sub 2 exp} \psplot{0.219224}{2.280776}{x 2 div 0.5 add} } % Function plots again \psset{linewidth=0.5pt} \psplot[linecolor=blue]{-0.7}{2.7}{x 1 sub 2 exp} \psplot[linecolor=red]{-1.3}{3}{x 2 div 0.5 add} % Axis title \rput(3,3.3){\tiny $y=(x-1)^2$} \rput(3.8,2){\tiny $y=\frac{x+1}{2}$} \end{pspicture} \end{minipage} \end{slide} } %---------------------------------------------------------------------- SLIDE - \begin{slide}{Overlays -- Advanced} \begin{itemize} \item {\scriptsize \path{\FromSlide{n}}}, {\scriptsize \path{\OnlySlide{n}}}, {\scriptsize \path{\UntilSlide{n}}} for putting {\olive stuffs} from slide n, only on slide n, or until slide n. \item \colhack {\pink Stared overlays} \begin{itemize}\setlength{\itemsep}{-\parsep} \item {\scriptsize \path{\fromSlide*{n}{stuff}}}, {\scriptsize \path{\onlySlide*{n}{stuff}}}, {\scriptsize \path{\untilSlide*{n}{stuff}}} for \emph{\olive stuff replacement}. \item Very useful for fancy overlays. \end{itemize} \end{itemize} \end{slide} %---------------------------------------------------------------------- SLIDE - \overlays{5}{% \begin{slide}{Overlays -- Replacement} \begin{itemize} \item Replacement example: \psset{fillstyle=solid,linestyle=none}% \textsf{This is ``\onlySlide*{1}{\psframebox[fillcolor=white]{Hello}}% \onlySlide*{2}{\psframebox[fillcolor=yellow]{Hello}}% \fromSlide*{3}{\psframebox[fillcolor=green]{Hello}}% '' output \onlySlide*{1}{(1st overlay)}% \onlySlide*{2}{(2nd overlay)}% \fromSlide*{3}{(3rd overlay)}% .} \FromSlide{4}% \item Another replacement! \textsf{Type your name \onlySlide*{4}{\underline{{\white Ki-Joo}}}% \fromSlide*{5}{{\magenta Ki-Joo}}% ~here.} \end{itemize} \end{slide} } %---------------------------------------------------------------------- SLIDE - \overlays{7}{% \begin{slide}{Overlays -- Highlighting} \begin{itemize} \item Bullet highlighting: \FromSlide{2}% \begin{itemize} \onlySlide*{2}{\item \colhack {\blue Item 1}}\fromSlide*{3}{\item \colhack {\gray Item 1}}% \onlySlide*{2}{\item \colhack {\gray Item 2}}\onlySlide*{3}{\item \colhack {\blue Item 2}}\fromSlide*{4}{\item \colhack {\gray Item 2}}% \untilSlide*{3}{\item \colhack {\gray Item 3}}\fromSlide*{4}{\item \colhack {\blue Item 3}}% \end{itemize} \FromSlide{5}% \item Text highlighting: \onlySlide*{5}{\lightgray A thorough discussion}\onlySlide*{6}{\blue A thorough discussion}% \fromSlide*{7}{\lightgray A thorough discussion} {\lightgray of the major parallelized MOEA paradigms is included in this paper.}% \end{itemize} \end{slide} } %---------------------------------------------------------------------- SLIDE - \overlays{13}{% \begin{slide}{Overlays -- Tabular} \begin{itemize} \item Filling the table \begin{tabular}{|c|c|c|}\hline \fromSlide{2}{Table} & \fromSlide{2}{filling} & \fromSlide{2}{is fun} \\ \hline \fromSlide{3}{with} & \fromSlide{6}{powerful} & \fromSlide{7}{overlays.} \\ \hline \fromSlide{4}{This} & \fromSlide{8}{is also} & \fromSlide{5}{possible!} \\ \hline \end{tabular} \FromSlide{9}% \item Step-by-step cell growth \onlySlide*{10}{% \begin{tabular}{|c|c|c|} \hline Cells & in & a row. \\ \hline \end{tabular}}% \onlySlide*{11}{% \begin{tabular}{|c|c|c|} \hline Cells & in & a row. \\ \hline {\pink Cells} & in \\ \cline{1-2} \end{tabular}}% \onlySlide*{12}{% \begin{tabular}{|c|c|c|} \hline Cells & in & a row. \\ \hline {\pink Cells} & in \\ \cline{1-2} {\olive Cells} \\ \cline{1-1} \end{tabular}}% \onlySlide*{13}{% \begin{tabular}{|c|c|c|} \hline Cells & in & a row. \\ \hline {\pink Cells} & in & \\ \hline {\olive Cells} & & {\bblue Done!}\\ \hline \end{tabular}}% \end{itemize} \end{slide} }% %---------------------------------------------------------------------- SLIDE - \overlays{3}{% \begin{slide}{Overlays -- Nodes} \begin{itemize} \item Fitness sharing of MSGA. {\scriptsize% \begin{equation*} \mathcal{F}_i = \alpha(1) \times \delta (1,k) + \alpha(2) \times \delta (2,k) + \cdots = % \sum_{k=1} \, \alpha(k) \times % \untilSlide*{2}{{\pscirclebox[linecolor=red,linestyle=none,linewidth=0.6pt]{\delta (i,k)}}}% \fromSlide*{3}{\rnode{NA}{\pscirclebox[linecolor=red,linewidth=0.6pt]{\delta (i,k)}}}% \end{equation*}} \FromSlide{2}% where \begin{itemize} \item $\mathcal{F}_i$: fitness function of string $i$. \item $\alpha (k)$: constant. \fromSlide{3}{% \item \rnode{NB}{$\delta (i,k)$}: $k$-th minimum distance from string $i$. \nccurve[linecolor=red,angleA=90,angleB=270,linewidth=0.6pt]{->}{NB}{NA}} \end{itemize} \end{itemize} \end{slide} } %---------------------------------------------------------------------- SLIDE - \begin{slide}{Auto Advancing} \begin{itemize} \item Automatic advancing to next overlays using {\pink \path|\hypersetup{pdfpageduration=n}|} where $n$ is duration time in seconds. \item This requires Adobe Reader setup. \begin{itemize}\setlength{\itemsep}{-\parsep} \item Go to \texttt{Edit} $\rightarrow$ \texttt{Preferences} $\rightarrow$ \texttt{Full Screen}. \item Select \texttt{\pink Advance Every}, and set it to {\olive 60} in Windows or {\olive 1000} in Linux. \end{itemize} \item Do not forget to reset the duration time (={\pink 500})! \item Ready? Next slides will automatically advance in every 1 second. \end{itemize} \end{slide} %---------------------------------------------------------------------- SLIDE - \hypersetup{pdfpageduration=1}% \overlays{12}{% \begin{slide}{Auto Advancing -- Animation} \begin{minipage}[c]{0.52\textwidth} \begin{itemize} \item Any overlays can be animated. \item In this example overlay macros are inside the \texttt{\olive multido} macro. \end{itemize} \end{minipage} \hfill% \begin{minipage}[c]{0.4\textwidth} \begin{pspicture}(-2,-2)(2,2) \newgray{mygray}{0} \SpecialCoor \degrees[1.1] \multido{\i=2+1,\n=0.0+0.1}{11}{% \fromSlide{\i}{% Slide counter \newgray{mygray}{\n} \psset{fillstyle=solid,fillcolor=mygray} \rput{\n}{\pswedge{1.7}{-0.05}{0.05}} \uput{1.8}[\n](0,0){\tiny \n}% }% } \end{pspicture} \end{minipage} \end{slide} }% \hypersetup{pdfpageduration=500}% %---------------------------------------------------------------------- SLIDE - \begin{slide}{Background Change} \begin{itemize} \item A {\pink PPRxxx.sty} file will tell you how to do. \begin{itemize}\setlength{\itemsep}{-\parsep} \item Define your background style or load a background image before a new slide environment. \item Put your background name using {\scriptsize \verb|\NewSlideStyle{t}{x,y}{bg_name}|}. \end{itemize} \item Example: {\tiny% \begin{verbatim} \newcommand{\SlopeGradient}[1]{% \psframe[fillstyle=radslope,slopebegin=blue,slopeend=white,% slopeangle=0](-2,-1.4)(12.5,9) \PutLogo % Mandatory {#1}} \NewSlideStyle{t}{5.3,2.7}{SlopeGradient} % New bg_name goes here. \end{verbatim}} \end{itemize} \end{slide} %---------------------------------------------------------------------- SLIDE - \newcommand{\SlopeGradient}[1]{% \psframe[fillstyle=radslope,slopebegin=blue,slopeend=white,slopeangle=0](-2,-1.4)(12.5,9) \PutLogo % Mandatory {#1}} \NewSlideStyle{t}{5.3,2.7}{SlopeGradient}% \begin{slide}[Blinds]{New Background w/ Blinds Transition} \begin{itemize} \item[$\bullet$] \colhack {\pink Slope gradient} background is shown in this slide. \item[$\bullet$] You can also include ... \begin{itemize} \item[$\bullet$] graphics for your background, or \item[$\bullet$] load other Prosper style file. \end{itemize} \end{itemize} \end{slide} %---------------------------------------------------------------------- SLIDE - \NewSlideStyle{t}{5.3,2.7}{CRAYStyle} % Back to original background \begin{slide}{Navigation Bars} \begin{itemize} \item \colhack {\pink Navigation bars} are useful to show where you are. $\Rightarrow$ Prosper does not support this. \item You can add navigation bars. \begin{itemize}\setlength{\itemsep}{-\parsep} \item See \href{http://www.tug.org/applications/Seminar}{{\magenta sem-dem5.pdf}} by Denis Girou (Semina Package maintainer). \item See \href{http://stuwww.uvt.nl/~hendri/index1.html?/~hendri/Downloads/haprosper.html&mainframeha}{{\magenta HA-prosper}} that supports navigational panels, wide slide, and double slide options. \end{itemize} \end{itemize} \end{slide} %---------------------------------------------------------------------- SLIDE - \begin{slide}{Color Behavior} \begin{itemize} \item Due to \hypertarget{color1}{conflicts} between \texttt{pstcol} and \texttt{color} packages, put the following code to \texttt{\pink color.cfg} in \path{/tex/latex/00miktex}. {\scriptsize [Click \hyperlink{color2}{{\green here}} to go back].} {\scriptsize% \begin{verbatim} % workaround for a strange bug in color.sty/seminar/prosper \def\color@gray#1#2{% \c@lor@arg{#2}% \edef#1{gray #2}% } \end{verbatim}}% \item \texttt{\pink colorlinks=true} option in \texttt{hyperref} package makes the \emph{cover title} in \emph{\olive black}. \end{itemize} \end{slide} %---------------------------------------------------------------------- SLIDE - \begin{slide}{Useful Links} \begin{itemize} \item \href{http://prosper.sourceforge.net}{{\magenta Prosper}} home page. \item \href{http://www.tug.org/applications/Seminar}{{\magenta Seminar Package}} by Denis Girou. \item \href{http://beamer.sourceforge.net}{{\magenta Beamer class}}: Another great PDF presentation tool. \item \href{http://www.miwie.org/presentations/presentations.html}{{\magenta Screen Presentation Tools}} discusses lots of presentation tools based on PDF, HTML, and others. \end{itemize} \end{slide} \end{document}