I'm trying to write an article for a journal using it's LaTeX class and there seems to be an issue with the bibliography.
I'm getting the following error message:
Package natbib Error: Bibliography not compatible with author-year citations.
I think that the LaTeX class loads the natbib
package by default.
I know that natbib
is a special package for bibliography, but that's all I know about it, and I don't even know how to use it. All I want to do is just be able to compile my LaTeX code without getting any errors.
I've been searching for quick solutions on the internet, but I'm being unable to solve the problem. I tried a couple of things such as replacing the new natbib
style file with an older version (as suggested somewhere on the internet), but nothing seems to work.
Also, I'm pretty sure I'm formating the references according to the journal's instructions, so I don't know what the problem might be.
If I enter return when the errors occurs, the MikTeX application continues compiling the code and the PDF file is generated without any problems. Anyway, I don't want the natbib
error to appear because I don't know if the journal will accept the code with this error.
Here's some code I'm using:
\begin{thebibliography}{0}
\bibitem{author's last name:year}
author's last name, author's first name initial.
``Author's article.''
\textit{journal} (year)
\bibitem{author's last name:year}
author's last name, author's first name initial.
\textit{book title}, edition, p. page number.
place of publication: publisher, year.
\end{thebibliography}
Extra information: In the text, I'm able to cite references without any problems by using \citep
. If I use \cite
, some text disappears when the code is compiled, and \citet
won't work.
natbib
is really designed to be used withbibtex
. So you shouldn't be entering bibliography entries by hand, but into a separated.bib
file whichbibtex
uses to generate the bibliography items. See the Bibliographies section of the answer to this question: What TeX software to write technical papers with.