[Tex/LaTex] Problem with generating Reference list (no bbl file generated?)

bibliographiesbibtexjabrefmiktextexmaker

I am just starting with LaTeX so I am sure I have made a bunch of silly mistake on the way. But as of yesterday I am stuck with no solution. So here is a bit of background:

Win7, installed MikeTex (with auto-installed package setting) and using TexMaker for editing, and installed JabRef for creating bib-files.

So I have created a .bib file with several entries, and put it in the same directory as my .tex file. And yet when I try to generate the reference list by invoking /cite{…}, the result list it is empty, and there was warning of:

LaTeX Warning: Citation `Duffie2001' on page 1 undefined on input line 8.
No file foo.bbl.

Here is the test .tex file:

\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[applemac]{inputenx}     

\begin{document}

This is my first document with a bibliography generated by Bib\TeX. Now I cite an article by Duffie\cite{Duffie2001}.

\bibliographystyle{plain}
\bibliography{foo}    

\end{document}

I also tried \nocite to find the whole list but to no avail. All I got was just an empty reference list.

I read some of the older posts here with similar problem and I used a minimal-application to test out my bib, foo.tex to try to work with it. And I encountered similar problem.

I have also read that for everytime the .bib is read into the TexMaker, an aux file will be introduced with the citation appended to it. And indeed there is such file, but I still can't generate .bbl file. Please help.

Here is the foo.bib file generated by Jabref

% This file was created with JabRef 2.6.
% Encoding: Cp1252

@ARTICLE{Bjork2008,
author = {Bjork, Tomas},
title = {{Topics in Interest Rate Theory}},
journal = {Handbooks in OR \& MS},
year = {2008},
volume = {15},
pages = {377-435},
timestamp = {2011.03.09} }

@BOOK{Duffie2001,
title = {{Dynamic Asset Pricing Theory}},
year = {2001},
author = {Duffie, Darrell},
edition = {3}
}

@BOOK{Oksendal2003,
title = {{Stochastic Differential Equations – An Introduction with Applications}},
year = {2003},
author = {Oksendal, Bernt},
edition = {6}
}

here is the .aux file that's generated:

\relax
\citation{Duffie2001}
\bibstyle{plain}
\bibdata{foo}

I have attached several files(MWA that was used here before, log file, and the bib file)

Here is the screen-cap of the setting and quick-build screen:

http://i.stack.imgur.com/A4YtB.png
http://i.stack.imgur.com/fCWYu.png

Best Answer

Thank you everyone!

I have experimented a bit further, and some nice folk at LaTex community helped me figure out what's wrong.
In my 'Configure Texmaker', i actually had the wrong setting (as you can see form the screen cap)
I changed it back to "bibtex %.aux" and now it works!

And I also set the quickBuild to

latex    
bibtex    
latex    
pdfLatex   
Pdf Viewer

now it builds the bll and view the pdf automatically. Thank you so much everyone!

P.S. Thank you lockstep, from now on I will use the code button.
P.P.S.And TH, yea, that was the problem, I set the JabRef in the bibTex (I naively thought JabRef will help me compile the bib file).

Related Question