

\documentclass{slides}
\usepackage[dvips]{color}
\usepackage{epsfig}

\newcommand{\spacer}{\rule[-3mm]{0mm}{8mm}}

\title{Making \LaTeX{} ``Slides''}
\author{Albert.Ornstein@Colorado.EDU}
\date{15 July 1998}

\begin{document}

%%%%%%%%%%%%%%%%%%%%%%%%===Slide 0
\maketitle

%%%%%%%%%%%%%%%%%%%%%%%%===Slide 1 using COLOR
%               sample usage:  \textcolor{blue}{Here you put text.}
\begin{slide}
\begin{itemize}

\item You can put figures and tables into slides,
        using the {\tt picture} and {\tt epsfig} and
        {\tt tabular} environments,
        {\em but}

\item you can't use the {\bf figure} and
        {\bf table} environments;
        \LaTeX{} won't number and caption
        figures and tables.

\item Predefined colors are          % COLORS!!!!
        \textcolor{blue}{blue}, \textcolor{red}{red}, \textcolor{black}{black},
        \colorbox{blue}{\textcolor{white}{white}},
        \textcolor{cyan}{cyan}, \textcolor{magenta}{magenta},
        \textcolor{yellow}{yellow}, \textcolor{green}{green}.

        Define colors?  Colored formulae?  You bet!
          \verb2\definecolor{darkgreen}{rgb}{0,0.4,0}2
                \definecolor{darkgreen}{rgb}{0,0.4,0}
        \\ \textcolor{darkgreen}{$A = \pi r^2$}:

        $$
        \textcolor{darkgreen}{\int_0^r 2\pi x \, dx = \pi r^2.}
        $$

\end{itemize}
\end{slide}

%%%%%%%%%%%%%%%%%%%%%%%%===Slide 2
\begin{slide}

For example, here we import an image from
a PostScript file:
\begin{center}
        \epsfxsize=85mm
        \epsfbox{trefoil.eps}
\end{center}

and here's a \LaTeX{} picture;
\small
\begin{center}
        \setlength{\unitlength}{15mm}
        \newsavebox{\testcon}\savebox{\testcon}(0,0){
                \thicklines
                \put(0,0.5) {\line(-2,-1){1.0}}
                \put(0,0.5) {\line(2,-1){1.0}}
                \put(0,-0.5){\line(-2,1){1.0}}
                \put(0,-0.5){\line(2,1){1.0}}
                \put(0,0.5) {\makebox(0,0)[b]
                        {\put(0,0){\line(0,1){0.5}}}}
                \put(1,0)   {\line(1,0){1.0}}
                \put(-1,0)  {\line(-1,0){1.0}}
                \put(-1.1,0.1) {\makebox(0,0)[br]{no}}
                \put(1.1,0.1)  {\makebox(0,0)[bl]{yes}}}
  \begin{picture}(10,4)
        \thicklines
        \put(5,4){\vector(0,-1){1.1}}
        \put(5,2){\usebox{\testcon}\makebox(0,0){$i=0$}}
        \put(3,1){\usebox{\testcon}\makebox(0,0){$j \le i$}}
        \put(7,1){\usebox{\testcon}\makebox(0,0){$k \neq j$}}
        \put(0.6,1){\circle{1.0}\makebox(0,0){3}}
        \put(9.4,1){\circle{1.0}\makebox(0,0){5}}
        \put(5,1){\vector(0,-1){0.5}\circle*{0.1}}
        \put(3.5,0){\framebox(3,0.5){$y = f(i,j,k)$}}
  \end{picture}
\end{center}
\normalsize

\end{slide}


%%%%%%%%%%%%%%%%%%%%%%%%===Slide 3
\begin{slide}
\begin{center}
        For more information about \LaTeX{} see \\
        \verb2http://www.colorado.edu/ITS/docs/latex2
        or the printed manuals for \LaTeX{}.

        \invisible  Overlays are
        \visible    important
        \invisible  for presentation transparencies!!
        \visible
\end{center}
\end{slide}


%%%%%%%%%%%%%%%%%%%%%%%%===Overlay (3.1)
\begin{overlay}
\begin{center}
        \invisible
        For more information about \LaTeX{} see \\
        \verb2http://www.colorado.edu/ITS/docs/latex2
        or the printed manuals for \LaTeX{}.

        \visible    Overlays are
        \invisible  important
        \visible    for presentation transparencies!!
\end{center}
\end{overlay}


%%%%%%%%%%%%%%%%%%%%%%%%===Slide 4
\begin{slide}

Here's a table, produced in the
{\tt tabular} environment.
In slides you may {\bf not}
put this into a {\tt table} environment,
i.e., surrounded by \verb9\begin{table}9
and \verb9\end{table}9.

\begin{center}
   \begin{tabular}{|c||c|c|c|c|} \hline
   n & $L_1$ & $L_2$ & $L_3$  & W
                \cr \hline \hline
   2 & 1/2 & 1/3 & 1.28453 &  0.35728389 \cr
     & 1/3 & 2/3 & 1.98720 &  0.32497238 \cr \hline
     & 1/4 & 1/4 & 2.97378 &  0.39902682 \cr
   3 & 1/3 & 1/2 & 3.09927 &  0.41826033 \cr
     & 1/2 & 3/4 & 3.14972 &  0.41991556 \cr \hline
     & 1/5 & 1/5 & 4.29072 &  0.50297387 \cr
   4 & 1/4 & 2/5 & 4.87208 &  0.51993702 \cr
     & 1/3 & 3/5 & 4.96931 &  0.52083333 \cr
     & 1/2 & 4/5 & 4.99926 &  0.52000000 \cr \hline
   \end{tabular}
\end{center}

\end{slide}


%%%%%%%%%%%%%%%%%%%%%%%%===Slide 5
\begin{slide}

The {\bf slides} class lacks several of the environments
defined for other classes.  Here's how the five basic
document classes compare:

\tiny   % make it fit on the page!
 \begin{center}
   \begin{tabular}{|l||c|c|c|c|c|} \hline
   environment \spacer
        & {\bf article} & {\bf report} & {\bf book} &
        {\bf letter} & {\bf slides}
        \cr \hline \hline
   abstract \spacer
        & $\bullet$ & $\bullet$ &   &   &
        \cr \hline
   description \spacer
        & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$
        \cr \hline
   figure \spacer
        & $\bullet$ & $\bullet$ & $\bullet$ &   &
        \cr \hline
   figure* \spacer
        & $\bullet$ & $\bullet$ & $\bullet$ &   &
        \cr \hline
   picture \spacer
        & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$
        \cr \hline
   quotation \spacer
        & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$
        \cr \hline
   quote \spacer
        & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$
        \cr \hline
   table \spacer
        & $\bullet$ & $\bullet$ & $\bullet$ &   &
        \cr \hline
   table* \spacer
        & $\bullet$ & $\bullet$ &  $\bullet$  &   &
        \cr \hline
   tabular \spacer
        & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$
        \cr \hline
   thebibliography \spacer
        & $\bullet$ & $\bullet$ & $\bullet$ &   &
        \cr \hline
   theindex \spacer
        & $\bullet$ & $\bullet$ & $\bullet$ &   &
        \cr \hline
   titlepage \spacer
        & $\bullet$ & $\bullet$ &  $\bullet$  &   & $\bullet$
        \cr \hline
   verse \spacer
        & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$
        \cr \hline
   \end{tabular}
 \end{center}
\end{slide}


\end{document}



