[Tex/LaTex] natbib | Question Mark instead of Citation

bibliographiesbibtexnatbib

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}

Best Answer

Your file runs pproperly with me if:

remove .bib extension from the bibliography file

and RUN:

pdflatex

bibtex

pdflatex

pdflatex

in this sequence.

enter image description here

If it is not working for you, you may check the log file generated by bibtex. (Have you defined the bibtex key oecd11 in your bibtex entry?) You may also post your bibtex entry along with MWE.

PS. Since you did not provide the .bib file, I used another one.

Related Question