### Who is online

In total there are 4 users online :: 0 registered, 0 hidden and 4 guests (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: No registered users and 4 guests

### Partner Sites

bibliographiesBibTeXcitingAdd tags Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.

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.

Code: Select all  •  Open in writeLaTeX
%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

Posts: 16
Joined: Mon Aug 27th, 2012

### Re: Warning about empty Bibliography

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

Code: Select all  •  Open in writeLaTeX
\nocite{*}`

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

Stefan

Stefan_K

Posts: 6377
Joined: Mon Mar 10th, 2008
Location: Hamburg, Germany

### Re: Warning about empty Bibliography

Thank you for explaining this to me, Stefan_K.

Posts: 16
Joined: Mon Aug 27th, 2012

### Topic Tags

bibliographiesBibTeXciting