I am trying to learn how to cite in LaTex using the natbib package. I have created a bib file (containing only one reference) named "rakthan" using Mendeley for practice and placed in the same folder where my tex file is. Then I have tried the following codes. But compiling the tex file using TexMaker produces a pdf file with a "[?]" where the in-text citation should be. Also, no bibliography appears at the end of the document. I will be grateful if anyone could help!
P.S. I have already followed the instructions given here. But it yielded no result. Also, my problem is with Natbib, not with biblatex package as mentioned in that link.
\documentclass[12]{article}
\usepackage[left=1in, bottom=1in]{geometry}
\usepackage{amsmath}
\usepackage{natbib}
\usepackage[nottoc]{tocbibind}
\begin{document}
\tableofcontents
\section{Introduction}
\citep{rakthan} %The citation key is "rakthan".
\bibliographystyle{plainnat}
\bibliography{rakthan}
\end{document}
The following is what's inside the bib file:
@inproceedings{rakthanmanon2012searching,
title={Searching and mining trillions of time series subsequences under dynamic time warping},
author={Rakthanmanon, Thanawin and Campana, Bilson and Mueen, Abdullah and Batista, Gustavo and Westover, Brandon and Zhu, Qiang and Zakaria, Jesin and Keogh, Eamonn},
booktitle={Proceedings of the 18th ACM SIGKDD international conference on Knowledge discovery and data mining},
pages={262--270},
year={2012},
organization={ACM}
}
pdflatex
,bibtex
, and then againpdflatex
,pdflatex
?Package natbib Warning: Citation
'rakthan' on page 1 undefined on input line 11 . ("pratice with biblio.bbl" Package natbib Warning: Emptythebibliography' environment on input line 8. ) Package natbib Warning: There were undefined citations. [1 {C:/ProgramData/MiKTeX/2.9/pdftex/config/pdftex.map}] ("pratice with biblio.aux") )
rakhtan.bib
,biblio.bib
, or something else?