\documentclass[]{seminar}
\usepackage{fancyheadings,fancybox,epsfig,graphics,latexsym,amsfonts,amssymb,amsmath,verbatim}
\newcommand{\bbeta}{{\mbox{\boldmath $\beta$}}}
\newcommand{\bvarphi}{{\mbox{\boldmath $\varphi$}}}
\newcommand{\bpsi}{{\mbox{\boldmath $\psi$}}}
\newcommand{\bxi}{{\mbox{\boldmath $\xi$}}}
\newcommand{\bmu}{{\mbox{\boldmath $\mu$}}}
\newcommand{\bnu}{{\mbox{\boldmath $\nu$}}}
\newcommand{\bfeta}{{\mbox{\boldmath $\eta$}}}
\newcommand{\bfa}{{\mbox{\boldmath $a$}}}
\newcommand{\bfb}{{\mbox{\boldmath $b$}}}
\newcommand{\f}{{\mbox{\boldmath $f$}}}
\newcommand{\x}{{\mbox{\boldmath $x$}}}
\newcommand{\bb}{{\mbox{\boldmath $b$}}}
\newcommand{\bc}{{\mbox{\boldmath $c$}}}
\newcommand{\be}{{\mbox{\boldmath $e$}}}
\newcommand{\y}{{\mbox{\boldmath $y$}}}
\newcommand{\X}{{\mbox{\boldmath $X$}}}
\newcommand{\sX}{{\mbox{\tiny \boldmath $X$}}}
\newcommand{\Y}{{\mbox{\boldmath $Y$}}}
\newcommand{\I}{{\mbox{\boldmath $I$}}}
\newcommand{\bH}{{\mbox{\boldmath $H$}}}
\newcommand{\C}{{\mbox{\boldmath $C$}}}
\newcommand{\W}{{\mbox{\boldmath $W$}}}
\newcommand{\sM}{{\mbox{\tiny \boldmath $M$}}}
\newcommand{\bP}{{\mbox{\boldmath $P$}}}
\newcommand{\V}{{\mbox{\boldmath $V$}}}
\newcommand{\z}{{\mbox{\boldmath $z$}}}
\newcommand{\Z}{{\mbox{\boldmath $Z$}}}
\newcommand{\Q}{{\mbox{\boldmath $Q$}}}
\newcommand{\w}{{\mbox{\boldmath $w$}}}
\newcommand{\br}{{\mbox{\boldmath $r$}}}
\newcommand{\bgamma}{{\mbox{\boldmath $\gamma$}}}
\newcommand{\bga}{{\mbox{\boldmath $\gamma$}}}
\newcommand{\bta}{{\mbox{\boldmath $\theta$}}}
\newcommand{\btheta}{{\mbox{\boldmath $\theta$}}}
\newcommand{\e}{{\mbox{\boldmath $e$}}}
\newcommand{\bla}{{\mbox{\boldmath $\lambda$}}}
\newcommand{\blambda}{{\mbox{\boldmath $\lambda$}}}
\newcommand{\bep}{{\mbox{\boldmath $\epsilon$}}}
\newcommand{\bvartheta}{{\mbox{\boldmath $\vartheta$}}}
\newcommand{\bomega}{{\mbox{\boldmath $\omega$}}}
\newcommand{\bfd}{{\mbox{\boldmath $d$}}}
\newcommand{\bfq}{{\mbox{\boldmath $q$}}}
\newcommand{\bzeta}{{\mbox{\boldmath $\zeta$}}}
\newcommand{\bepsilon}{{\mbox{\boldmath $\epsilon$}}}
\newcommand{\bfg}{{\mbox{\boldmath $g$}}}
\newcommand{\bfw}{{\mbox{\boldmath $w$}}}
\newcommand{\bfu}{{\mbox{\boldmath $u$}}}
\newcommand{\bdelta}{{\mbox{\boldmath $\delta$}}}
\newcommand{\balpha}{{\mbox{\boldmath $\alpha$}}}
\newcommand{\bfn}{{\mbox{\boldmath $n$}}}
\newcommand{\bfz}{{\mbox{\boldmath $z$}}}
\newcommand{\bft}{{\mbox{\boldmath $t$}}}
\newcommand{\var}{\mbox{Var}}

\def\eqx"#1"{{\label{#1}}}
\def\eqn"#1"{{\ref{#1}}}
\newcommand{\lbl}{\label}
\newcommand{\nn}{\nonumber}


%\portraitonly

\slideframe{Oval}

\newcommand{\heading}[1]{%
  \begin{center}
    \large\bf
    \shadowbox{#1}%
  \end{center}
  \vspace{1ex minus 1ex}}
\newcommand{\BF}[1]{{\bf #1:}\hspace{1em}\ignorespaces}

\begin{document}
\pagestyle{fancyplain}
\lhead{}
\rhead{}
\lfoot{}
\cfoot{\rm \thepage}
\rfoot{}
\setlength{\headrulewidth}{0pt}

%\begin{slide*} %[7.5in,5.5in]
\begin{slide} %[7.5in,5.5in]

{\small

\begin{center}
{\large \bf One Hour Tour To LaTex} \\
\vspace*{0.3in}

{\sc Ming-Hui Chen} \\
Department of Statistics, University of Connecticut \\

\vspace*{0.1in}

November 25, 2002
\end{center}


\newslide

\heading{1. Introduction}


$\spadesuit$ {\bf Useful LaTex Books}

\begin{itemize}

\item  {\it LaTeX: A Document Preparation System}, 
by Leslie Lamport and Duane Bibby, (\$39.95 from Amazon.com),
Addison-Wesley Pub Co, ISBN: 0201529831, 2nd Edition, June 30, 1994. 

\item {\it The Latex Companion},
by Michel Goossens, Frank Mittelbach, and Alexander Samarin,
 (\$39.99 from Amazon.com), Addison-Wesley Pub Co; 
 ISBN: 0201541998; 1st edition, December 31, 1993). 

\item  {\it Math into LaTeX},  
by George Gratzer,
(\$34.97 from Amazon.com),
Birkhauser, ISBN: 0817641319, 3rd edition (June 23, 2000).

\end{itemize}

\newslide
 
$\spadesuit$ {\bf Useful Websites}

\begin{itemize}


\item www.winedt.com
\item www.miktex.org
\item sp.uconn.edu/tex.html
\item www.ctan.org


\end{itemize}

\newslide

$\spadesuit$ {\bf General Operation}

$\bullet$ {\bf On Merlot}

\begin{enumerate}
\item  ssh to merlot
\item Prepare a LaTex file using a name such as
  \begin{center}
    filename.tex
  \end{center}
  You can use either vi or emacs or others to type your LaTex file.

  You can also prepare your file on PC and then download to merlot.

\item Compile your LaTex file using command 
   \begin{center}
     latex filename
   \end{center}

\item If there are no errors, LaTex command will automatically 
    produce the following three files:
   \begin{center}
     filename.aux,  filename.log, and filename.dvi.
   \end{center}

\item You can print filename.dvi on the printer using command:
   \begin{center}
    dvips filename.dvi
   \end{center}

\item You can also view your dvi file using MikTex DVI Viewer.

\item You can also convert your dvi file to a high quality pdf file using command:
  \begin{center}
  pdflatex filename.tex.
 \end{center}

\end{enumerate} 

$\bullet$ {\bf On PC}

\begin{enumerate}

\item Download MikTex from  www.miktex.org.

\item Download WinEdt from www.winedt.com.

    You can have the 31-day trial period.
   
  You can buy a WinEdt Student License at US \$30.

\item Edit your filename.tex on WinEdt.  

\item Compile your filename.tex using a WinEdt menu bar.  

\item View your filename.dvi using a WinEdt menu bar.  

\item Convert your filename.dvi to pdf or ps file using a WinEdt menu bar.  

\end{enumerate}

\newslide

$\spadesuit$ {\bf Document Class}

The $\backslash$documentclass
 command has the following format: 

\begin{verbatim}
    \documentclass[12pt]{class}
\end{verbatim}


Standard {\bf class} options  include

\begin{enumerate}
\item article
\item book
\item report 
\item letter 
\item  seminar 
\end{enumerate}

You can choose more than one option. 
\begin{verbatim}
  \documentclass[11pt,twocolumn]{article}
\end{verbatim}

\newslide

$\bullet$ The common standard options in $\backslash$documentclass[..] are: 

\begin{description}
\item[10pt] This is the default size. To make ten-point size, you can simply
     use
     \begin{verbatim}
        \documentclass{article}
      \end{verbatim}

\item[12pt] Makes twelve-point type the normal (default) type size instead of ten-point type. 

\item[twoside] Formats the output for printing on both sides of a page. 
        (This is the default in the book style.)

\item[twocolumn] Produces two-column pages. 

\item[titlepage] For article style only; 
  causes the  $\backslash$maketitle  
  command and the abstract environment each to make a separate page. This is the default setting for report and book styles. 

\item[leqno] Puts formula numbers on the left side in equation and eqnarray environments. 

\item[fleqn] 
left-aligns displayed formulas. 
\end{description}

\newslide

$\spadesuit$ {\bf Standard Article Document Setting}

\begin{verbatim}

\documentclass[12pt]{article}
\usepackage{epsfig,graphics,latexsym,amsfonts,amssymb,
            amsmath,verbatim}
\hoffset=-0.675in
\advance\topmargin by -0.45truein
\oddsidemargin=0.675truein
\evensidemargin=0.675truein
\advance\textheight by 1.25truein
\setlength\textwidth{6.5in}
\vsize=9.0in
\def\doublespace{\baselineskip=20pt minus 1pt}

\end{verbatim}

\newslide

\begin{verbatim}
\begin{document}
\title{Introduction to LaTex}
\author{Your Name \\ Affiliation}
\maketitle

\begin{center}
\noindent{\large \bf Abstract}
\end{center}

\section{Introduction}
\section{Basics}
\subsection{Math}
\subsection{Display}
\section{Summary}
\section*{References}
\section*{Appendix}
\end{document}

\end{verbatim}


\newslide

$\spadesuit$ {\bf Standard letter Setting}

{\scriptsize
\begin{verbatim}
\documentclass[11pt]{letter}
\hoffset=-0.475in
\advance\topmargin by -0.75truein
\oddsidemargin=0.475truein
\evensidemargin=0.475truein
\advance\textheight by 1.25truein
\setlength\textwidth{6.5in}
\vsize=8.9in
\begin{document}
\address{ your name \\
          email address}
\begin{letter}{  Dr. Who \\
                  address line 1 \\
                  address line 2 \\
                  city, state zip code}
\opening{Dear Who,}
Sincerely Yours,
\vspace*{0.3in}

  Your names \\
  Your complete address
\end{letter}
\end{document}
\end{verbatim}
}

\newslide

$\spadesuit$ {\bf Comments}

In the LaTex environment, you can use 

\begin{verbatim}

either  

% this is comments

or

\begin{comment}
 this text will be commented out.
\end{comment}

\end{verbatim}

\newslide

$\spadesuit$ {\bf Verbatim}

Computer codes, or SAS outputs, no matter what special characters they have, 
may be listed with the verbatim environment: 

\noindent
$\backslash$begin\{verbatim\} \\
  ... \\
$\backslash$end\{verbatim\}

For example,
{\scriptsize
\begin{verbatim}
                 Standard             95% Confidence     Chi-
 Parameter     DF Estimate    Error       Limits       Square Pr > ChiSq
 Intercept      1   3.5288   0.9041   1.7567   5.3008   15.23     <.0001
 Z1             1  -0.1477   0.4076  -0.9465   0.6511    0.13     0.7171
 Z2             1  -0.5866   0.3199  -1.2136   0.0405    3.36     0.0668
 Z3             1  -1.5441   0.3633  -2.2561  -0.8321   18.07     <.0001
 Z4             1  -0.0175   0.0128  -0.0425   0.0076    1.87     0.1717
 Scale          1   0.8848   0.1084   0.6960   1.1250
 Weibull Shape  1   1.1301   0.1384   0.8889   1.4368
\end{verbatim}
}


\newslide

$\spadesuit$ {\bf Type Size in LaTex}

The following options (from smallest to largest)  for type size are available:

\begin{verbatim}
   \tiny, \scriptsize, \footnotesize, \small, \normalsize, 
   \large, \Large, \LARGE, \huge, \Huge 
\end{verbatim}

For example, Commands \{$\backslash$tiny Statistics\}
and \{$\backslash$Huge Statistics\} give
\begin{center}
 {\tiny Statistics} \hspace*{0.in} {\Huge Statistics}
\end{center}


\newslide

$\spadesuit$ {\bf Type Style}

 Common Type Styles include

\begin{verbatim}
 \rm \em \it \bf \sc \sl \tt
\end{verbatim}

For example, command $\backslash$sc\{Ming-Hui Chen\} gives
\begin{center}
 \sc{Ming-Hui Chen}
\end{center}

\newslide

$\spadesuit$ {\bf List-Making Environments}

$\bullet$ Itemized Lists 

 Three ways to do itemized lists:

\begin{verbatim}
\begin{itemize}
\item Step 1: edit an input file 
\item Step 2: compile the input file 
\item Step 3: Print the input file 
\end{itemize}
\end{verbatim}

\begin{itemize}
\item Step 1: edit an input file
\item Step 2: compile the input file
\item Step 3: Print the input file  
\end{itemize}

\newslide

\begin{verbatim}
\begin{itemize}
\item[] Step 1: edit an input file
\item[] Step 2: compile the input file
\item[] Step 3: Print the input file  
\end{itemize}
\end{verbatim}

\begin{itemize}
\item[] Step 1: edit an input file
\item[] Step 2: compile the input file
\item[] Step 3: Print the input file
\end{itemize}

\newslide

\begin{verbatim}
\begin{itemize}
\item[Step 1:] edit an input file
\item[Step 2:] compile the input file
\item[Step 3:] Print the input file
\end{itemize}
\end{verbatim}

\begin{itemize}
\item[Step 1:] edit an input file
\item[Step 2:] compile the input file
\item[Step 3:] Print the input file
\end{itemize}


\newslide


$\bullet$ Enumerated Lists 

\begin{verbatim}
\begin{enumerate}
\item Step 1: edit an input file
\item Step 2: compile the input file
\item Step 3: Print the input file
\end{enumerate}
\end{verbatim}

\begin{enumerate}
\item Step 1: edit an input file
\item Step 2: compile the input file
\item Step 3: Print the input file
\end{enumerate}

\newslide

$\bullet$ Description Lists 

\begin{verbatim}
\begin{description}
\item[Step 1:] edit an input file
\item[Step 2:] compile the input file
\item[Step 3:] Print the input file
\end{description}
\end{verbatim}

\begin{description}
\item[Step 1:] edit an input file
\item[Step 2:] compile the input file
\item[Step 3:] Print the input file
\end{description}

\newslide

$\spadesuit$ {\bf Math  Environments}

$\bullet$ Mathematics to be typeset inline with the text must be contained in the environment 

\begin{verbatim}
\begin{math}...\end{math}
\end{verbatim}

or 

\begin{verbatim}
\(...\)
\end{verbatim}

or

\begin{verbatim}
$...$
\end{verbatim}

\newslide

{\bf An Example}: 

Three commands:
\begin{verbatim}
 display \begin{math}  \sin(x^2)=10 \end{math} in line
 display \( \sin(x^2)=10 \) in line
 display $ \sin(x^2)=10 $ in line 
\end{verbatim}
produce

 display \begin{math}  \sin(x^2)=10 \end{math} in line

 display \( \sin(x^2)=10 \) in line

 display $ \sin(x^2)=10 $ in line 

\newslide

$\bullet$ {\bf scripts, symbols, common math functions} 

Subscripts,  superscripts, and math functions  are typeset in a mathematics 
environment.

For example, 
\begin{verbatim}
d^{-1}, d^2, a_i, \sin, \cos, \ln, \log, \exp
\end{verbatim}
produce
$$
d^{-1}, d^2, a_i, \sin, \cos, \ln, \log, \exp
$$

\newslide


LaTeX has an enormously wide variety of symbols to help typeset mathematics. 
For example, 
\begin{verbatim}
\times,\propto,\sum,\Sigma,\sigma,\pi,\rightarrow,\Rightarrow, 
\prod, \coprod, \Longleftarrow, \thicksim, \sim, \subset,
\in, \forall, \cup, \cap, \alpha,\theta, \beta,\int
\end{verbatim}

$$
\times, \propto, \sum,\Sigma, \sigma, \pi,  \rightarrow, \Rightarrow,
$$

$$
\prod, \coprod, \Longleftarrow, \thicksim, \sim, \subset,
$$

$$
\in, \forall, \cup, \cap, \alpha,\theta, \beta,\int
$$


\newslide

$\bullet$ {\bf displaymath and frac}
 
Many mathematical equations and expressions are so complicated 
or so important that they should not be typeset inline with the text, 
but they should be displayed on a line all by themselves. 
This is achieved with the environments: 

\begin{verbatim}
\begin{displaymath}
...
\end{displaymath}
equivalent to the shorter 
\[
...
\]
or 
\begin{equation}
...       \label{eqn1}
\end{equation}
\end{verbatim}

\newslide

For example,
\begin{verbatim}
\begin{displaymath}
 I=\int^\infty_{-\infty} \frac{x^2}{1+\exp(x^2)} dx.
\end{displaymath}
\[
 I=\int^\infty_{-\infty} \frac{x^2}{1+\exp(x^2)} dx.
\]
\begin{equation}
I=\int^\infty_{-\infty} \frac{x^2}{1+\exp(x^2)} dx.
\end{equation}
\end{verbatim}
\begin{displaymath}
 I=\int^\infty_{-\infty} \frac{x^2}{1+\exp(x^2)} dx.
\end{displaymath}
\[
 I=\int^\infty_{-\infty} \frac{x^2}{1+\exp(x^2)} dx.
\]
\begin{equation}
I=\int^\infty_{-\infty} \frac{x^2}{1+\exp(x^2)} dx.
\end{equation}

\newslide

$\bullet$ {\bf Equation arrays}

Often we want to align related equations together, or to align each line of a multi-line derivation. 
The eqnarray mathematics environment does this.

\begin{verbatim}
\begin{eqnarray*}
 f(x) & = & \exp(-x),  x>0 \\
 g(x) & = & x^2,   -1<x<1 \\
 h(x) & = & x^3,  x<0  
\end{eqnarray*}
or
\begin{eqnarray}
 f(x) & = & \exp(-x),  x>0 \nonumber \\
 g(x) & = & x^2,   -1<x<1  \\
 h(x) & = & x^3,  x<0
\end{eqnarray}
\end{verbatim}
\begin{eqnarray*}
 f(x) & = &  \exp(-x),  x>0 \\
 g(x) & = &  x^2,   -1<x<1 \\
 h(x) & = & x^3,  x<0
\end{eqnarray*}
\begin{eqnarray}
 f(x) & = & \exp(-x),  x>0 \nonumber \\
 g(x) & = & x^2,   -1<x<1  \\
 h(x) & = & x^3,  x<0
\end{eqnarray}


\newslide

We can also do
\begin{verbatim}
\begin{align*}
 f(x)  = &  \exp(-x),  x>0 \\
 g(x)  = & x^2,   -1<x<1 \\
 h(x)  = & x^3,  x<0
\end{align*}
or
\begin{align}
 f(x)  =  & \exp(-x),  x>0 \nonumber \\
 g(x)  = & x^2,   -1<x<1  \\
 h(x)  =  & x^3,  x<0
\end{align}
\end{verbatim}

\newslide

\begin{align*}
 f(x)  = & \exp(-x),  x>0 \\
 g(x)  = & x^2,   -1<x<1 \\
 h(x)  = & x^3, x<0
\end{align*}
or
\begin{align}
 f(x)  = & \exp(-x),  x>0 \nonumber \\
 g(x)  = & x^2,   -1<x<1  \\
 h(x)  = & x^3,  x<0
\end{align}

\newslide

$\bullet$ {\bf Matrices and Other Useful Displays}

\begin{verbatim}
 $$
 X \sim N\left( \left( \begin{array}{c}
                       \mu_1  \\
                       \mu_2 
                       \end{array} \right),
                      \begin{pmatrix}
                       \sigma^2_1 & \sigma_1 \sigma_2 \rho \\
                       \sigma_1 \sigma_2 \rho & \sigma^2_2 
                      \end{pmatrix}
             \right)
$$
\end{verbatim}
gives
 $$
 X \sim N\left( \left( \begin{array}{c}
                       \mu_1  \\
                       \mu_2
                       \end{array} \right),
                      \begin{pmatrix}
                       \sigma^2_1 & \sigma_1 \sigma_2 \rho \\
                       \sigma_1 \sigma_2 \rho & \sigma^2_2 
                      \end{pmatrix} 
             \right)
$$

\newslide

\begin{verbatim}
$$
\overline{Y}=\frac{1}{n}\sum^n_{i=1}Y_i
$$
$$
 \sqrt{n} \Bigg( \frac{\overline{Y}-\mu}{\sigma} 
  \Bigg)
 \stackrel{D}{\longrightarrow} 
 N\Big(0, 1 \Big)
$$
\end{verbatim}
display the formulas:
$$
\overline{Y}=\frac{1}{n}\sum^n_{i=1}Y_i
$$
$$
\sqrt{n}\Bigg( \frac{\overline{Y}-\mu}{\sigma} \stackrel{D}{\longrightarrow} 
 \Bigg)
 N\Big(0, 1\Big)
$$

\newslide

\begin{verbatim}
\begin{equation}
f(x) = \begin{cases}
      \lambda \exp(-\lambda x) & \mbox{if $x>0$}, \\
      0 & \mbox{otherwise}.
      \end{cases}   
 \lable{eqnf}
\end{equation}
\end{verbatim}

\begin{equation}
f(x) = \begin{cases}
      \lambda \exp(-\lambda x) & \mbox{if $x>0$}, \\
      0 & \mbox{otherwise}.
      \end{cases}
 \label{eqnf}
\end{equation}

\newslide


$\spadesuit$ {\bf Tables}

{\scriptsize
\begin{verbatim}
\begin{center}
{\bf Table 1: Parameter Estimates} \\
\medskip

\begin{tabular}{|l|crrrrrc|}\hline
    &  &  & Standard & \multicolumn{2}{c}{95\% Confidence} & Chi- & \\
 Parameter & DF & Estimate  & Error  & \multicolumn{2}{c}{Limits}
            & Square & Pr $>$ ChiSq \\
 \hline
 Intercept &    1 & 3.5288 & 0.9041 & 1.7567 & 5.3008 & 15.23 &  $<$.0001 \\
 Z1        &    1 &-0.1477 & 0.4076 &-0.9465 & 0.6511 &  0.13 &   0.7171 \\
 Z2        &    1 &-0.5866 & 0.3199 &-1.2136 & 0.0405 &  3.36 &   0.0668 \\
 Z3        &    1 &-1.5441 & 0.3633 &-2.2561 &-0.8321 & 18.07 &  $<$.0001 \\
 Z4        &    1 &-0.0175 & 0.0128 &-0.0425 & 0.0076 &  1.87 &   0.1717 \\
 Scale     &    1 & 0.8848 & 0.1084 & 0.6960 & 1.1250 &       &         \\
 Weibull Shape &1 & 1.1301 & 0.1384 & 0.8889 & 1.4368 &       &  \\ \hline
\end{tabular}
\end{center}
\end{verbatim}
}


\newslide

{\tiny
\begin{center}
{\bf Table 1: Parameter Estimates} \\
\medskip 

\begin{tabular}{|l|crrrrrc|}\hline
    &  &  & Standard & \multicolumn{2}{c}{95\% Confidence} & Chi- & \\
 Parameter & DF & Estimate  & Error  & \multicolumn{2}{c}{Limits}
            & Square & Pr $>$ ChiSq \\ 
 \hline
 Intercept &    1 & 3.5288 & 0.9041 & 1.7567 & 5.3008 & 15.23 &  $<$.0001 \\
 Z1        &    1 &-0.1477 & 0.4076 &-0.9465 & 0.6511 &  0.13 &   0.7171 \\
 Z2        &    1 &-0.5866 & 0.3199 &-1.2136 & 0.0405 &  3.36 &   0.0668 \\
 Z3        &    1 &-1.5441 & 0.3633 &-2.2561 &-0.8321 & 18.07 &  $<$.0001 \\
 Z4        &    1 &-0.0175 & 0.0128 &-0.0425 & 0.0076 &  1.87 &   0.1717 \\
 Scale     &    1 & 0.8848 & 0.1084 & 0.6960 & 1.1250 &       &         \\
 Weibull Shape &1 & 1.1301 & 0.1384 & 0.8889 & 1.4368 &       &  \\ \hline
\end{tabular}
\end{center}
}

\newslide


$\spadesuit$ {\bf Figures}


$\bullet$ {\bf Format I}

\begin{verbatim}
\begin{figure}[htbp]
  \begin{center}
    \includegraphics[height=2in,width=4in,angle=270]{KM.ps}
    \caption{Kaplan-Meier plot for E1684 data}
    \label{fig:label}
  \end{center}
\end{figure}
\end{verbatim}

This command does not work (properly) in 
\begin{verbatim}
\documentclass[]{seminar}
\end{verbatim}

\newslide

$\bullet$ {\bf Format II}

 The following commands work almost in all environments:

\begin{verbatim}
\begin{figure}[hbpt]
\centerline{\psfig{figure=KM.ps,height=2.0 in,width=4.0 in}}
\centering{Fig. 1: Kaplan-Meier plot for E1684 data}
\end{figure}

or

\begin{figure}[hbpt]
\centerline{\psfig{figure=KM.ps,height=2.0 in,width=4.0 in}}
 \caption{Kaplan-Meier plot for E1684 data}
 \label{fig:KM}
\end{figure}

\end{verbatim}

\newslide

\begin{figure}[hbpt]
\centerline{\psfig{figure=KM.ps,height=2.0 in,width=4.0 in}}
\centering{Fig. 1: Kaplan-Meier plot for E1684 data}
\end{figure}

\newslide

\begin{figure}[hbpt]
\centerline{\psfig{figure=KM.ps,height=2.0 in,width=4.0 in}}
\caption{Kaplan-Meier plot for E1684 data}
\label{fig:KM}
\end{figure}



}
\end{slide}
%\end{slide*}
\end{document}
