
%---------------------------------------------------------
% Header: This file includes all the packages and custom definitions
% we have used in this example thesis.
%----------------------------------------------------------

% For Print: \documentclass[12pt,twoside,openright]{report}
% For Electronic version: \documentclass[12pt]{report}
\documentclass[12pt]{report}

%---------------------
% START: Packages
%---------------------
\usepackage{textcomp}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{graphicx}
\usepackage{soul}
\usepackage{listings}
\usepackage{subfig}
\usepackage{verbatim}
\usepackage{alltt}
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{multirow}

\allowdisplaybreaks

% Used in graphics chapter
\usepackage{tikz}
\usepackage{pgfplots}
\usetikzlibrary{matrix}

% Load the natbib citation package: set the citations to be numerical
% with square brackets separated by commas
\usepackage[comma]{natbib}

% Now include the Acadia thesis style
\usepackage{acadiathesis}

% Load the hyperref package: Tell it to hyperlink the page number in the TOC
% \usepackage[linktocpage]{hyperref}
\usepackage[plainpages=false,pdfpagelabels]{hyperref}

% The information in the first three lines here goes into the PDF
% document properties.
% The rest of the lines define options related to hyper-links.
% colorlinks: typeset links in the given colours
%	      (otherwise an ugly box is drawn around the links, although
%	       it is only seen on the screen, not in printed copies)
% A newer option (since May 2011) would be to just use the hidelinks option.
\hypersetup{%
    pdftitle={CHANGE ME: THESIS TITLE},
    pdfauthor={CHANGE ME: YOUR NAME},
    pdfkeywords={CHANGE ME: KEYWORD 1, KEYWORD 2, ETC},
    colorlinks = true,
    linkcolor = black,
    anchorcolor = black,
    citecolor = black,
    filecolor = black,
    pagecolor = black,
    urlcolor = black,
}

% Load the algorithm/mic packages and use chapter-wise numbering
\usepackage[chapter]{algorithm}
\usepackage{algorithmic}

%---------------------
% END: Packages
%---------------------
\bibliographystyle{plainnat}

% The depth of the table of contents: change the MAXIMUM depth of
% citations in your table of contents.
\setcounter{tocdepth}{6}

%
% Some definitions of commands used in this thesis
%

% For instance, if you have an acronym you like to use, then define a
% command, it's faster and if the acronym changes you only have to
% change it in one place.
\def\sysacro{SPECIALACRONYM}

% Allow us to change the margins easily and at will
\newenvironment{changemargin}[2]{%
  \begin{list}{}{%
    \setlength{\topsep}{0pt}%
    \setlength{\leftmargin}{#1}%
    \setlength{\rightmargin}{#2}%
    \setlength{\listparindent}{\parindent}%
    \setlength{\itemindent}{\parindent}%
    \setlength{\parsep}{\parskip}%
  }%
  \item[]}{\end{list}}

%setup the default format of listings
\lstset{
    basicstyle=\footnotesize,
    numbers=left,
    xleftmargin=5mm,
    linewidth=\textwidth,
    breaklines,
    frame=tb,
    frameround=fttt
}

% A new definition style
\newtheoremstyle{defstyle}	% name
    {3pt}			% Space above
    {3pt}			% Space below
    {}				% Body font
    {}				% Indent amount
    {\itshape}			% Theorem head font
    {:}				% Punctuation after theorem head
    {.5em}			% Space after theorem head
    {}		% Theorem head spec (can be left empty,meaning 'normal’)
\theoremstyle{definition}
\newtheorem{definition}{Definition}[chapter]


% Change comment style for algorithms
\renewcommand{\algorithmiccomment}[1]{/*#1*/}
% Change Require: to Input: for algorithms
\renewcommand{\algorithmicrequire}{\textbf{Input:}}
% Change Ensure: to Output: for algorithms
\renewcommand{\algorithmicensure}{\textbf{Output:}}
