%%%%%%%%%%%%%% Theorems and definitions %%%%%%%%%%%%%%%%%%%%%

\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{myarticle}[2008/15/01 Custom Article Class]
%\LoadClass{acm_proc_article-sp}
\LoadClass{sig-alternate}

\RequirePackage{amsmath}
\RequirePackage{amsfonts}
\RequirePackage{amssymb}
\RequirePackage{dsfont}
\RequirePackage{tabularx}
\RequirePackage{booktabs}
\RequirePackage{bm}

\RequirePackage{timestamp}
\RequirePackage{svn}

%\clubpenalty=9999
%\hyphenpenalty=100
%\tolerance=99999
\sloppy

% dreeves: trying this temporarily:
%\RequirePackage{natbib}
%\def\newblock{\hskip .11em plus .33em minus .07em}
%\renewcommand{\cite}[1]{\citep{#1}}

% use following lines to make asmthm compatible
%\let\proof\relax
%\let\endproof\relax
%\RequirePackage{amsthm}

\newcommand{\footnoteremember}[2]{\footnote{#2}\newcounter{#1}\setcounter{#1}{\value{footnote}}} 
\newcommand{\footnoterecall}[1]{\footnotemark[\value{#1}]} 

\DeclareMathOperator*{\interior}{Int}
\DeclareMathOperator*{\argmin}{{arg\,min}}
\DeclareMathOperator*{\argmax}{{arg\,max}}
\DeclareMathOperator*{\covariance}{{Cov}}
\DeclareMathOperator*{\variance}{{Var}}
\providecommand{\BigO}{\ensuremath{\CO}}
\providecommand{\LittleO}{\ensuremath{o}}
\providecommand{\grad}{\ensuremath{^{\circ}}}
\providecommand{\one}{\mathds{1}}
\providecommand{\ignore}[1]{}

% use ACM'own definition and theorem styles

\newtheorem{theorem}{Theorem}
\newtheorem{corollary}{Corollary}
\newtheorem{proposition}{Proposition}
\newtheorem{lemma}{Lemma}
\newdef{definition}{Definition}
\newdef{example}{Example}

% for comments
\usepackage{color}
\definecolor{darkgreen}{rgb}{0,0.5,0}
% \kibitz{color}{comment} inserts a colored comment in the text
\newcommand{\kibitz}[2]{\ifnum\Comments=1\textcolor{#1}{#2}\fi}
% add yourself here:
\newcommand{\jenn}[1]{\kibitz{blue}     {[JW: #1]}}
\newcommand{\yc}[1]  {\kibitz{red}      {[YC: #1]}}
\newcommand{\dmr}[1] {\kibitz{darkgreen}{[DR: #1]}}
\newcommand{\nl}[1]  {\kibitz{cyan}     {[NL: #1]}}
\newcommand{\nnock}[1]  {\kibitz{red}   {[DP: #1]}}

% START of bold fonts
\newcommand{\bfA}{\mathbf{A}}
\newcommand{\bfB}{\mathbf{B}}
\newcommand{\bfC}{\mathbf{C}}
\newcommand{\bfD}{\mathbf{D}}
\newcommand{\bfE}{\mathbf{E}}
\newcommand{\bfF}{\mathbf{F}}
\newcommand{\bfG}{\mathbf{G}}
\newcommand{\bfH}{\mathbf{H}}
\newcommand{\bfI}{\mathbf{I}}
\newcommand{\bfJ}{\mathbf{J}}
\newcommand{\bfK}{\mathbf{K}}
\newcommand{\bfL}{\mathbf{L}}
\newcommand{\bfM}{\mathbf{M}}
\newcommand{\bfN}{\mathbf{N}}
\newcommand{\bfO}{\mathbf{O}}
\newcommand{\bfP}{\mathbf{P}}
\newcommand{\bfQ}{\mathbf{Q}}
\newcommand{\bfR}{\mathbf{R}}
\newcommand{\bfS}{\mathbf{S}}
\newcommand{\bfT}{\mathbf{T}}
\newcommand{\bfU}{\mathbf{U}}
\newcommand{\bfV}{\mathbf{V}}
\newcommand{\bfW}{\mathbf{W}}
\newcommand{\bfX}{\mathbf{X}}
\newcommand{\bfY}{\mathbf{Y}}
\newcommand{\bfZ}{\mathbf{Z}}
\newcommand{\bfa}{\mathbf{a}}
\newcommand{\bfb}{\mathbf{b}}
\newcommand{\bfc}{\mathbf{c}}
\newcommand{\bfd}{\mathbf{d}}
\newcommand{\bfe}{\mathbf{e}}
\newcommand{\bff}{\mathbf{f}}
\newcommand{\bfg}{\mathbf{g}}
\newcommand{\bfh}{\mathbf{h}}
\newcommand{\bfi}{\mathbf{i}}
\newcommand{\bfj}{\mathbf{j}}
\newcommand{\bfk}{\mathbf{k}}
\newcommand{\bfl}{\mathbf{l}}
\newcommand{\bfm}{\mathbf{m}}
\newcommand{\bfn}{\mathbf{n}}
\newcommand{\bfo}{\mathbf{o}}
\newcommand{\bfp}{\mathbf{p}}
\newcommand{\bfq}{\mathbf{q}}
\newcommand{\bfr}{\mathbf{r}}
\newcommand{\bfs}{\mathbf{s}}
\newcommand{\bft}{\mathbf{t}}
\newcommand{\bfu}{\mathbf{u}}
\newcommand{\bfv}{\mathbf{v}}
\newcommand{\bfw}{\mathbf{w}}
\newcommand{\bfx}{\mathbf{x}}
\newcommand{\bfy}{\mathbf{y}}
\newcommand{\bfz}{\mathbf{z}}
% END of bold fonts

% START of script fonts
\newcommand{\scA}{\mathcal{A}}
\newcommand{\scB}{\mathcal{B}}
\newcommand{\scC}{\mathcal{C}}
\newcommand{\scD}{\mathcal{D}}
\newcommand{\scE}{\mathcal{E}}
\newcommand{\scF}{\mathcal{F}}
\newcommand{\scG}{\mathcal{G}}
\newcommand{\scH}{\mathcal{H}}
\newcommand{\scI}{\mathcal{I}}
\newcommand{\scJ}{\mathcal{J}}
\newcommand{\scK}{\mathcal{K}}
\newcommand{\scL}{\mathcal{L}}
\newcommand{\scM}{\mathcal{M}}
\newcommand{\scN}{\mathcal{N}}
\newcommand{\scO}{\mathcal{O}}
\newcommand{\scP}{\mathcal{P}}
\newcommand{\scQ}{\mathcal{Q}}
\newcommand{\scR}{\mathcal{R}}
\newcommand{\scS}{\mathcal{S}}
\newcommand{\scT}{\mathcal{T}}
\newcommand{\scU}{\mathcal{U}}
\newcommand{\scV}{\mathcal{V}}
\newcommand{\scW}{\mathcal{W}}
\newcommand{\scX}{\mathcal{X}}
\newcommand{\scY}{\mathcal{Y}}
\newcommand{\scZ}{\mathcal{Z}}
\newcommand{\sca}{\mathcal{a}}
\newcommand{\scb}{\mathcal{b}}
\newcommand{\scc}{\mathcal{c}}
\newcommand{\scd}{\mathcal{d}}
\newcommand{\sce}{\mathcal{e}}
\newcommand{\scf}{\mathcal{f}}
\newcommand{\scg}{\mathcal{g}}
\newcommand{\sch}{\mathcal{h}}
\newcommand{\sci}{\mathcal{i}}
\newcommand{\scj}{\mathcal{j}}
\newcommand{\sck}{\mathcal{k}}
\newcommand{\scl}{\mathcal{l}}
\newcommand{\scm}{\mathcal{m}}
\newcommand{\scn}{\mathcal{n}}
\newcommand{\sco}{\mathcal{o}}
\newcommand{\scp}{\mathcal{p}}
\newcommand{\scq}{\mathcal{q}}
\def\scr\mathcal{r}
\newcommand{\scs}{\mathcal{s}}
\newcommand{\sct}{\mathcal{t}}
\newcommand{\scu}{\mathcal{u}}
\newcommand{\scv}{\mathcal{v}}
\newcommand{\scw}{\mathcal{w}}
\newcommand{\scx}{\mathcal{x}}
\newcommand{\scy}{\mathcal{y}}
\newcommand{\scz}{\mathcal{z}}
% END of script fonts

% START of blackboard fonts
\newcommand{\bbA}{\mathbb{A}}
\newcommand{\bbB}{\mathbb{B}}
\newcommand{\bbC}{\mathbb{C}}
\newcommand{\bbD}{\mathbb{D}}
\newcommand{\bbE}{\mathbb{E}}
\newcommand{\bbF}{\mathbb{F}}
\newcommand{\bbG}{\mathbb{G}}
\newcommand{\bbH}{\mathbb{H}}
\newcommand{\bbI}{\mathbb{I}}
\newcommand{\bbJ}{\mathbb{J}}
\newcommand{\bbK}{\mathbb{K}}
\newcommand{\bbL}{\mathbb{L}}
\newcommand{\bbM}{\mathbb{M}}
\newcommand{\bbN}{\mathbb{N}}
\newcommand{\bbO}{\mathbb{O}}
\newcommand{\bbP}{\mathbb{P}}
\newcommand{\bbQ}{\mathbb{Q}}
\newcommand{\bbR}{\mathbb{R}}
\newcommand{\bbS}{\mathbb{S}}
\newcommand{\bbT}{\mathbb{T}}
\newcommand{\bbU}{\mathbb{U}}
\newcommand{\bbV}{\mathbb{V}}
\newcommand{\bbW}{\mathbb{W}}
\newcommand{\bbX}{\mathbb{X}}
\newcommand{\bbY}{\mathbb{Y}}
\newcommand{\bbZ}{\mathbb{Z}}
\newcommand{\bba}{\mathbb{a}}
\newcommand{\bbb}{\mathbb{b}}
\newcommand{\bbc}{\mathbb{c}}
\newcommand{\bbd}{\mathbb{d}}
\newcommand{\bbe}{\mathbb{e}}
\newcommand{\bbf}{\mathbb{f}}
\newcommand{\bbg}{\mathbb{g}}
\newcommand{\bbh}{\mathbb{h}}
\newcommand{\bbi}{\mathbb{i}}
\newcommand{\bbj}{\mathbb{j}}
\newcommand{\bbk}{\mathbb{k}}
\newcommand{\bbl}{\mathbb{l}}
\newcommand{\bbm}{\mathbb{m}}
\newcommand{\bbn}{\mathbb{n}}
\newcommand{\bbo}{\mathbb{o}}
\newcommand{\bbp}{\mathbb{p}}
\newcommand{\bbq}{\mathbb{q}}
\newcommand{\bbr}{\mathbb{r}}
\newcommand{\bbs}{\mathbb{s}}
\newcommand{\bbt}{\mathbb{t}}
\newcommand{\bbu}{\mathbb{u}}
\newcommand{\bbv}{\mathbb{v}}
\newcommand{\bbw}{\mathbb{w}}
\newcommand{\bbx}{\mathbb{x}}
\newcommand{\bby}{\mathbb{y}}
\newcommand{\bbz}{\mathbb{z}}
% END of blackboard fonts
