[Tex/LaTex] author year with natbib package

natbib

I use the natbib package, and my bibliography style is acm (small caps). I would like to have 'year' appearing right after the author name, but I get this error message:

! Package natbib Error: Bibliography not compatible with author-year
citations.

I have checked that all the entries in my .bib file have a year. In addition, I made sure my .bib file is encoded in UTF-8, supported by natbib. Any suggestions?

\documentclass[12pt,a4paper]{article}
\usepackage[english]{babel}
\usepackage[numbers,authoryear]{natbib}
\begin{document}
blablabla
\nocite{*}
\bibliographystyle{acm}
\bibliography{FinalVersion}
\end{document}

Best Answer

The acm bibliography style is not compatible with natbib. You can make it work with

\usepackage[numbers]{natib}

but this still does not give you access to natbib's features. Hence, you should choose a different bibliography style. If you like numerical citations with the authors in small caps in the bibliography, I recommend acmtrans with natbib's numbers option.

\documentclass[12pt,a4paper]{article}
\usepackage[english]{babel}
\usepackage[numbers]{natbib}
\begin{document}
blablabla
\nocite{*}
\bibliographystyle{acmtrans}
\bibliography{FinalVersion}
\end{document}
Related Question