BibTeX, biblatex and biberWarning about empty Bibliography

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

Warning about empty Bibliography

Post by WalidSaladin »

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

%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
(9.27 KiB) Downloaded 1223 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10323
Joined: Mon Mar 10, 2008 9:44 pm

Warning about empty Bibliography

Post by Stefan Kottwitz »

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

\nocite{*}
Otherwise only cited references appear. In this case, there are none, so the bibliography environment was empty.

Stefan
LaTeX.org admin
WalidSaladin
Posts: 17
Joined: Mon Aug 27, 2012 8:58 pm

Re: Warning about empty Bibliography

Post by WalidSaladin »

Thank you for explaining this to me, Stefan_K.
Post Reply