I need to put the bibliography style in my paper like below:
Li, X., Heckman, N. E.(2003). Local linear extrapolation. Journal of Nonparametric Statistics 15, 565–578.
(so called author-year style, year in the parentheses and so forth)-
So I found a file for this style and put it in the style folder of Endnote.
And read my references again and export to Mendeley by XML file.
In Mendeley I also choose that style and export as .bib
file.
Until now, those two programs show the result I want to have.
But it does not change style according to that style in LaTeX.
My LaTeX code is:
\documentclass[authoryear]{elsarticle}
\begin{document}
..........as \citep{Li2003}. .................
\bibliographystyle{elsarticle-harv}
\bibliography{n8}
\end{document}
But this only gives:
Li, X., Heckman, N. E., 2003. Local linear extrapolation. Journal of Nonparametric Statistics 15 (4-5), 565–578.
The year is not in parentheses and other parts are different.
elsarticle-harv
bibliography style should be used for papers submitted to Elsevier journals that employ the author-year citation call-out style. However, it is not a universal bibliography style. If your formatting requirements are different -- e.g., you need parentheses around the publication year -- you should probably not be using theelsarticle-harv
bibliography style to begin with. Who told you to useelsarticle-harv
?elsarticle
document class and theelsarticle-harv
BibTeX bibliography style. I'd follow these guidelines and not be worried one bit if some other site provides erroneous information about the formatting requirements. If you feel like it, you can write to the website that provides the incorrect information and ask them to apply the necessary corrections.