%\documentclass[draft,12pt]{unbthesis}
\documentclass[12pt]{unbthesis}
%\usepackage[left=4cm, right=2.5cm, top=2.5cm, bottom=2.5cm]{geometry}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage[english]{babel}
\usepackage{footmisc}
\usepackage{algorithmic}
\usepackage{listings}
\usepackage{fancyvrb}
\usepackage{multirow}
\usepackage{longtable}
\usepackage{indentfirst} %indent the first paragraph of each section
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Add links to the PDF
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[pdftex,colorlinks=true,bookmarks=true,linkcolor=blue,citecolor=blue,plainpages=false,pdfpagelabels=true]{hyperref}
%\usepackage[pdftex,colorlinks=true,bookmarks=true,linkcolor=black,citecolor=black,plainpages=false,pdfpagelabels=true]{hyperref} %backref not used
\hypersetup{%
pdftitle={A Reconfigurable Four-Channel Transceiver Testbed with Signalling-Wavelength-Spaced Antennas},
pdfauthor={J. Andy Harriman},
pdfkeywords={wireless, testbed, software defined radio, digital signal processing, FPGA, communications},
bookmarksnumbered, % add section numbers to the bookmarks
pdfstartview={FitV}, % fit 1 page of document to screen (vertically) when PDF opened
pdfpagemode=UseOutlines, % bookmarks are visible when PDF opened
%urlcolor=cyan,
}%
\usepackage[figure]{hypcap} %override the caption location for figures to be linked correctly with hyperref
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\title{A Reconfigurable Four-Channel Transceiver Testbed with Signalling-Wavelength-Spaced Antennas}
\author{J. Andy Harriman}
\predegree{B.Sc.E., University of New Brunswick, 2004}
\degree{Master of Science in Engineering}
\gau{Electrical Engineering}
\supervisor{Mary E. Kaye, B.Sc.E., M.Eng.\\ & Brent R. Petersen, B.Eng., M.A.Sc., Ph.D.}
\examboard{Yevgen Biletskiy, M.Sc.C.S., Ph.D.\\  & Dennis Lovely, B.Sc., Ph.D., Chair\\ & Julian Meng, B.Sc.E., M.Sc.E., Ph.D.}
\externalexam{Kenneth Kent, B.Sc., M.Sc., Ph.D.}
\date{September, 2006}
\copyrightyear{2006}
\setlength\parindent{0pt}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{definition}{Definition}[section]
\newtheorem{lemma}{Lemma}[section]
\newtheorem{notation}{Notation}[section]


%Would like \autoref to use Chapter and Section instead of the default chapter and section
\renewcommand{\chapterautorefname}{Chapter}
\renewcommand{\sectionautorefname}{Section}

\newcommand{\matlabReg}{\mbox{$\mathrm{MATLAB^{\scriptscriptstyle \circledR}}$}~}
\newcommand{\simulinkReg}{\mbox{$\mathrm{Simulink^{\scriptscriptstyle \circledR}}$}~}
\newcommand{\xilinxReg}{\mbox{$\mathrm{Xilinx^{\scriptscriptstyle \circledR}}$}~}
\newcommand{\alteraReg}{\mbox{$\mathrm{Altera^{\scriptscriptstyle \circledR}}$}~}
\newcommand{\stratixReg}{\mbox{$\mathrm{Stratix^{\scriptscriptstyle \circledR}}$}~}
\newcommand{\signaltapReg}{\mbox{$\mathrm{SignalTap^{\scriptscriptstyle \circledR}}$}~}
\newcommand{\blackBoxReg}{\mbox{$\mathrm{Black~Box^{\scriptscriptstyle \circledR}}$}~}
\newcommand{\quartusReg}{\mbox{$\mathrm{Quartus^{\scriptscriptstyle \circledR}}$}~}
\newcommand{\pentiumReg}{\mbox{$\mathrm{Pentium^{\scriptscriptstyle \circledR}}$}~}
\newcommand{\pspiceReg}{\mbox{$\mathrm{PSpice^{\scriptscriptstyle \circledR}}$}~}
\newcommand{\minicircuitsReg}{\mbox{$\mathrm{Mini-Circuits^{\scriptscriptstyle \circledR}}$}~}
\newcommand{\microsoftReg}{\mbox{$\mathrm{Microsoft^{\scriptscriptstyle \circledR}}$}~}
\newcommand{\legoReg}{\mbox{$\mathrm{LEGO^{\scriptscriptstyle \circledR}}$}~}

%Plural registered trademark words
\newcommand{\alteraRegPL}{\mbox{Altera'$\mathrm{s^{\scriptscriptstyle \circledR}}$}~}

%Registered trademark words with no space afterwards
\newcommand{\matlabRegNS}{\mbox{$\mathrm{MATLAB^{\scriptscriptstyle \circledR}}$}}
\newcommand{\alteraRegNS}{\mbox{$\mathrm{Altera^{\scriptscriptstyle \circledR}}$}}
\newcommand{\simulinkRegNS}{\mbox{$\mathrm{Simulink^{\scriptscriptstyle \circledR}}$}}
\newcommand{\pspiceRegNS}{\mbox{$\mathrm{PSpice^{\scriptscriptstyle \circledR}}$}}
\newcommand{\signaltapRegNS}{\mbox{$\mathrm{SignalTap^{\scriptscriptstyle \circledR}}$}}

%These registered trademark words appear as bold in the section titles, and non bold in the table of contents
\newcommand{\matlabRegX}{\mbox{MATLAB$\!\mathrm{{\,}^{\scriptscriptstyle \circledR}}$}}
\newcommand{\blackBoxRegX}{\mbox{Black~Box$\!\mathrm{{\,}^{\scriptscriptstyle \circledR}}$}}
\newcommand{\alteraRegX}{\mbox{Altera$\!\mathrm{{\,}^{\scriptscriptstyle \circledR}}$}}
\newcommand{\signaltapRegX}{\mbox{SignalTap$\!\mathrm{{\,}^{\scriptscriptstyle \circledR}}$}}

%\hyphenation{re-con-fig-ura-bil-ity}
%\hyphenation{max-i-mize}
%\hyphenation{use-ful-ness}
%\hyphenation{test-bed}
%\hyphenation{in-ter-fac-ing}
%\hyphenation{mod-u-la-tor}
%\hyphenation{cal-cu-lat-ed}
%\hyphenation{ra-tio}
%\hyphenation{volt-age}
%\hyphenation{cir-cuit}
%\hyphenation{con-di-tion-ing}

\begin{document}
\unbtitlepage
\setcounter{secnumdepth}{3} \setcounter{tocdepth}{3}
\pagenumbering{roman} \setcounter{page}{1}
\include{./content/dedication}
\include{./content/abstract}
\include{./content/acknowledgements}
%%-----------Table of Contents------------------
\renewcommand{\contentsname}{Table of Contents}

\phantomsection\addcontentsline{toc}{chapter}{Table of Contents}
\tableofcontents{}
\clearpage
%%------------List of Tables----------------------

\phantomsection\addcontentsline{toc}{chapter}{List of Tables}
\listoftables{}
\clearpage
%%------------List of Figures----------------------

\phantomsection\addcontentsline{toc}{chapter}{List of Figures}
\listoffigures{}
\clearpage
\include{./content/abbreviations}
\clearpage
%%-------------change single space to double space--------
\doublespacing \pagenumbering{arabic} \setcounter{page}{1}

\parindent 3em % Set the paragraph indentation size

\include{./content/chapter1}
\include{./content/chapter2}
\include{./content/chapter3}
\include{./content/chapter4}
\include{./content/chapter5}

%\include{bibliography}
% changes default name Bibliography to References
%\renewcommand{\bibname}{References}
%\bibliographystyle{amsplain}
\phantomsection\addcontentsline{toc}{chapter}{Bibliography}
\bibliographystyle{ieeetr}
\bibliography{./bibliography/JAH_Thesis_Bib}
\include{./content/appendices}
%\include{./content/glossary}
\include{./content/vita}
\end{document}
