\chapter{Preparing a \LaTeXe\ document}

\section{Overview of the files}

This document consists of the following files:

\begin{itemize}
\item {\tt join.tex} --- to glue the whole thing together
\item {\tt title.tex} and {\tt proforma.tex} --- the initial pages
\item {\tt chapter1.tex} --- this chapter
\item {\tt chapter2.tex} --- chapter~2 which presents the source for
this document
\item {\tt refs.bib} --- the bibliography
\end{itemize}

\section{Building the document}

This document was produced using \LaTeXe which is based upon
\LaTeX\cite{Lamport86}.  To build the document you first need to
generate {\tt join.aux} which, amongst other things, contains the
references used.  To do this type:

{\tt latex join}

\noindent
Then the bibliography can be generated from {\tt refs.bib} using:

{\tt bibtex join}

\noindent
Finally, to ensure all the page numbering is correct run {\tt latex}
on {\tt join.tex} until the {\tt .aux} files do not change.  This
usually takes 2 more runs.


\pagebreak		% force LaTeX to do things my way :-)

\section{Adding graphics}

\begin{figure}[tbh]

\begin{center}
\scalebox{0.5}{\includegraphics{cuarms.eps}}
\scalebox{1}{\includegraphics{cuarms.eps}}
\scalebox{1.5}{\includegraphics{cuarms.eps}}
\scalebox{1}{\includegraphics{cuarms.eps}}
\scalebox{0.5}{\includegraphics{cuarms.eps}}
\end{center}

\caption{\label{egfig}Example figure}
\end{figure}

See figure~\ref{egfig} for an example of a floating figure.



\section{Counting words}

An approximate word count may be attained using:

{\tt detex join.tex | wc}


\section{Printing and binding}

To convert the file to postscript use {\tt dvips}.  You may submit
postscript to the book shop on a 1.44~Mbyte 3.5'' DOS format floppy.
They can also accept postscript compressed with {\tt zip} but not {\tt
gnuzip} nor {\tt compress}.  However, it is faster for them if the
file is not compressed.

Things to note:

\begin{itemize}
\item Ensure that there are the correct number of blank pages inserted
so that each double sided page has a front and a back.  So, for
example, the title page must be followed by an absolutely blank page
(not even a page number).

\item Submitted postscript introduces more potential problems.
Therefore you must either allow two iterations of the binding process
(once in a digital form, falling back to a second, paper, submission if
necessary) or submit both paper and electronic versions.
\end{itemize}


\section{Further information}

See the Computer Lab's world wide web pages at URL:

{\tt http://www.cl.cam.ac.uk/TeXdoc/TeXdocs.html}
