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 theamsart
class. If I change the document class in your minimal example toarticle
, 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 ditchamsart
), here's a quick fix: Delete theabstract
environment in your example. Instead, add the following immediately after\maketitle
: