[Tex/LaTex] Bibliography style with elsarticle

elsarticle

I have trouble getting the form of citations I need. Once I cite I want to see authors' names and not numbers. The unconventional thing is that I have to use the documentclass elsarticle (This is editor's request), which always produce numbers. Here is it what I have

\documentclass{elsarticle}
\usepackage{natbib}
\usepackage[colorlinks=true,linkcolor=black, citecolor=blue, urlcolor=blue]{hyperref}

\begin{document}

\bibliographystyle{plainnat}
\bibliography{references}

\end{document}

Can someone help me on this?

Here's an expanded MWE.

\documentclass{elsarticle}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{amsmath, mathtools}
\usepackage{natbib}
\usepackage[colorlinks=true,linkcolor=black, citecolor=blue, urlcolor=blue]{hyperref}
\usepackage{changes}
\usepackage{appendix}
\usepackage{filecontents}
\usepackage{multirow}
\usepackage{booktabs}



\begin{document}

\section{The Model}

The main environment modifies that of \cite{Diamond1965}, into two main dimensions

\newpage

\bibliographystyle{elsarticle-harv}
\bibliography{references}



\end{document}

Best Answer

You should specify authoryear in the class options.

\begin{filecontents*}{\jobname.bib}
@article{Diamond1965,
 author={J. A. L. Diamond},
 title={Some Like It Hot},
 journal={J. High Level Cinema},
 year={1965},
}
\end{filecontents*}

\documentclass[authoryear]{elsarticle}

\usepackage[colorlinks=true,linkcolor=black, citecolor=blue, urlcolor=blue]{hyperref}

\begin{document}

\section{The Model}

The main environment modifies that of \cite{Diamond1965}, into two main dimensions

\bibliographystyle{plainnat}
\bibliography{\jobname}

\end{document}

The filecontents* environment is just to make the example selfcontained, you don't need it; change the \bibliography line to have the name of your .bib file.

Yes, I know that “Some Like It Hot” wasn't shot in 1965. ;-)

enter image description here

Adding the authoryear to natbib is not a solution, because the elsarticle class already loads it, so having

\usepackage[authoryear]{natbib}

in the preamble will only cause an error about conflicting options.