I'm write a document of type tufte-handout, and wanted to use Vancouver reference style for bibliography, however I get the following error:
Package natbib Error: Bibliography not compatible with author-year citations.
This doesn't stop the document from generating, and references are also created fine, but they use plane bib style. How can I stop this error from occurring, and what does it actually mean? Is there a way to force Vancouver style?
EDIT: Added MVE. I should also mention I'm using BasicTeX.
Minimum working example:
\documentclass{tufte-handout}
\usepackage{lipsum}
\begin{document}
\lipsum[1] \cite{Lucas:2006}
\bibliographystyle{vancouver}
\nobibliography{test-refs}
\end{document}
Content of bib file:
@inbook{Lucas:2006,
Author = {Adam Lucas},
Date-Added = {2016-03-01 22:05:32 +0000},
Date-Modified = {2016-03-01 22:05:32 +0000},
Number = {90-04-14649-0},
Pages = {65},
Publisher = {Brill Publishers},
Title = {Wind, Water, Work: Ancient and Medieval Milling Technology},
Year = {2006}}
Best Answer
It appears that the
natbib
package is being loaded with the optionauthoryear
. In contrast, thevancouver
bibliography style is designed to generate numeric-style rather than authoryear-style citation call-outs. To enable this behavior, it is necessary to override the default setting. This may be accomplished by issuing the instructionafter the
\documentclass
instruction.