amsart option titlepage puts the address on the last page

The following code produces a title page with the title, authors, and abstract, but the addresses appear at the end of the article. Every variation I can think of produces the same problem. Putting \usepackage{amsaddr} puts the addresses on the title page, but deletes the author names! (edit: amsaddr needs to be loaded before the author information to avoid the aforementioned error; see answer to question)

I don't know what to do, short of hacking together the title manually, as in the answer to Authors in amsart.

\documentclass[titlepage]{amsart}
\title{The title}%

\author{Author 1}
\author{Author 2}
\email{emails of Authors 1 and 2}

\author{Author 3}
\author{Author 4}
\email{emails of Authors 3 and 4}

\usepackage{lipsum}
\begin{document}

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

\maketitle

\lipsum[1]

\end{document}


The appears on the title page

This appears on the next page

• This is the default for AMS classes. – Sigur Feb 5 '15 at 23:58
• Any idea how to force the affiliations onto the first page? – Alejandro Feb 5 '15 at 23:59

The amsaddr package does not delete the author names. There are two ways to use it, straight it will print the address below each author name (but put the email addresses a footnote), with the foot option it will put the addresses in a footnote. Here are the two outputs.

For amsaddr in the foot case you can give an optional argument to \address

\address[A1,A2]{Address of author 1 and 2}


which will print (A1,A2) before that address, if you need that labelling. This doesn't work with the email addresses. However, you can add the following to your preamble to get such functionality:

\makeatletter
\renewcommand{\email}[2][]{%
}
\makeatother


 \documentclass[titlepage]{amsart}
Author info....


 \documentclass[titlepage]{amsart}
Author info....


Full code

\documentclass[titlepage]{amsart}

\makeatletter
\renewcommand{\email}[2][]{%
}
\makeatother

\tracingmacros=1
\title{The title}%

\author{Author 1}
\author{Author 2}
\email[A1,A2]{emails of Authors 1 and 2}

\author{Author 3}
\author{Author 4}
\email[A3,A4]{emails of Authors 3 and 4}

\usepackage{lipsum}
\begin{document}

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

\maketitle

\lipsum[1]

\end{document}

• Apparently you need to load the amsaddr package before the author info, and I hadn't done that. This is a solution, so thanks! – Alejandro Feb 6 '15 at 9:37
• Indeed. amsaddr redefines the macros for specifying the address and email information, so needs to be loaded first. – Andrew Swann Feb 6 '15 at 9:47