% Load the following packages:

\usepackage[utf8]{inputenc}
%\usepackage{pstricks}  % for graphing
%\usepackage{pstricks-add}
%\usepackage{pst-plot}
%\usepackage{pst-text}
\usepackage{pgf,tikz}
	\usetikzlibrary{arrows}
\usepackage{textcomp}
\usepackage{xifthen}% provides \ifthenelse and \isempty
\usepackage{tabularx}
\usepackage{multicol}
\usepackage{enumerate}
\usepackage{color}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{amsmath,amssymb}
\usepackage{epstopdf}
\usepackage{moreverb}			% for {boxedverbatim}
\usepackage{boxedminipage}
\usepackage{framed}
\usepackage{setspace}			% to use with \doublespacing, \singlespacing
\usepackage[parfill]{parskip}
	% Activate to begin paragraphs with an empty line rather than an indent
\usepackage[pdftex,colorlinks=true]{hyperref}
	% To build PDF with links to the itself and the internet
\usepackage[super]{natbib}
	% To use Harvard as well as Numeric style with bibtex
	% [round] for round parentheses;
	% [square] (default) for square brackets;
	% [curly] for curly braces;
	% [angle] for angle brackets;
	% [colon] (default) to separate multiple citations with colons;
	% [comma] to use commas as separaters;
	% [authoryear] (default) for authoryear citations;
	% [numbers] for numerical citations;
	% [super] for superscripted numerical citations, as in Nature ;
	% [sort] puts multiple numerical citations in order and compresses them if possible (as 36, 15);
	% \cite{goossens93}	         Goossens et al. (1993)
	% \citet{goossens93}  	Goossens et al. (1993)
	% \citep{goossens93} 	(Goossens et al., 1993)
	% \citet*{goossens93} 	Goossens, Mittlebach, and Samarin (1993)
	% \citep*{goossens93} 	(Goossens, Mittlebach, and Samarin, 1993)
	% \citeyear                           1993
	% \citeauthor                       Goosens et al.
  \renewcommand{\thefootnote}{\fnsymbol{footnote}}		% Use symbols for footnotes
\usepackage{geometry}			% See geometry.pdf to learn the layout options. There are lots.
%	\geometry{letterpaper}		% ... or a4paper or a5paper or ... 
%	\geometry{landscape}		% Activate for for rotated page geometry
%	\geometry{papersize={150mm,112mm},total={140mm,102mm}}  % For Projector
%	\geometry{papersize={300mm,187mm},total={290mm,177mm}}  % For 1280 x 800 Screen

\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}



% New commands

\newcommand{\email}[1]{\href{mailto:#1}{\color{blue}{\texttt{<#1>}}}}
\newcommand{\link}[2]{\href{#1}{\color{blue}{#2}}}
%\newcommand{\local}[2]{\href{run:./extra/#1}{\color{blue}{#2}}

\newcommand{\ud}{\, \mathrm{d}}	% differential operator
\newcommand{\dC}{$^{\circ}$C}	% degree Celcius
\newcommand{\dg}{\,^{\circ}}	% degree in math environment
\newcommand{\degree}{$^{\circ}$}	% degree Celcius
\newcommand{\qm}[1]{\quad \mbox{$ #1 $} \quad}  %for brief embedded math expression.
\newcommand{\qmd}[1]{\quad \mbox{$\displaystyle #1 $} \quad}  %for brief embedded math expression.
\newcommand{\chords}[1]{\texttt{\textbf{#1}}}	% Used for Music Chords
\newcommand{\footchord}[1]{\addtocounter{footnote}{1} \footnotetext{#1}}


% Questions in a test.  Syntax:   \question[0.6]{This is a question...}{3}  % length of text, text, points.


\newcounter{question}
\providecommand*\question[3][]{ \addtocounter{question}{1} \parbox[t]{0.23in}{\textbf{\arabic{question}. }} \ifthenelse{\isempty{#1}}{\parbox[t]{5.4in}{ #2} \hfill \texttt{/#3}} { \parbox[t]{#1\textwidth}{ #2} \hfill \texttt{/#3}}\\} 

\newcommand{\questionold}[2]{\addtocounter{question}{1} \parbox[t]{0.23in}{\textbf{\arabic{question}. }} \parbox[t]{5.4in}{ #1} \parbox[t]{0.7in}{\hfill \texttt{/#2}}}

\newcounter{quest}  % uses same counter as the other type of questions.
\newcommand{\quest}[1]{\addtocounter{quest}{1} \parbox[t]{0.23in}{\textbf{\arabic{quest}. }} \parbox[t]{6.1in}{ #1}}

\newcommand{\HRule}{\rule{\linewidth}{0.2mm} }
