3

I am editing a paper using amsart documentclass. However, the

\maketitle

command does not give me the author and abstract. My codes are here:

\documentclass[12pt]{amsart}
\usepackage{amsmath,amsfonts,amssymb,amsthm,latexsym}
\usepackage{enumerate}
\usepackage{cancel}
\usepackage{color}
\usepackage{todonotes}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{titling}
\usepackage{verbatim}

\begin{document}
\title{MyTitle}
\author{MyAuthor}
\begin{abstract}
MyAbstract
\end{abstract}

\maketitle
Text
\end{document}

And the resulting file only have "MyTitle" as title and "Text" as text. Author and abstract information are missing.

How can I add adstract and authors by using maketitle?

5
  • Remove the titling package. I don't know why this is an issue (yet), but that's the problem. (Also, as a matter of style, I would put the metadata (title/author) before \begin{document}, and I would put \maketitle before your abstract. Edit: it appears to be a package conflict and not a problem with titling itself. Aug 26, 2013 at 0:08
  • @SeanAllred the amsart.tex template recommends abstract before \maketitle. Aug 26, 2013 at 0:17
  • @GonzaloMedina I stand corrected -- good to know! Aug 26, 2013 at 0:18
  • @SeanAllred you should turn your comment into an answer. Aug 26, 2013 at 0:40
  • @SeanAllred Your suggestion works! The problem is solved after I removed the titling package. Thanks. Aug 26, 2013 at 1:03

1 Answer 1

5

While I still can't pinpoint the source of the problem, removing the titling package resolves the issue. It appears to be a package clash, but with what—I do not know yet.

2
  • 4
    The titling package redefines \maketitle, so all amsart would do with it is forgotten. In particular the abstract vanishes (titling doesn't know about printing it) and also the authors, because amsart doesn't use \@author as the internal container.
    – egreg
    Aug 26, 2013 at 9:05
  • 1
    As of 2023, the TeX Live bundle Debian/2022 still has the 2009 version of titling, and the issue persists. Apr 3, 2023 at 18:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .