%
% Skeletal thesis structure to be used when writing your thesis.
%
% Steps required to generate the thesis with proper cross references [for 
% figures, tables, and citations]:
%
% latex fname
% bibtex fname
% latex fname
% latex fname
%

\documentclass[12pt]{report}
\usepackage{pstricks}
% \usepackage{fancyhdr}
\usepackage{setspace}

\setlength{\topmargin}{-.15in}
\setlength{\textwidth}{6in}
\setlength{\textheight}{9.25in}
\setlength{\oddsidemargin}{0.5in}
\setlength{\evensidemargin}{0.5in}
\setlength{\parindent}{0in}
\setlength{\parskip}{6pt plus 1pt}

% 'Fancy' headings and footings

% \pagestyle{fancy}
% \lfoot{}
% \cfoot{}
% \rfoot{}

% Pstricks units

\psset{xunit=1in}
\psset{yunit=1in}
\psset{runit=1in}

\sloppy  

\begin{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Title Page and other pages required by Dalhousie
% Unless otherwise indicated, everything in emphasis (\em) is to be replaced.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\thispagestyle{empty}

~\\
\vspace{1in}

\begin{center}
{\Large \bf THIS IS THE APPROVED TITLE\\
OF THE CANDIDATE'S THESIS OR PROJECT}
~\\
~\\
~\\
by\\
~\\
~\\
~\\
{\em Student's Full Name}\\
~\\
~\\
~\\
Submitted\\
in partial fulfilment of the requirements\\
for the degree of\\
~\\
{\em DEGREE WRITTEN OUT IN FULL}\\
Major Subject: Name of Home Department or Programme\\
(e.g. Civil Engineering, Biomedical Engineering, Naval Architecture)\\
at\\
~\\
DALHOUSIE UNIVERSITY\\
~\\
\vspace{2.5in}

Halifax, Nova Scotia \hfill Month, 20xx\\
\copyright ~ Copyright by {\em student's name}, 20xx\\
\end{center}

\newpage

\pagenumbering{roman}
\setcounter{page}{1}

\begin{center}
\bf Dalhousie University\\
Faculty of Engineering\\
Department/Programme\\
(omit for Ph.D.)\\
\end{center}

The undersigned hereby certify that they have examined, and recommend to the 
Faculty of Graduate Studies for acceptance, the thesis (or project) entitled 
``{\em This is the Name of Your Thesis or Project}'' 
by 
{\em Your Full Name}
in partial fulfillment of the requirements for the degree of 
{\em Degree Name}.

\begin{flushleft}
~\\
~\\
Dated:\hfill \underline{\hspace{2.5in}}\\
~\\
~\\
Supervisor: \hfill \underline{\hspace{2.5in}}\\
\hfill {\em Supervisor's Typed Name}\\
~\\
~\\
Co-supervisor: (if applicable)\hfill \underline{\hspace{2.5in}}\\
\hfill {\em Co-supervisor's Typed Name}\\
~\\
~\\
External Examiner (Ph.D. only)\hfill \underline{\hspace{2.5in}}\\
\hfill {\em External Examiner's Typed Name}\\
\hfill {\em University/Institution}\\
~\\
Examiners:\\
~\\
\hfill \underline{\hspace{2.5in}}\\
\hfill {\em Examiner's Typed Name}\\
~\\
~\\
\hfill \underline{\hspace{2.5in}}\\
\hfill {\em Examiner's Typed Name}\\
\end{flushleft}

\newpage

\begin{center}
\bf Dalhousie University\\
Faculty of Engineering
\end{center}

\begin{tabbing}
MAJOR SUBJECT: \= \kill
DATE: \> {\em date}\\
AUTHOR: \> {\em Your Full Name}\\
TITLE: \> {\em This is the Title of Your Thesis or Project}\\
MAJOR SUBJECT: \> {\em Home Department/Programme}\\
DEGREE: \> {\em The Full Name of Your Degree}\\
CONVOCATION: \> {\em Month, 20XX}\\
\end{tabbing}

Permission is herewith granted to Dalhousie University to circulate and to 
have copied for noncommercial purposes, at its discretion, the above thesis 
upon the request of individuals or institutions.

~\\

\begin{flushright}
\underline{\em Signature of Author}
\end{flushright}

~\\

The author reserves other publication rights, and neither the thesis nor extensive 
extracts from it may be printed or otherwise reproduced without the author's 
written permission.
The author attests that permission has been obtained for the use of any copyrighted 
material appearing in this thesis (or project) (other than brief excerpts requiring 
only proper acknowledgement in scholarly writing), and that all such use is clearly 
acknowledged.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Table of contents
% List of figures [included in ToC]
% List of tables [included in ToC]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\tableofcontents

\listoffigures
\addcontentsline{toc}{chapter}{List of Figures}

\listoftables
\addcontentsline{toc}{chapter}{List of Tables}

\newpage

\chapter*{List of Symbols and Abbreviations}
\addcontentsline{toc}{chapter}{List of Symbols and Abbreviations}

Your list of symbols and abbreviations (if any), go here.

\newpage

\chapter*{Acknowledgements}
\addcontentsline{toc}{chapter}{Acknowledgements}

Your acknowledgements go here.

\newpage

\chapter*{Abstract}
\addcontentsline{toc}{chapter}{Abstract}

Your abstract goes here.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Start of contents
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newpage

\pagenumbering{arabic}
\markboth{}{}
\pagestyle{myheadings}
\setcounter{page}{1}

\chapter{Introduction}

This is the first line of the thesis \cite{kn:cn1}.
It appears after Latex has written the title of the chapter and the chapter 
number (see above).

\section{What this chapter should contain}

This should explain the motivation of this research.
Why is it being done?
Potential benefits and uses of the research.

Related research should be mentioned, briefly.

Also, the objectives of the research should be stated.

And finally, a `roadmap', listing the various chapters and their contents.

\chapter{Background}

\section{What this chapter should contain}

This chapter is the literature survey or review.
Detailed descriptions of other people's research should be given here.

\section{Figures}

Figures must appear after their references \cite{kn:cn2, kn:cn3}.

In this case, Figure~\ref{FIG_CDF} comes after its reference (you are
responsible for placing the figures after their first reference).
Note that Latex will attempt to `float' the figure -- in this case it is
either `h'ere or at the `t'op of the next available page \cite{kn:cn4}.

\begin{figure}[ht]
\begin{center}
\begin{pspicture}(0.1,0)(4,1)

\rput(2.5,0.85){\shortstack{Direction and Location\\Determination}}
\psframe(1.75,0.7)(3.25,1.0)

\rput(1,0.15){\shortstack{Location\\Verification}}
\psframe(0.5,0)(1.5,0.3)

\rput(2.5,0.15){\shortstack{Transmission\\Area Creation}}
\psframe(2,0)(3,0.3)

\rput(4,0.15){\shortstack{Antenna\\Selection}}
\psframe(3.5,0)(4.5,0.3)

% Antennas

\psframe(0,0)(0.15,0.3)
\psline(0.075,0.3)(0.075,0.7)
\psline(0,0.5)(0.075,0.5)(0,0.6)

\psframe(4.85,0)(5,0.3)
\psline(4.925,0.3)(4.9255,0.7)
\psline(5,0.5)(4.925,0.5)(5,0.6)

% Dataflows
\psset{arrowinset=0, arrowsize=2pt 4, linewidth=0.5pt}

\psline{->}(0.15,0.15)(0.5,0.15)
\psline{->}(1.5,0.15)(2.0,0.15)
\psline{->}(3.0,0.15)(3.5,0.15)
\psline{->}(4.5,0.15)(4.85,0.15)

\psline{->}(1.75,0.85)(1,0.85)(1,0.3)
\psline{->}(2.5,0.7)(2.5,0.3)
\psline{->}(3.25,0.85)(4,0.85)(4,0.3)

% Labels

\rput[b](0.325,0.2){PKT}
\rput[b](1.75,0.2){PKT}
\rput[b](3.25,0.2){PKT}
\rput[b](4.675,0.2){PKT}

\rput(1,0.575){\psframebox*{Location}}
\rput(2.5,0.575){\psframebox*{Location}}
\rput(4,0.575){\psframebox*{\shortstack{Location and\\Direction}}}

\end{pspicture}
\end{center}
\caption{CARP data flow diagram.}
\label{FIG_CDF}
\end{figure}

This text also appears before Figure~\ref{FIG_TALA}.

\begin{figure}[ht]
\begin{center}
\begin{pspicture}(0,-0.1)(2,1.3)
\psset{linewidth=0.5pt}

% \psframe(0,0)(2,1)

% circles and arcs
\psarc[linestyle=dashed](0.5,0.5){0.5}{90}{270}
\psarc[linestyle=dashed](0.8,0.5){0.59}{240}{120}

% n1:
\psline(0.5,0)(0.5,1)
\pscircle[fillstyle=solid,fillcolor=lightgray](0.5,0.6){0.04}

% Inner circles
\psarc[linewidth=1pt](1,0.5){0.707}{135}{225}
\psarc[linewidth=1pt](0,0.5){0.707}{315}{45}

% n2:
\psline(0.5,1)(0.707,0.46)(0.5,0)
\rput[r](0.62,0.46){$\phi$}
\pscircle[fillstyle=solid,fillcolor=darkgray](0.707,0.46){0.04}

% n3:
\psline(0.5,1)(0,0.5)(0.5,0)
\rput[l](0.1,0.5){$\phi$}
\pscircle[fillstyle=solid,fillcolor=white](0,0.5){0.04}

% n4:
\psline(0.5,1)(1.39,0.5)(0.5,0)
\rput[l](1.19,0.5){$\phi$}
\psframe[fillstyle=solid,fillcolor=white](1.34,0.45)(1.44,0.54)

% Labels

\rput[l](1.75,0.5){\begin{tabular}{ll}
Node1 & \pscircle[fillstyle=solid,fillcolor=lightgray](0.5em,0.4em){0.04}\\
Node2 & \pscircle[fillstyle=solid,fillcolor=darkgray](0.5em,0.4em){0.04}\\
Node3 & \pscircle[fillstyle=solid,fillcolor=white](0.5em,0.4em){0.04}\\
Node4 & \psframe(0.25em,0.25em)(0.75em,0.75em)\\
\end{tabular}}

% s&d:

\rput[l](0.5,1.175){D $(x_{d},y_{d})$}
\rput[l](0.5,-0.15){C $(x_{c},y_{c})$}

\end{pspicture}
\end{center}
\caption{Transmission area with limiting angle}
\label{FIG_TALA}
\end{figure}

\chapter{Design and Implementation}

\section{What this chapter should contain}

This chapter describes your research in terms of its design and implementation.

It is not necessarily restricted to `Design' and `Implementation'.
For example, it could focus solely on `Design' and the next chapter could 
cover `Implementation and Testing'.

\section{Equations}

If you like, you can add equations.

\begin{eqnarray}
r_{1} + r_{2} = 2a \label{eqn_two}\\
b^{2} + c^{2} = a^{2} \label{eqn_three}
\end{eqnarray}

All the nodes located on the ellipse boundary have the same path length $2a$, as shown in 
equation~\ref{eqn_two}, while nodes located inside the ellipse have a shorter path length.
These nodes are inside the transmission area.

\chapter{Test Results}

\section{What this chapter should contain}

This chapter describes the results of your research.
Tabular or graphical representation is the norm.

\section{Tables}

The same holds true for Tables as it did for Figures..
In this case, Table~\ref{TBL_NODES} comes after its first reference.

\begin{table}[ht]
\caption{Nodes in the network}
\label{TBL_NODES}
\begin{center}
\begin{tabular}{|c|l|c|c|}
\hline
Value of $\phi$ & Shape of Transmission Area & Example & Path Length\\
\hline
$\phi=180^{\circ}$ & line connecting current and destination & Node1 & 
\psline{->}(0.25,-0.1)(0.25,-0.35) Shortest\\
\cline{1-3}
$90^{\circ}<\phi<180^{\circ}$ & two symmetric minor arcs & Node2 & ~\\
\cline{1-3}
$\phi=90^{\circ}$ & circle & Node3 & ~\\
\cline{1-3}
$\phi<90^{\circ}$ & two symmetric major arcs & Node4 & Longest\\
\hline
\end{tabular}
\end{center}
\end{table}


\chapter{Concluding Remarks}

\section{What this chapter should contain}

The concluding remarks to your research are placed here.
What was found and what was not found.
Was it a success?
That is, were the objectives met?

And, this is very important, what contributions were made by the research.

A description of future work should also be included here.


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Bibliography
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newpage

\addcontentsline{toc}{chapter}{Bibliography}

\singlespace

\bibliography{cartnet}
\bibliographystyle{plain}

\end{document}