# Problem with abstracts in the jams-l document class

I am preparing a submission to the Journal of the American Mathematical Society, and I'm using the jams-l document class. However, the abstract always appears after the body of my article text. Anyone knows how to move the abstract to the front, or am I doing something wrong? Here's some sample code where it happens. Sorry for the long code but I tried to not to delete anything that might have caused it. To load it, one needs the jams-l.cls package.

\documentclass{jams-l}

\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{Lemma}

\theoremstyle{definition}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}
\newtheorem{xca}[theorem]{Exercise}

\theoremstyle{remark}
\newtheorem{remark}[theorem]{Remark}

\numberwithin{equation}{section}

\begin{document}

\title{}
\author{}
\email{}
\thanks{}

\author{}
\email{}
\thanks{}

\subjclass[2010]{Primary }

\date{}

\dedicatory{}

\begin{abstract}
abstract abstract abstract
\end{abstract}

\maketitle

text of article text of article text of article

\bibliographystyle{amsplain}

\end{document}

-
Welcome to TeX.sx! – lockstep Oct 19 '12 at 14:58
If they require that class, then don't worry: a comment in the class file is "Set abstract at the end of the paper instead of the topmatter section" – egreg Oct 19 '12 at 14:58
aha... didn't spot that, thanks for the answer! Now it's changed from a worry to a minor irritation. – Kougi Kasane Oct 19 '12 at 15:03

% Set abstract at the end of the paper instead of the topmatter section