\documentclass{seminar}
\usepackage{times}
\usepackage{example}
\newcommand{\Cmd}[1]{{\ttfamily\upshape\char'134#1}}
\pagestyle{aisections}
\def\Framedefault{ai}
\blackandwhite
\newcommand{\fn}[1]{\hbox\texttt{#1}}
\begin{document}
\begin{Slide}{Today's Programme}
  \begin{enumerate}
  \item Basics; inputting text; sections; lists
    \begin{itemize}
    \item Exercise: first document
    \end{itemize}
  \item Carrying on; mathematics
    \begin{itemize}
    \item Exercise: mathematics and special symbols
    \end{itemize}
  \item More tools: titles, figures, tables
    \begin{itemize}
    \item Exercise: tables and titles
    \end{itemize}
  \item Ending up: pointers to other facilities
    \begin{itemize}
    \item Exercise: own work
    \end{itemize}
  \end{enumerate}
\end{Slide}

\begin{slide}
\scriptsize
\begin{verbatim}
% WARNING!  DO NOT TYPE ANY OF THE FOLLOWING 10 CHARACTERS 
% EXCEPT AS DIRECTED:        &   $   #   %   _   {   }   ^   ~   \
\documentclass[11pt]{article}% YOUR INPUT FILE MUST CONTAIN 
\begin{document}             % THESE TWO LINES PLUS 
                             % THE \end COMMAND AT THE END

\section{Simple Text}    % THIS COMMAND MAKES A SECTION TITLE.

Words are separated by one or    more      spaces.  Paragraphs are
    separated by one or more blank lines.  The output is not affected
by adding extra spaces or extra blank lines to the input file.

Double quotes are typed like this: ``quoted text''.
Single quotes are typed like this: `single-quoted text'.

Long dashes are typed as three dash characters---like this.

Italic text is typed like this: \emph{this is italic text}.
Bold   text is typed like this: \textbf{this is  bold  text}.
\end{verbatim}
\end{slide}

\begin{slide}
\scriptsize
\begin{verbatim}
\subsection{A Warning or Two}        % THIS MAKES A SUBSECTION TITLE.

If you get too much space after a mid-sentence period---abbreviations
like etc.\ are the common culprits---then type a backslash followed by
a space after the period, as in this sentence.

Remember, don't type the 10 special characters (such as dollar sign and
backslash) except as directed!  The following seven are printed by
typing a backslash in front of them:  \$  \&  \#  \%  \_  \{  and  \}.
The manual tells how to make other symbols.

\end{document}                    % THE INPUT FILE ENDS LIKE THIS
\end{verbatim}
\end{slide}

\begin{Slide}{Document classes}
\begin{description}

\item[\texttt{article}] intended for short documents and articles for
  publication.
\item[\texttt{report}] intended for longer technical documents.

\item[\texttt{book}] intended as a basis for book publication.

\item[\texttt{letter}] intended for producing personal letters.
  addresses, date, signature, etc.
\end{description}
\end{Slide}

\begin{slide}
  These standard classes can be modified by a number of
  \emph{options}.  They appear in square brackets after the
  \verb|\documentclass| command.
\begin{description}
\item[\texttt{11pt}] prints the document using eleven-point type for the
running text rather that the ten-point type normally used.
\item[\texttt{12pt}] prints the document using twelve-point type for the
running text rather than the ten-point type normally used.
\item[\texttt{twoside}]  causes documents in the article or report styles to be
formatted for printing on both sides of the paper.  This is the default for the
book style.
\item[\texttt{twocolumn}] produces two column on each page.
\item[\texttt{a4paper}] sets the page size for A4 paper
\end{description}
\end{slide}

\begin{Slide}{Quotes}
This is normal text, followed by a quotation:
\begin{quote}
The buck stops here.

I am not a crook.
\end{quote}
\begin{verbatim}
This is normal text, followed by a quotation:
\begin{quote}
The buck stops here.

I am not a crook.
\end{quote}
\end{verbatim}

\end{Slide}

\begin{Slide}{Lists}
\begin{enumerate}
\item Cats
\item Dogs
\begin{enumerate}
\item Alsatians
\item Poodles
\end{enumerate}
\end{enumerate}
\begin{itemize}
\item Check your sources
\item But published anyway
\item And probably be damned
\end{itemize}
\end{Slide}

\begin{slide}
\begin{verbatim}
\begin{enumerate}
\item Cats
\item Dogs
\begin{enumerate}
\item Alsatians
\item Poodles
\end{enumerate}
\end{enumerate}
\begin{itemize}
\item Check your sources
\item But published anyway
\item And probably be damned
\end{itemize}
\end{verbatim}
\end{slide}

\begin{Slide}{Fonts}
\footnotesize
\begin{tabular}{@{}lll@{}}
\textit{Command} & \emph{or} & \textit{Effect} \\[4pt]
\Cmd{textrm}\verb|{...}| & \verb|{|\Cmd{rmfamily}\verb|...}| &
           Text is set  in roman family  \\
\Cmd{textsf}\verb|{...}| & \verb|{|\Cmd{sffamily}\verb|...}| &
           Text is set  in \textsf{sans serif} family  \\
\Cmd{texttt}\verb|{...}| & \verb|{|\Cmd{ttfamily}\verb|...}| &
           Text is set  in \texttt{typewriter} family
                                                           \\[3pt]
\Cmd{textmd}\verb|{...}| & \verb|{|\Cmd{mdseries}\verb|...}| &
            Text is set in medium series    \\
\Cmd{textbf}\verb|{...}| & \verb|{|\Cmd{bfseries}\verb|...}| &
            Text is set in \textbf{bold} series    \\[3pt]
\Cmd{textup}\verb|{...}| & \verb|{|\Cmd{upshape}\verb|...}| &
            Text is set in upright shape  \\
\Cmd{textit}\verb|{...}| & \verb|{|\Cmd{itshape}\verb|...}| &
            Text is set in \textit{italic} shape  \\
\Cmd{textsl}\verb|{...}| & \verb|{|\Cmd{slshape}\verb|...}| &
            Text is set in \textsl{slanted} shape  \\
\Cmd{textsc}\verb|{...}| & \verb|{|\Cmd{scshape}\verb|...}| &
            Text is set in \textsc{small caps} shape
                                                           \\[3pt]
\Cmd{emph}\verb|{...}| & \verb|{|\Cmd{em}\verb|...}| &
             Text is set  \emph{emphasized}  \\[3pt]
\Cmd{textnormal}\verb|{..}|  & \verb|{|\Cmd{normalfont}\verb|..}| &
             Text is set in the document font
\end{tabular}
\end{Slide}
\begin{Slide}{Accents}
\begin{tabbing}

\t{oo} \= \verb|\t{oo}|~~~ \=
\t{oo} \= \verb|\t{oo}|~~~ \=
\t{oo} \= \verb|\t{oo}|~~~ \=
\t{oo} \= \verb|\t{oo}|~~~ \=
\t{oo} \= \verb|\t{oo}|~~~ \=
\t{oo} \=                       \kill

\a`{o} \> \verb|\`{o}|  \> \~{o}  \> \verb|\~{o}|  \> \v{o}  \> \verb|\v{o}| \>
\c{o}  \> \verb|\c{o}|  \> \a'{o} \> \verb|\'{o}|  \\
\a={o} \> \verb|\={o}|  \> \H{o}  \> \verb|\H{o}|  \> \d{o}  \> \verb|\d{o}| \>
\^{o}  \> \verb|\^{o}|  \> \.{o}  \> \verb|\.{o}|  \\
\t{oo} \> \verb|\t{oo}| \> \b{o}  \> \verb|\b{o}|  \\  \"{o} \> \verb|\"{o}| \>
\u{o}  \> \verb|\u{o}|  \\
\end{tabbing}
\end{Slide}
\begin{Slide}{Symbols}
\begin{tabbing}

\LaTeX~\= \verb|\copyright|~~~~ \= \LaTeX~\= \verb|\copyright|~~~~ \=
\LaTeX~\=  \kill

\dag       \> \verb|\dag|       \> \S     \> \verb|\S|     \>
\copyright \> \verb|\copyright| \\
\ddag      \> \verb|\ddag|      \> \P     \> \verb|\P|     \>
\pounds    \> \verb|\pounds|    \\
\oe        \> \verb|\oe|        \> \OE    \> \verb|\OE|    \>
\ae        \> \verb|\AE|        \\
\AE        \> \verb|\AE|        \> \aa    \> \verb|\aa|    \>
\AA        \> \verb|\AA|        \\
\o         \> \verb|\o|         \> \O     \> \verb|\O|     \>
\l         \> \verb|\l|         \\
\L         \> \verb|\E|         \> \ss    \> \verb|\ss|    \>
?`         \> \verb|?`|         \\
!`         \> \verb|!`|         \> \ldots \> \verb|\ldots| \>
\LaTeX     \> \verb|\LaTeX|     \\
\end{tabbing}
\end{Slide}
\begin{slide}
\begin{tabular}{ll}
$a+b=c+d=xy=w/z$ & \verb|a+b=c+d=xy=w/z| \\
$\vec{x}\cdot\vec{y}=0 \mbox{ if and only if } \vec{x}\perp\vec{y}$ & 
\verb|\vec{x}\cdot\vec{y}=0 | \\
 &\verb|\mbox{ if and only if } | \\
 & \verb|\vec{x}\perp\vec{y}| \\
$\frac{\partial}{\partial y}f(x y)=0 $ &
\verb|\frac{\partial}{\partial y}f(x y)=0 | \\
$y^4=2x+z_3 $ & \verb|y^4=2x+z_3 | \\
$z=3\sqrt{\sqrt y^2+3y^5}+5$ & \verb|z=3\sqrt{\sqrt y^2+3y^5}+5| \\
\end{tabular}
\end{slide}

\begin{Slide}{Tabbing}
\begin{tabbing}
Income \=Expenditure \=    \kill
Income \>Expenditure \>Result \\
20s 0d \>19s 11d \>Happiness   \\
20s 0d \>20s 1d  \>Misery    \\
\end{tabbing}

\begin{tabular}{lrr}
\itshape  Name & \itshape  Age &\itshape  Height \\
Sebastian & 45 & 195cm\\
Mathew    & 1 & 68cm\\
\end{tabular}
\end{Slide}

\begin{slide}
\begin{verbatim}
\begin{tabbing}
Income \=Expenditure \=    \kill
Income \>Expenditure \>Result \\
20s 0d \>19s 11d \>Happiness   \\
20s 0d \>20s 1d  \>Misery    \\
\end{tabbing}

\begin{tabular}{lrr}
\itshape  Name & \itshape  Age &\itshape  Height \\
Sebastian & 45 & 195cm\\
Mathew    & 1 & 68cm\\
\end{tabular}
\end{verbatim}
\end{slide}

\begin{Slide}{Tabular (2)}
\begin{tabular}{|l|p{1in}|r|}
\hline
\itshape  Group &\itshape  Type &Sherds\\
\hline
Groups 1--9 &Grey wares&218\\
Groups 40--44 &Black (mostly 
`black burnished')  wares&116\\
Groups 61--67 &Buff-red-orange 
wares & 46\\
Groups 81--85 &Colour-coated fine 
wares & 67\\
Groups 91--2, 93--4&Mortaria and 
miscellaneous & 35\\
Group 96 &Samian & 56\\
\hline
 &&538\\
 \hline
\end{tabular}
\end{Slide}
\begin{slide}
\begin{verbatim}
\begin{tabular}{|l|p{1in}|r|}
\hline
\itshape  Group &\itshape  Type &Sherds\\ \hline
Groups 1--9 &Grey wares&218\\
Groups 40--44 &Black (mostly `black burnished')  
wares&116\\
Groups 61--67 &Buff-red-orange wares & 46\\
Groups 81--85 &Colour-coated fine wares & 67\\
Groups 91--2, 93--4&Mortaria and miscellaneous & 35\\
Group 96 &Samian & 56\\
\hline 
&&538\\ \hline
\end{tabular}
\end{verbatim}
\end{slide}

\begin{Slide}{Figures}
\begin{verbatim}
\begin{figure}
\vspace{3in}
\caption{This is for a photograph}
\end{figure}
\end{verbatim}
Figures and tables are automatically numbered, like sections;
just as \verb|\tableofcontents| lists your sections, subsections etc
with their page numbers, \verb|\listoffigures| and
\verb|\listoftables| will list the figures and tables with their captions.
\end{Slide}

\begin{Slide}{Titles}
\begin{verbatim}
\title{Essential \LaTeX}
\author{Jon Warbrick, with additions by David Carlisle, Michel Goosens
and Sebastian Rahtz}
\date{July 1992}
\maketitle
\tableofcontents
\end{verbatim}
\end{Slide}

\begin{Slide}{Letter}
\footnotesize\begin{verbatim}
\documentclass{letter}
\begin{document}
\address{1234 Avenue of the Armadillos \\
         Gnu York, G.Y. 56789}
\signature{R. (Ma) Dillo \\ Director of Cuisine}
\begin{letter}{G. Natheniel Picking \\
               Acme Exterminators \\ Illinois}
\opening{Dear Nat,}
I'm afraid that the armadillo problem is still with us.
I did everything ...  ... and I hope that you can get 
rid of the nasty beasts this time.
\closing{Best Regards,}
\cc{Jimmy Carter\\Richard M. Nixon}
\end{letter}
\end{document}
\end{verbatim}
\end{Slide}

\end{document}

