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
http://www.latex-community.org/forum/viewtopic.php?f=5&t=22782
www.latex-community.org
crawl=CC-MAIN-2016-18
32776
application/http; msgtype=response
sha1:M42HUJJC2U4IN3JYHXEIN4YTBPJBLKNU
<urn:uuid:109133d8-2012-4128-80e5-350106a1fb56>
2016-05-01T00:24:19Z
78.46.26.59
sha1:DAMRAY2F76CZJHAHNBQHIURC27WAWKM2
<urn:uuid:3b7bbecb-d62b-41b7-a242-d373f8a80904>
http://www.latex-community.org/forum/viewtopic.php?f=5&t=22782
response
<urn:uuid:e5587e69-0e43-46e6-8966-404fc7770a1c>
robots: classic
hostname: ip-10-239-7-51.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2016-18
operator: CommonCrawl Admin
description: Wide crawl of the web for April 2016
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf