The problem is that the doc
package redefines \maketitle
, the main purpose seems to be allowing several titles in one document: The documentation says
For the same reason the \maketitle
command is slightly changed to
allow multiple titles in one document. So you can make one driver file
reading in several articles at once. To avoid an unwanted pagestyle on
the title page the \maketitle
command issues a
\thispagestyle{titlepage}
declaration which produces a plain page if
the titlepage page style is undefined.
The simple solution is to just redefine \maketitle
with the amsart
definition:
\documentclass{amsart}
\usepackage{doc}
% doc package redefines \maketitle, this is taken from amsart.cls
\makeatletter
\def\maketitle{\par
\@topnum\z@ % this prevents figures from falling at the top of page 1
\@setcopyright
\thispagestyle{firstpage}% this sets first page specifications
\uppercasenonmath\shorttitle
\ifx\@empty\shortauthors \let\shortauthors\shorttitle
\else \andify\shortauthors
\fi
\@maketitle@hook
\begingroup
\@maketitle
\toks@\@xp{\shortauthors}\@temptokena\@xp{\shorttitle}%
\toks4{\def\\{ \ignorespaces}}% defend against questionable usage
\edef\@tempa{%
\@nx\markboth{\the\toks4
\@nx\MakeUppercase{\the\toks@}}{\the\@temptokena}}%
\@tempa
\endgroup
\c@footnote\z@
\@cleartopmattertags
}
\makeatother
\begin{document}
\title{title}
\author{first author}
\thanks{thanks1}
\author{second author}
\thanks{thanks2}
\maketitle
\end{document}
Compiles to yield

as required.
However, I expect there is some "cleaner" version, in particular in case anyone is interested in using the extra features of the doc
version of \maketitle
...
doc
package redefines\maketitle
and within it, it redefines\@makefnmark
, overwriting the redefinition for the "adminiatrative footnotes" inamsart
. i'm trying to find a concise workaround that doesn't destroy the other things thatdoc
is intended to do. (the top matter is handled quite differently in ams document classes than in the basic latex classes.doc
is designed to be used with the basic classes. i'm not surprised at this incompatibility, and there may well be more not yet discovered.)