I'm preparing a submission to a journal that expects citations in the format [Author(year)]. Based on the examples in, for example, this answer, abbrvnat seems to fit my requirements. Unfortunately, citations appear differently in my example.
My document looks as follows:
\documentclass[]{article}
\usepackage[square]{natbib}
\usepackage{filecontents}
\begin{filecontents*}{ref.bib}
@book{Knu86,
author = {Knuth, Donald E.},
year = {1986},
title = {The \TeX book},
}
\end{filecontents*}
\begin{document}
Text including citation \cite{Knu86}.
\bibliographystyle{abbrvnat}
\bibliography{ref}
\end{document}
I'd expect the following output:
Instead, running pdfLaTeX and bibTeX produces the following result:
What can I do to achieve the expected output?
I'm open to switching to Biblatex, but the solution presented here formats citations as [Knu86] instead of [Knuth(1986)]. I'd be interested in customizing Biblatex to fit my needs, but what I don't understand is why abbrvnat doesn't already do what I expect. Clearly, I end up with a different result than every example of abbrvnat I can find.



abbrvnatdoesn't already do what I expect. Clearly, I end up with a different result than every example ofabbrvnatI can find. – user3364120 Dec 22 '15 at 08:50