LaTeX users 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

Warning about empty Bibliography Topic is solved

LaTeX Forum: BibTeX, biblatex and biber

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

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 online LaTeX editor
%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 205 times
WalidSaladin
 
Posts: 17
Joined: Mon Aug 27th, 2012

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 online LaTeX editor
\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: 7433
Joined: Mon Mar 10th, 2008
Location: Hamburg, Germany

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, biblatex and biber

LaTeX users online

Users browsing this forum: No registered users and 3 guests