main LaTeX page miscellaneous LaTeX references

# Examples of slides class

In the old days of LaTeX 2.09 there was a program called SLiTeX'', but now you make transparencies simply by using the slides class with regular LaTeX. (You may also want to use the color package, if you have access to a color printer.)
\documentclass{slides}
\usepackage{color}
 NOTE: This is for making transparencies -- letter-size, portrait-orientation, large font size -- to be printed on transparency film and displayed using an overhead projector. For a landscape-orientation digital/PDF document, to be displayed directly on a computer monitor or computer projector, use the prosper class instead.

The slides class use a bigger base font size, suitable for transparency presentations, and provides an easy way to make overlays -- a transparency which can be laid on top of a previous transparency to fill in certain gaps. Read about it in the book by Kopka and Daly. Package graphicx is used to insert the image from PostScript file trefoil.eps.

\documentclass{slides}				% for transparencies
\usepackage[dvips]{color}
\usepackage{graphicx}

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

\title{Making \LaTeX{} Slides''}
\date{15 July 2005}

\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 \verb9\includegraphics{}9 command
and the {\tt tabular} environment,
{\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}
\includegraphics[width=85mm]{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}
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
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
\\ \hline \hline
2 & 1/2 & 1/3 & 1.28453 &  0.35728389 \\
& 1/3 & 2/3 & 1.98720 &  0.32497238 \\ \hline
& 1/4 & 1/4 & 2.97378 &  0.39902682 \\
3 & 1/3 & 1/2 & 3.09927 &  0.41826033 \\
& 1/2 & 3/4 & 3.14972 &  0.41991556 \\ \hline
& 1/5 & 1/5 & 4.29072 &  0.50297387 \\
4 & 1/4 & 2/5 & 4.87208 &  0.51993702 \\
& 1/3 & 3/5 & 4.96931 &  0.52083333 \\
& 1/2 & 4/5 & 4.99926 &  0.52000000 \\ \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}
\\ \hline \hline
abstract \spacer
& $\bullet$ & $\bullet$ &   &   &
\\ \hline
description \spacer
& $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$
\\ \hline
figure \spacer
& $\bullet$ & $\bullet$ & $\bullet$ &   &
\\ \hline
figure* \spacer
& $\bullet$ & $\bullet$ & $\bullet$ &   &
\\ \hline
picture \spacer
& $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$
\\ \hline
quotation \spacer
& $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$
\\ \hline
quote \spacer
& $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$
\\ \hline
table \spacer
& $\bullet$ & $\bullet$ & $\bullet$ &   &
\\ \hline
table* \spacer
& $\bullet$ & $\bullet$ &  $\bullet$  &   &
\\ \hline
tabular \spacer
& $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$
\\ \hline
thebibliography \spacer
& $\bullet$ & $\bullet$ & $\bullet$ &   &
\\ \hline
theindex \spacer
& $\bullet$ & $\bullet$ & $\bullet$ &   &
\\ \hline
titlepage \spacer
& $\bullet$ & $\bullet$ &  $\bullet$  &   & $\bullet$
\\ \hline
verse \spacer
& $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$
\\ \hline
\end{tabular}
\end{center}
\end{slide}

\end{document}