2

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.

Xara
  • 131
  • 1
    Have you run bibtex? – Ian Thompson Jul 28 '14 at 07: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 07: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 07:23
  • Thanks it worked. I added \nocite{*} after \bibliograpghy – Xara Jul 28 '14 at 07: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 07:40

0 Answers0