Featured Book

LaTeX Beginners Guide

Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 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 3 guests

Partner Sites

TeXwelt - Fragen und Antworten goLaTeX
TeXblog
TeXnicCenter
TeXample

Warning about empty Bibliography Topic is solved

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

Warning about empty Bibliography

Postby WalidSaladin on Wed Mar 6th, 2013

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
(9.27 KiB) Downloaded 98 times
WalidSaladin
 
Posts: 17
Joined: Mon Aug 27th, 2012

Re: Warning about empty Bibliography  Topic is solved

Postby Stefan_K on Wed Mar 6th, 2013

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
LaTeX Community Administrator
User avatar
Stefan_K
Site Admin
 
Posts: 6414
Joined: Mon Mar 10th, 2008
Location: Hamburg, Germany

Re: Warning about empty Bibliography

Postby WalidSaladin on Sun Mar 10th, 2013

Thank you for explaining this to me, Stefan_K.
WalidSaladin
 
Posts: 17
Joined: Mon Aug 27th, 2012


Topic Tags

bibliographiesBibTeXciting

Return to BiBTeX

Who is online

Users browsing this forum: No registered users and 3 guests