I have two identical TeX files written under elsarticle
template, with the exception that the names of authors are different. This small difference makes an error for the second code below while for the first one no error appears. In the first code, I have written \author{someone}
and \ead{[email protected]}
in corresponding places in template, whereas in the second code, I've used another name, say \author{Abbas Karamali Ravandi}
, and another email address, say \ead{[email protected]}
.
Please run each code at least twice to see the error.
First Code:
\documentclass[preprint,12pt]{elsarticle}
\usepackage{epsfig}
\usepackage{subcaption}
\captionsetup{compatibility=false}
%% The amssymb package provides various useful mathematical symbols
\usepackage{amssymb}
\usepackage{mathptmx}
\usepackage{amsmath}
\newtheorem{thm}{Theorem}
\newproof{pf}{Proof}
\journal{X}
\begin{document}
\begin{frontmatter}
\title{Something as a title}
\author{Someone}
\ead{[email protected]}
\address{}
\begin{abstract}
%% Text of abstract
\end{abstract}
\begin{keyword}
%% keywords here, in the form: keyword \sep keyword
Keyword1 \sep Keyword2 \sep Keyword3 \sep Keyword4
%% PACS codes here, in the form: \PACS code \sep code
%% MSC codes here, in the form: \MSC code \sep code
%% or \MSC[2008] code \sep code (2000 is the default)
\end{keyword}
\end{frontmatter}
%% main text
\section{Introduction}
\label{}
Here goes introduction of the paper
\bibliographystyle{elsarticle-num}
\bibliography{Bibiliography}
\end{document}
\endinput
%% End of file `elsarticle-template-num.tex'.
and the Second
\documentclass[preprint,12pt]{elsarticle}
\usepackage{epsfig}
\usepackage{subcaption}
\captionsetup{compatibility=false}
%% The amssymb package provides various useful mathematical symbols
\usepackage{amssymb}
\usepackage{mathptmx}
\usepackage{amsmath}
\newtheorem{thm}{Theorem}
\newproof{pf}{Proof}
\journal{X}
\begin{document}
\begin{frontmatter}
\title{Something as a title}
\author{Abbas Karamali Ravandi}
\ead{[email protected]}
\address{}
\begin{abstract}
%% Text of abstract
\end{abstract}
\begin{keyword}
%% keywords here, in the form: keyword \sep keyword
Keyword1 \sep Keyword2 \sep Keyword3 \sep Keyword4
%% PACS codes here, in the form: \PACS code \sep code
%% MSC codes here, in the form: \MSC code \sep code
%% or \MSC[2008] code \sep code (2000 is the default)
\end{keyword}
\end{frontmatter}
%% \linenumbers
%% main text
\section{Introduction}
\label{}
Here goes introduction of the paper
\bibliographystyle{elsarticle-num}
\bibliography{Bibiliography}
\end{document}