Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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 ?

share|improve this question
2  
You seem to have no citations: do you have any in the real case? Did you run LaTeX, BibTeX, LaTeX, LaTeX? –  Joseph Wright Oct 28 '12 at 15:28
    
I am a very beginner in Latex. I did not at all use the \cite in the text, so there is no citation using Jabref referecing, but I cite without linking to the reference. Should i use cite to make it work ? Second, how can I run LaTeX, BibTeX, LaTeX, LaTeX? Sorry for trivial questions Thanks –  Irene Oct 28 '12 at 15:30
1  
Welcome to TeX.sx! –  hpesoj626 Oct 28 '12 at 15:40
1  
Welcome to TeX.sx! Your code is not a minimal working example (MWE), please see I've just been told I have to write a minimal example, what is that?. Most of the packages can removed here for our test case. I do not know Jabref, but I think, you need to create a bib file first, what then must picked up by some LaTeX code. This is surely not related to TeXnicCenter. –  Speravir Oct 28 '12 at 15:44
1  
BTW Bibliography in TeXnicCenter. –  Speravir Oct 28 '12 at 15:56
add comment

3 Answers

up vote 3 down vote accepted

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.

share|improve this answer
    
Thank you so much, it worked ! –  Irene Oct 28 '12 at 16:04
add comment

To run BibTeX just follow the image below.

enter image description here

share|improve this answer
1  
Awesome, Thank you –  Irene Oct 28 '12 at 16:06
add comment

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} 
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.