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:
https://i.stack.imgur.com/A4YtB.png
https://i.stack.imgur.com/fCWYu.png
bibtex
?bibtex
at the stage when TeXMaker would ordinarily runbibtex
to generate a.bbl
file from your.bib
file. Replacing "C:/Program Files (x86)/JabRef/JabRef.exe" withbibtex
should fix your problem.blg
, because it contains the errors of thebibtex
compilation ... in my case the\bibliographystyle{plain}
was missing and could find this error thanks to this.blg
file .... also the following works!latex bibtex latex pdfLatex Pdf Viewer