I have recently asked this question and comments there helped, but I still can't get the result that I am looking for. I reduced my problem to a simple case:
Here is my test_bib.bib:
@article{Franklin1999,
author = {Franklin Allen and Risto Karjalainen},
title = {Using genetic algorithms to find technical trading rules},
year = {1999},
volume = {51},
pages = {245-271},
journal = {Journal of Financial Economics}
}
When I try to run this code:
\documentclass[12pt]{article}
%\usepackage{cite}
\usepackage{natbib}
\begin {document}
\title{My Title}
\author{MyName}
My test \citet{Franklin1999}
%\bibliographystyle{plain}
\bibliographystyle{plainnat}
\bibliography{test_bib}
\end {document}
I get this error:
! Package natbib Error: Bibliography not compatible with author-year citations.
What am I doing wrong? I think that format of my .bib file is wrong, but I don't see where.
When I run the code with commented out parts for cite and use \cite instead of \citet everything works fine.
plainandcite). Remove the auxiliary files.auxand.logand.bbland compile againlatex bibtex latex latex– Guido Sep 29 '13 at 20:19