LaTeX forum ⇒ BibTeX, biblatex and biberWarning about empty Bibliography Topic is solved

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
WalidSaladin
Posts: 17
Joined: Mon Aug 27, 2012 8:58 pm

Warning about empty Bibliography

Postby WalidSaladin » Wed Mar 06, 2013 1:01 pm

How do I address this warning?

LaTeX warning:Empty `thebibliography' environment on input line 3.


Here is a simplified version of my code. The preamble contains all the packages I have loaded so far. I attached the BibTex document.

  1. %Preamble begins
  2. \documentclass[a4paper,12pt]{book}
  3. \usepackage[utf8]{inputenc}
  4. \usepackage{parskip}
  5. \usepackage{subscript}
  6. \usepackage[margin=2cm]{geometry}
  7. \usepackage{caption}
  8. \usepackage{graphicx}
  9. %Preamble ends
  10.  
  11. \begin{document}
  12. This is an example.
  13.  
  14. \bibliography{FirstLatexDoc_lib}
  15. \bibliographystyle{plain}
  16. \end{document}
Attachments
FirstLatexDoc_lib.bib
(9.27 KiB) Downloaded 262 times

Tags:

User avatar
Stefan Kottwitz
Site Admin
Posts: 8253
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Wed Mar 06, 2013 2:31 pm

Very good minimal example. You just don't need to include unrelated packages, better omit them even if you normally load them.

You need to cite a reference, or use \nocite, to let references appear in the bibliography. For example, to print the whole bibliography, add



Otherwise only cited references appear. In this case, there are none, so the bibliography environment was empty.

Stefan
Site admin

WalidSaladin
Posts: 17
Joined: Mon Aug 27, 2012 8:58 pm

Postby WalidSaladin » Sun Mar 10, 2013 10:33 am

Thank you for explaining this to me, Stefan_K.


Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 2 guests