4

I have a bib file in Jabref. Once the .tex file is compiled, the bibliography section appears but it is all empty.

Here is an example of my .tex file:

\documentclass[a4paper,oneside,11pt]{book} 

\usepackage[english, french]{babel}
\usepackage[super]{natbib}


\bibliographystyle{authordate1}
\bibliography{Bibpap3}
\addcontentsline{toc}{chapter}{Bibliography}

\end{document}

Any insights ?

Speravir
  • 19,491
Irene
  • 53

3 Answers3

5

JabRef is a program for managing BibTeX database (.bib) files but does not directly affect what happens in LaTeX. Adding a database to a .tex file does not add in the citations. You need either \cite or \nocite: the latter adds references to the bibliography without a citation in the text

\begin{filecontents}{\jobname.bib}
@article{demo1,
  author = {Other, A. N.},
  journal = {J. Irrep. Res.},
  title = {Some things we did},
  year  = {2012},
}
@article{demo2,
  author = {Nobacon, D.},
  journal = {J. Chumb.},
  title = {Tubthumping},
  year  = {2012},
}
\end{filecontents}
\documentclass{article}
\usepackage[super]{natbib}
\bibliographystyle{unsrtnat}
\begin{document}
Some text \cite{demo1} more text\nocite{demo2}.
\bibliography{\jobname}
\end{document}

You will need to run LaTeX, then BibTeX, then LaTeX twice for the document to be complete.

Joseph Wright
  • 259,911
  • 34
  • 706
  • 1,036
1

One additional source of this error is if you are citing multiple authors in one block, there can be no white-space between the authors.

This works:

\cite{smith2004,smith2005}

This does not work

\cite{smith2004, smith2005} 
1

To run BibTeX just follow the image below.

enter image description here

Sigur
  • 37,330