I am using the elsarticle
class in order to typeset a preprint of an article I am writing.
I wanted to add line numbering in order to make the revision easier, so I included the lineno
package.
This is a MWE:
\documentclass[preprint,review]{elsarticle}
\usepackage{lipsum}
% ADDING LINENUMBERS FOR REVIEWING:
\usepackage{lineno}
\linenumbers
\journal{The Name Of The Journal}
\begin{document}
\begin{frontmatter}
\title{The Tile Of The Article}
\author[]{Name1 Surname1\corref{cor1}}
\ead{surname1@email.ok}
\cortext[cor1]{Corresponding author. Tel.: WHATEVER; Fax: WHATEVER.}
\author[]{Name2 Surname2}
\ead{surname2@email.ok}
\author[]{Name2 Surname3}
\ead{surname3@email.ok}
\address{Research Structure Name, University Name, Full Postal Address.}
\begin{abstract}
\lipsum[31]
\end{abstract}
\begin{keyword}
Keyword1; Keyword2; Keyword3; Keyword4; Keyword5
\end{keyword}
\end{frontmatter}
\section{Introduction and background}
\subsection{Introduction}
\lipsum[1-5]
\subsection{Background}
\lipsum[6-15]
\subsection{Aims and scope}
\lipsum[16-20]
\section{Conclusions}
\lipsum[21-30]
\section*{Acknowledgements}
Thanks to all!
\end{document}
And this is what I get (1st page, see bottom):
The normal result when removing these two lines in the tex document:
\usepackage{lineno}
\linenumbers
is the following (see the bottom):
So, author information is overlaped with the bottom line "Preprint sumbitted to […]". How can I fix this issue??
Best Answer
I am answering my own question.
I managed to solve this issue by just moving the
\linenumbers
sentence to the beginning of the main text —that is:This is the result:
It is a little bit strange that the title line gets actually numbered, but it is OK for me that the abstract is not numbered, after reading the answer by @Loop-Space to a similar question regarding
lineno
: https://tex.stackexchange.com/a/11406/8283, where he points out thatlineno
is intended to number only the main text.It's not perfect, but it is OK for me.