\usepackage{amsmath,amssymb,amsthm,amsfonts}
\usepackage{verbatim}
\usepackage[draft=false]{hyperref}
\usepackage[obeyDraft]{todonotes}
\usepackage[usenames,dvipsnames]{pstricks}
\usepackage{epsfig}
\usepackage{pst-grad,pst-plot}
\usepackage[pspdf={-dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true -dPDFSETTINGS=/printer}]{auto-pst-pdf}
\usepackage{epstopdf}
\usepackage{phoenician}
\usepackage{graphicx}
\usepackage{slashed}


\usepackage{listings}
\usepackage{color}

%For the listings line breaks
\usepackage{MnSymbol}

\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.58,0,0.82}
\definecolor{ideablue}{RGB}{1,24,146}


\lstdefinelanguage{maple}
	{morekeywords={true, false, try, catch, return, break, error, 
		module, export, local, option, in, use, and, or, not, 
		xor, xnor, if, then, elif, else, fi, while, for, from, 
		by, to, do, od, proc, nargs, local, global, end, NULL}}

%\lstset{language=maple, basicstyle=\small\ttfamily}

\lstset{
	frame=tb,
	language=Maple,
	aboveskip=3mm,
	belowskip=3mm,
	showstringspaces=false,
	columns=flexible,
	basicstyle={\small\ttfamily},
	numbers=none,
	numberstyle=\tiny\color{gray},
	keywordstyle=\color{blue},
	commentstyle=\color{dkgreen},
	stringstyle=\color{mauve},
	%Line breaking behaviour
	breaklines=true,
	%postbreak={\textbf{marker}\\space\\space\\space\\space},
	%prebreak={},
	%  breakatwhitespace=true
	tabsize=3
}
\lstset{prebreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\rhookswarrow}}} % requires \usepackage{MnSymbol}
\lstset{postbreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\rcurvearrowse\space}}} % requires \usepackage{MnSymbol}

\newtheorem{assumption}{Assumption}
\newtheorem{definition}{Definition}[section]
\newcommand{\squigma}{\xi}


%% Math commands
\newcommand{\abs}[1]{\left| #1 \right|}                % for absolute value
\newcommand{\avg}[1]{\left< #1 \right>}                % for average
\newcommand{\ket}[1]{\left| #1 \right>}                % for Dirac bras
\newcommand{\bra}[1]{\left< #1 \right|}                % for Dirac kets
\DeclareMathOperator{\tr}{Tr}                          % for trace
\newcommand{\diff}[1]{\ensuremath{\operatorname{d}\!{#1}\ }}    % for differential appearing in integrand
\newcommand{\di}[1]{\ensuremath{\operatorname{d}\!{#1} }}       % for differential appearing in metric                  
\DeclareMathOperator{\ex}{\mathbf{d}}                  % for exterior derivative
\newcommand{\norm}[1]{\lVert#1\rVert}                  % for norm
\newcommand{\bb}{\mathbf}                              % a command for bold letters to indicate vectors
\newcommand{\bs}{\boldsymbol}                          % a command to bold greek letters
\newcommand{\mc}{\mathcal}                             % for math calligraphy
\newcommand{\ep}{\varepsilon_0}                        % electric permutivity of free space
\newcommand{\real}{\mathbb{R}}                         % for the real R
\newcommand{\complex}{\mathbb{C}}                      % for the complex C
\DeclareMathOperator\arcsinh{arcsin}                   % Inverse hyperbol sine
\DeclareMathOperator\arccosh{arccos}                   % Inverse hyperbol cosine
\DeclareMathOperator\arctanh{arctanh}                  % Inverse hyperbol tangent
\renewcommand{\Re}{\mathop{\rm Re}}                    % for the real part
\renewcommand{\Im}{\mathop{\rm Im}}                    % for the imaginary part
\DeclareMathOperator\Res{Res}                          % for the residue


