2

This question already has an answer here:

I have created a .bib file using Jabref. Now I placed this file in the same folder where all my other latex fles are present. I am adding the reference to this .bib file using this:

\section*{References}
\bibliographystyle{elsarticle-num}
\bibliography{jab}

I am compiling my latex code on WinEdt but afterwards the file generated does not contain any references. Reference part is just blank.

Please guide me in this regard.

marked as duplicate by Johannes_B, Torbjørn T., Marco Daniel, egreg, gernot Feb 12 '17 at 10:11

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    Have you run bibtex? – Ian Thompson Jul 28 '14 at 7:16
  • 1
    And did you actually cite something? Only cited entries are listed, unless you issue an \nocite{*} (plus latex, bibtex, latex, latex) which lists everything from the .bib file. – daleif Jul 28 '14 at 7:20
  • @daleif I have not made much citations yet. But when I run bibtex, it says \no bibstyle command.... . I added \nocite{*} above \bibliography but still nothing appears. – Xara Jul 28 '14 at 7:23
  • Thanks it worked. I added \nocite{*} after \bibliograpghy – Xara Jul 28 '14 at 7:39
  • \nocite{*} can be anywhere in the document. The important thing is the latex, bibtex, latex, latex (at least when you have normal citations, like \cite – daleif Jul 28 '14 at 7:40