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.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.
;-)
Adding the
authoryear
tonatbib
is not a solution, because theelsarticle
class already loads it, so havingin the preamble will only cause an error about conflicting options.