[Tex/LaTex] Lineno – numbering abstract’s lines.

abstractamsartline-numbering

The package lineno.sty is not numbering my abstract's lines. Any suggestions?
Thanks.

\documentclass[a4paper,12pt]{amsart} 

\usepackage{indentfirst}
\usepackage{hyperref}
\usepackage{showkeys}

\usepackage{lineno}

\hyphenpenalty=5000
  \tolerance=1000


\begin{document}

\linenumbers

\title{Lineno in the Abstract}
\begin{abstract}
We do this, do that, ...
\end{abstract}

\maketitle

\section{Introduction}

\end{document}

Best Answer

Seems to be an incompatibility between lineno and the amsart class. If I change the document class in your minimal example to article, the abstract's lines are numbered.

EDIT: See this answer for an in-depth explanation.

If you really need linenumbers and the amsart class (I would rather ditch amsart), here's a quick fix: Delete the abstract environment in your example. Instead, add the following immediately after \maketitle:

\vspace{-7pt}

\begin{quote}
\footnotesize
\textsc{Abstract.} We do this, do that, ...
\end{quote}

\vspace{21pt}
Related Question