% LaTeX source of thesis
% Lihua Ou 
% Updated 2002-9-19

%======================================================================
%   P R E A M B L E
%======================================================================

\documentclass[12pt,twoside]{report} 

%----------------------------------------------------------------------
% Reprocess only those files which have changed recently:
% \includeonly{intro,creating,commands} 
%----------------------------------------------------------------------
% Create a listing in the log of all files needed to process this document
\listfiles
%----------------------------------------------------------------------
% Standard LaTeX2e packages
\usepackage[dvips]{graphicx} 
	% ...  encapsulated postscript figures
\usepackage{makeidx} % ...  index
\usepackage{amsmath} % ...  math symbols
\usepackage[dvips=true,bookmarks=true]{hyperref} 
	% ... only needed for PDF generation

\usepackage{times}
\usepackage{epsfig}
\usepackage{psfig}
\usepackage[T1]{fontenc}

%----------------------------------------------------------------------
\makeindex % activate index-making
%----------------------------------------------------------------------
% The following command sets "1.2" as the line spacing throughout the
% thesis for readability (optional).
\renewcommand{\baselinestretch}{1.2}
%----------------------------------------------------------------------
% Reset page margins properly for doublesided pages
\setlength{\marginparwidth}{0pt}
\setlength{\marginparsep}{0pt}
\setlength{\oddsidemargin}{0.125in}
\setlength{\evensidemargin}{0.125in}
\setlength{\textwidth}{6.375in}
\raggedbottom
%----------------------------------------------------------------------

\font\cmss=cmss12
\font\cmssbx=cmssbx12
\font\cmssi=cmssi12

% My own command and environment definitions:
\newcommand{\program}[1]{\textsf{#1}} % program names in sansserif-Helvetica

\newcommand{\code}[1]{\texttt{#1}} % pic code
\newcommand{\picvar}[1]{\texttt{\textit{#1}}}
\newcommand{\jvar}[1]{\texttt{#1}}
\newcommand{\token}[1]{\texttt{\textbf{#1}}} % pic token
\newcommand{\cmmd}[1]{\cmss{#1}\normalfont} % command name

\newcommand{\cmath}[1]{\texttt{#1}}
\newcommand{\mvar}[1]{\texttt{\textit{#1}}} % variable in the method

\newcommand{\widvar}[1]{\textsf{\textit{#1}}} % widget var-Helvetica Oblique
\newcommand{\wid}[1]{\textsf{\textbf{#1}}} % widget-Helvetica Bold

\newcommand{\usecase}[1]{\cmss{#1}\normalfont} % usecase name
\newcommand{\file}[1]{\textsf{#1}} % file name

\newcommand{\module}[1]{\textsf{#1}}
\newcommand{\class}[1]{\textsf{#1}}
\newcommand{\method}[1]{\textsf{#1}}

\newcommand{\constant}[1]{\textsf{\textbf{#1}}}
\newcommand{\widquote}{\wid\textquotedbl}

\newcommand{\insertfig}[4] { 
\begin{figure}
 \centerline{\psfig{figure=#1.ps,width=#2,angle=#3}}
 \caption{\label{#1} #4} 
\end{figure}
} 

%\newcommand{\exten}[1]{\texttt{#1}} % file extensions in bold text (use caps) 
%\newcommand{\enviro}[1]{\texttt{#1}} % environment name in tt font

\newcommand{\eg}{\textit{e.g.},} % some Latin abbreviations in italic
\newcommand{\ie}{\textit{i.e.},}
\newcommand{\etc}{\textit{etc}.\@}
\newcommand{\etal}{\textit{et al}}

\newcommand{\mat}[1]{\ensuremath{\mathcal{#1}}} 
	% matrix names in uppercase caligraphic
\newcommand{\vect}[1]{\ensuremath{\mathit{#1}}} 
% vector names in math italic
\newcommand{\rv}[1]{\ensuremath{\mathbf{#1}}} 
% math bold for random variables
\newcommand{\degg}[1]{\mbox{\raisebox{3pt}{$\circ$}\hspace{-.5pt}#1}}
% command to produce a degree sign. Example: \degg[C] gives degrees Celsius

\newenvironment{definition}[1]{\begin{quote}\emph{#1}:}{\end{quote}}
  % Provides indented formal definition and emphasizes the word.
  % e.g. \begin{definition}{Reliability} ... \end{definition}

\newenvironment{where}[1]% Equation symbol lists
 {\begin{list}{}%
  {\renewcommand{\makelabel}[1]{\hfill\textnormal{##1 =}}%
   \settowidth{\labelwidth}{\textnormal{#1 =}}%
   \setlength{\leftmargin}{\labelwidth}%
   \addtolength{\leftmargin}{\labelsep}%
   \setlength{\itemsep}{-\parsep}}}%
 {\end{list}}
% Example:
% \begin{where}{where $E$}
%  \item[where $E$] least squares error term;
%  \item[$w$] weighting factor associated with each measured variable.
% \end{where}

%======================================================================
%   L O G I C A L    D O C U M E N T
%======================================================================
\begin{document}
\include{frontpgs} 

\pagestyle{myheadings}
\normalsize

% Chapters 
\include{chap1} %"Introduction"
\include{chap2} %"Picture drawing"
\include{chap3} %"Case study" 
\include{chap4} %"Conclusions"

% Appendices
\appendix
\include{source} %"pic source code of figures"
\include{diagrams} %"UML Sequence diagrams"
\include{manual} %"WD-pic user's manual"


% Glossary
%\include{glossary}

% Bibliography 
% If done using the BibTeX program, use
\bibliographystyle{plain} % sorted alphabetically, labeled with numbers
\bibliography{reference} % names file keylatex.bib as my bibliography file 


% Index 
% Put a \makeindex command in the Preamble if you use MakeIndex program
% and put 
%\printindex % here
% OR, do it "by hand" inside \begin{theindex} ... \end{theindex}
%----------------------------------------------------------------------
\end{document}
%======================================================================

