## LaTeX forum ⇒ General ⇒ how to compile the .bib file

LaTeX specific issues not fitting into one of the other forums of this category.
ma501th
Posts: 50
Joined: Tue Apr 08, 2008 7:31 pm

### how to compile the .bib file

Hi i am having problems getting the citation to be displayed in my pdf file. This is what is in my .tex file
\documentclass[a4paper,10pt]{book}\usepackage{times,a4wide}\usepackage{graphicx}\usepackage{amssymb}\usepackage{epstopdf}\DeclareGraphicsRule{.tif}{png}{.png}{convert #1 dirname #1/basename #1 .tif.png}\usepackage[round]{natbib} \title{My Project Report - Story Builders for Young Children}\author{Tanbir Hussain\\Supervisor: Dr R Kibble}\date{\today}                                           % Activate to display a given date or no date                                         % Activate to display a given date or no date\begin{document}\maketitle\def\thepage{\arabic{page}} \chapter{Introduction}It builds on foundations created by DonaldKnuth's system  The first is as follows:\begin{quote}\citet{ArticleA} Will this work\end{quote} \bibliographystyle{apalike}\bibliography{sav} \end{document} 

and this is what i have in my sav.bib file

@article{ ArticleA,	author = {Ann Author and A. Second Author and A. Third Author},	title = {The title of the paper},	journal = {The name of the journal},	year = {1927},	volume = 1,	number = 1,	pages = {1--100}	} 

Everytime i compile the .tex file i get error:
Package natbib Warning: Citation ArticleA' on page 2 undefined on input line 25.

thanks

yostsa
Posts: 11
Joined: Sat Apr 12, 2008 8:04 pm
Once you have compiled the .tex file using LaTeX or PDFLaTeX, you must run BibTeX on it, and the run LaTeX/PDFLaTeX twice more. That should do the trick.
-- Sandy

Stefan Kottwitz
Posts: 9550
Joined: Mon Mar 10, 2008 9:44 pm
Hi ma501th,