% The Delta-Epsilon Style Sheet
%
% author: 	A. Tomberg, modified by L. Belzile
% date	: 	23.11.2009 for v2.0, 27.02.2013 for v2.1
% version:	v2.1
%
% Notes: to be used with the combine document class.
%		> To import a new article do: \newarticle{title}{author}\import{.tex}
%		> Bibtex has to be run separately on each article that uses it.

\ProvidesPackage{DE}

%--------- PACKAGES -----------

\usepackage{mathrsfs}
\usepackage{amsmath, amsthm, amssymb, amsfonts}
\usepackage{mathtools}
%\usepackage{mathptmx}
\usepackage{color, graphicx}
\usepackage[table]{xcolor}
\usepackage{geometry}
\usepackage{multicol, multirow}
\usepackage{array}
\usepackage{sectsty}
\usepackage{fancyhdr}
\usepackage{url}
\usepackage{wrapfig}
\usepackage{verbatim}
\usepackage[all]{xy}
\usepackage{enumerate}
\usepackage{enumitem}
\usepackage{latexsym,graphics}%,styles}
\usepackage{tikz}
%\usepackage[frenchb,english]{babel}
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
%\usepackage{pslatex}
%\usepackage{fullpage}
\usepackage{wrapfig}
%\usepackage{cite}
%\usepackage[round]{natbib}
\usepackage{relsize}
\usepackage{setspace}
%\setstretch{2}


%\usepackage{nameref}
% \usepackage{hyperref}
% \hypersetup{pdfborder={0 0 0},
% 	colorlinks=true,
% 	linkcolor=black,
% 	citecolor=black,
% 	urlcolor=black}
% \urlstyle{same}

%For French formatting
%\usepackage{FrenchDE}

%--------- THEOREMS ---------

\newtheorem{thm}{Theorem}
\newtheorem{lem}[thm]{Lemma}
\newtheorem{prop}[thm]{Proposition}
\newtheorem{cor}[thm]{Corollary}
\newtheorem{fact}[thm]{Fact}
\newtheorem{defn}{Definition}
\newtheorem{conseq}[thm]{Consequence}
\newtheorem{problem}[thm]{Problem}
\newtheorem{claim}[thm]{Claim}

\theoremstyle{definition}
\newtheorem*{exm}{Example}
\newtheorem{ex}{Example}
\theoremstyle{remark}
\newtheorem*{rmk}{Remark}

%--------- COMMANDS ---------
\DeclareMathOperator{\rank}{rank}
\DeclareMathOperator{\height}{height}
\DeclareMathOperator{\Tr}{Tr}
\newcommand{\V}[1]{\text{V}\left(#1\right)}
\newcommand{\E}[1]{\text{E}\left(#1\right)}
\newcommand{\BZ}{\mathbb Z}
\newcommand{\BN}{\mathbb N}
\newcommand{\BR}{\mathbb R}
\newcommand{\BC}{\mathbb C}
\newcommand{\BQ}{\mathbb Q}
\newcommand{\negfour}{\negthickspace\negthickspace\negthickspace\negthickspace}

\providecommand{\abs}[1]{\left\lvert#1\right\rvert}


%---------- MACROS ----------

% Our name
\newcommand{\deleps}{\textsc{The 
	$\delta$elta-$\varepsilon$psilon}}
\newcommand{\mumj}{\textsc{McGill Undergraduate Mathematics Journal}}

% Putting author and title in the header
\newcommand{\authortochead}[1]{\coltocauthor{#1}\fancyhead[RE]{#1}}
\newcommand{\titletochead}[1]{\coltoctitle{#1}\fancyhead[LO]{#1}}

% New article command
\newcommand{\newarticle}[2]{
\setcounter{thm}{0}
\begin{center} {\Large \textsc{#1}} \\ \vspace{6pt}\textsl{#2}\end{center}
\titletochead{#1} \authortochead{#2} }

%New article with shortening of toc and header title
\newcommand{\newarticleshort}[3]{
\setcounter{thm}{0}
\begin{center} {\Large \textsc{#1}} \\ \vspace{6pt}\textsl{#3}\end{center}
\titletochead{#2} \authortochead{#3} }

% Remove the word "Abstract" before the abstract
\addto\captionsenglish{\renewcommand{\abstractname}{\vspace{-1pc}}}

% Command for typestting questions in interviews
\newcommand{\Q}[1]{\paragraph{$\delta\varepsilon$:}\textbf{#1}\\}

% Jokes environment (one-column)
\newenvironment{jokes}{\setcounter{figure}{0}\smallskip \noindent \textsc{Jokes and Comics} 
\hrulefill \bigskip \\ }

%--------- FIGURES ----------
\makeatletter
\newenvironment{tablehere}
{\vspace{6pt}\begin{center}\def\@captype{table}}
{\end{center}}

\newenvironment{figurehere}
{\vspace{6pt}\begin{center}\def\@captype{figure}}
{\end{center}}

\makeatother

%----------- FONT -----------

% We use roman fonts.

%\fontfamily{cmr}
%\selectfont

\usepackage{lmodern}
\usepackage[sc]{mathpazo}
\renewcommand\rmdefault{ppl}
%---------- MARGINS ---------
%1pc = 12pt, 1in = 72.27pt

\geometry{letterpaper, twoside, verbose, ignoremp,
bindingoffset 	= 4pc, %3
right				= 4pc, %4
columnsep		= 2pc,
top				= .9in,
bottom			= .9in}

%------- HEADINGS STYLE -----

\sectionfont{\normalfont\large\centering\scshape}
\subsectionfont{\normalfont\large\itshape}
\subsubsectionfont{\normalfont\normalsize\itshape}

%------- HEADER/FOOTER ------

\pagestyle{fancy}
\renewcommand{\footrulewidth}{0.4pt}
%\renewcommand{\headheight}{18pt}

\fancyhead[RO,LE]{\thepage}
\fancyhead[CE,CO]{}

\fancyfoot[C]{}
\fancyfoot[RO,LE]{\deleps}
\fancyfoot[RE,LO]{\mumj}