## LaTeX forum ⇒ BibTeX, biblatex and biber ⇒ Warning about empty Bibliography Topic is solved

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Posts: 17
Joined: Mon Aug 27, 2012 8:58 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.

%Preamble begins\documentclass[a4paper,12pt]{book}\usepackage[utf8]{inputenc}\usepackage{parskip} \usepackage{subscript}\usepackage[margin=2cm]{geometry} \usepackage{caption}\usepackage{graphicx}%Preamble ends \begin{document}This is an example. \bibliography{FirstLatexDoc_lib}\bibliographystyle{plain} \end{document}
Attachments
FirstLatexDoc_lib.bib

Tags:

Stefan Kottwitz
Posts: 9557
Joined: Mon Mar 10, 2008 9:44 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

\nocite{*}`

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

Stefan