\documentclass[11pt]{amsart}
\usepackage[usenames,dvipsnames]{color}

\usepackage[pdftex]{graphicx}
\usepackage{indentfirst,pict2e}
\usepackage{todonotes}
\usepackage{amsfonts,amssymb}
\usepackage[leqno]{amsmath}
\usepackage{amsthm}
\usepackage{latexsym}
\usepackage{rotating}


% support for external references
%\usepackage{xr-hyper}
%\def\docpdftitle{IVRG Fall 2010}
\usepackage[
%	debug,
	hyperindex,
	pagebackref,
	pdftex,
%	pdftitle={\docpdftitle},
	%pdfauthor={},
	pdfdisplaydoctitle,
	pdfpagemode=UseNone,
	breaklinks=true,
	extension=pdf,
	bookmarks=false,
	plainpages=false,
	colorlinks,
	linkcolor=linkblue,
	citecolor=linkblue,
	urlcolor=linkblue,
	pdfmenubar=true,
	pdftoolbar=true,
	pdfpagelabels,
	pdfpagelayout=SinglePage,
	pdfview=Fit,
	pdfstartview=Fit
]{hyperref}


%	\definecolor{linkred}{rgb}{0.7,0.2,0.2}
%	\definecolor{linkblue}{rgb}{0,0.2,0.6}





\newcommand{\neturl}[1]{\href{#1}{{\sffamily{\texttt{#1}}}}}
\newcommand{\neturltilde}[2]{\href{#1}{{\sffamily{\texttt{#2}}}}}
\newcommand{\netarxiv}[1]{\href{http:arxiv.org/abs/#1}{{\sffamily{\texttt{arXiv:#1}}}}}
%\newcommand{\netmail}[1]{\href{mailto:#1}{{\sffamily{\texttt{#1}}}}}


\usepackage[backrefs,msc-links,nobysame]{amsrefs}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% customize amsref package to improve appearance
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% customizations to amsref
% roll my own links to eprints
\renewcommand{\eprint}[1]{#1}

\makeatletter

% Set running head in lower case not upper
\def\bib@div@mark#1{%
 \@mkboth{{#1}}{{#1}}%
	}
% use leftarrow instead of uparrow to mark backrefs
\def\print@backrefs#1{%
 \space\SentenceSpace$\leftarrow$\csname br@#1\endcsname
}
% author names in small caps
\catcode`\'=11 % letter
\renewcommand{\PrintAuthors}[1]{%
 \ifx\previous@primary\current@primary
  \sameauthors\@empty
 \else
  \def\current@bibfield{\bib'author}%
% IM hack IM hack here
%				\PrintNames{}{}{#1}%
		  \PrintNames{}{}{\scshape #1}%
% IM hack IM hack here
 \fi
}
\catcode`\'=12
% color the prefixing MR in MathRevs links to match the rest
% and to use \texttt
\def\MRhref#1#2{%
 \begingroup
  \parse@MR#1 ()\@empty\@nil%
  \href{\MR@url}{\texttt{\@tempd\vphantom{()}}}%
  \ifx\@tempe\@empty
  \else
   \ \href{\MR@url}{\texttt{(\@tempe)}}%
  \fi
 \endgroup
}%
\def\MR#1{%
 \relax\ifhmode\unskip\spacefactor3000 \space\fi
 \begingroup
  \strip@MRprefix#1\@nil
  \edef\@tempa{\@nx\MRhref{MR\@tempa}{\@tempa}}%
 \@xp\endgroup
 \@tempa
}
\makeatother


\numberwithin{equation}{section}

\newtheoremstyle{claim}% name
{}%  Space above, empty = `usual value'
{}%  Space below
{\itshape}% Body font
{}%   Indent amount (empty = no indent, \parindent = para indent)
{\bfseries}% Thm head font
{}%  Punctuation after thm head
{1em}%  Space after thm head: " " = normal interword space;
{}% Thm head spec empty is "usual"
\theoremstyle{claim}
\newcounter{letteredtheoremcounter}
\renewcommand{\theletteredtheoremcounter}{\Alph{letteredtheoremcounter}}
\newtheorem{theorem}[equation]{Theorem}
\newtheorem{letteredtheorem}[letteredtheoremcounter]{Theorem}
\newtheorem{theorem*}{Theorem}
\newtheorem{definition}[equation]{Definition}
\newtheorem{claim}[equation]{Claim}
\newtheorem{exercise}[equation]{Exercise}
\newtheorem{lemma}[equation]{Lemma}
\newtheorem{corollary}[equation]{Corollary}
\newtheorem{conjecture}[equation]{Conjecture}
\newtheorem{proposition}[equation]{Proposition}
\newtheorem{criterion}[equation]{Criterion}
\newtheorem{algorithm}[equation]{Algorithm}
\newtheorem{definitionproposition}[equation]{Definition/Proposition}
\newtheoremstyle{explain}% name
{}%  Space above, empty = `usual value'
{}%  Space below
{}% Body font
{}%   Indent amount (empty = no indent, \parindent = para indent)
{\scshape}% Thm head font
{}%  Punctuation after thm head
{.5em}%  Space after thm head: " " = normal interword space;
{}% Thm head spec empty is "usual"
\theoremstyle{explain}
\newtheorem{example}[equation]{Example}
\newtheorem{remark}[equation]{Remark}






\newcommand{\C}{\mathbb{C}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\Q}{\mathbb{Q}}

\newcommand{\Pro}{\mathbb{P}}
\newcommand{\Mg}{\overline{M}_{g}}
\newcommand{\Span}{\operatorname{Span}}
\newcommand{\thst}[2]{\ensuremath{{#1}^{\mathrm{#2}}}}


\newcommand{\M}{\overline{\mathcal{M}}} 
\newcommand{\Mgn}{\overline{\mathcal{M}}_{g,n}}


\newcommand{\id}{\operatorname{Id}}
\newcommand{\Aut}{\operatorname{Aut}}
\newcommand{\Sym}{\operatorname{Sym}}
\newcommand{\SL}{\operatorname{SL}}
\newcommand{\GL}{\operatorname{GL}}
\newcommand{\magma}{\texttt{Magma}}


\newcommand{\NP}{\operatorname{NP}}
\newcommand{\SP}{\operatorname{SP}}

\setlength{\oddsidemargin}{0in}     
\setlength{\evensidemargin}{0in}    
\setlength{\topmargin}{-.5in}       
\setlength{\footskip}{.5in}
\setlength{\textwidth}{6.5in}
\setlength{\textheight}{9in}

