[Tex/LaTex] BibTeX and Jabref

bibtexjabref

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 ?

Best Answer

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.

Related Question