I get this error and I really don't know how to handle it.
I saw similar questions here and I've tried the solutions, but it didn't work.
\documentclass[a4paper,12pt,fleqn]{book} %{scrartcl}
\usepackage{fullpage}
\usepackage[latin1]{inputenc}
\usepackage[ngerman, english]{babel}
\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{amsbsy}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{natbib}
\usepackage{dsfont}
\usepackage{enumerate}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{placeins}
\usepackage[nottoc,numbib]{tocbibind}
\usepackage{natbib}
\usepackage[most]{tcolorbox}
\usepackage{subcaption}
\usepackage{url}
\begin{document}
\bibliographystyle{plainnat}
\bibliography{Bibliografy}
\end{document}
Bib-file:
@article{wikipedia1,
title = "Scripting language",
author = "[1]",
url = "http://en.wikipedia.org/wiki/Scripting_language"
}
ERROR – message:
Underfull \hbox (badness 10000) in paragraph at lines 902--904
[47] (/tmp/.thesis.tex.bbl [48]
Chapter 5.
Package natbib Warning: Empty `thebibliography' environment on input line 8.
What should I do?
Thanks!
Best Answer
If you don't provide any
\cite
commands, then BibTeX (and LaTeX) won't know which entries inBibliografy.bib
to typeset: All of them? Just a few of them -- and, if so, which ones?The consequence of having a
\bibliography
directive but no\cite
commands is the warning -- not an error, by the way, "just" a warning -- aboutor its
natbib
-based equivalent, viz.,The upshot: Do provide
\cite
commands!By the way, if you want all entries in the bib file to be typeset but, for some reason, do not want to
\cite
the entries explicitly, you could typeprior to executing
\bibliography{Bibliografy}
.