I've spend hours already trying to get natbib running. Im using Texmaker on Windows XP and just cannot find the problem:
- I made sure the link to the .bib file is correct
- I changed the bibliography style to a "natbib" compatible one
- I'm compiling document, bibtex, document, document
So is there maybe any problem with my code?
\documentclass[12pt,oneside,a4paper]{article}
\setlength{\parindent}{0pt}
\setlength{\parskip}{1.15ex plus 0.4ex minus 0.2ex}
\usepackage{graphicx}
\graphicspath{{./figures/}}
\usepackage{hyperref}
\usepackage{float}
\usepackage{microtype}
\usepackage[doublespacing]{setspace}
\usepackage{amsmath}
\usepackage[utf8]{inputenc}
\usepackage[left=4cm, right=2cm, top=1cm, bottom=1cm, includeheadfoot]{geometry}
\usepackage{natbib}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{}
\fancyfoot{}
\renewcommand{\headrulewidth}{0pt}
\rfoot{\thepage}
\begin{document}
\section{Introduction}
For 2011, OECD reports... \citet{oecd11}
\bibliographystyle{plainnat}
\bibliography{ba-thesis.bib}
\end{document}
.bib
extension in the argument to\bibliography
. Write\bibliography{ba-thesis}
\bibliography
command. Second, did you remember to runbibtex
following a latex run, followed by two morelatex
runs?