Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
    
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. –  Sean Allred Aug 26 '13 at 0:08
    
@SeanAllred the amsart.tex template recommends abstract before \maketitle. –  Gonzalo Medina Aug 26 '13 at 0:17
    
@GonzaloMedina I stand corrected -- good to know! –  Sean Allred Aug 26 '13 at 0:18
    
@SeanAllred you should turn your comment into an answer. –  Gonzalo Medina Aug 26 '13 at 0:40
    
@SeanAllred Your suggestion works! The problem is solved after I removed the titling package. Thanks. –  Misaka_Mikoto Aug 26 '13 at 1:03

1 Answer 1

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.

share|improve this answer
3  
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 '13 at 9:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.