My bibliography causes the following warning in XeLaTeX:
Underfull \hbox (badness 1048) in paragraph at lines 11--16
That one is caused by the first bib entry. However, I can solve it by modifying the second bib entry!
A minimal example is:
\documentclass{scrreprt}
\usepackage{xltxtra}
\usepackage{polyglossia}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{Book1,
author = {Some Author},
title = {Some title title title title title title title title},
publisher = {Somepublisher},
year = {2000},
isbn = {978-0-12-179152-0},
url = {http://www.example.com/testtesttesttesttesttesttes},
}
@book{Book2,
author = {G and W},
year = {2008},
}
\end{filecontents}
\begin{document}
\nocite{Book1}
\nocite{Book2}
\bibliographystyle{alphadin}
\bibliography{\jobname}
\end{document}
The underfull \hbox appears in the ISBN part of the first bib entry. However, if I change the second author from G and W to G (which shortens the label from GW08 to G08), the warning vanishes and the ISBN is broken differently.
Example 2:
\documentclass{scrreprt}
\usepackage{xltxtra}
\usepackage{polyglossia}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{Book1,
author = {Some Author},
title = {Some title title title title title title title title},
publisher = {Somepublisher},
year = {2000},
isbn = {978-0-12-179152-0},
url = {http://www.example.com/testtesttesttesttesttesttes},
}
@book{Book2,
author = {G},
year = {2008},
}
\end{filecontents}
\begin{document}
\nocite{Book1}
\nocite{Book2}
\bibliographystyle{alphadin}
\bibliography{\jobname}
\end{document}
Questions:
- Why is that? Why does the short name of the second bib entry influence some line break in the first bib entry?
- How should I deal with that? How do I solve this LaTeX warning in a correct way?
Book2entry also changes the label "G08" vs "GW08". The labels control the right margin of the entries, you will note a very subtle shift in the alignment on the right hand side, that is because "G08" is shorter than "Aut00" which is shorter than "GW08". So if both G and W are present the longest label is "GW08" and the alignment is done using the length of this label, but if only G is present then the longest label is "Aut00" and that is used to set the indent. – moewe Sep 09 '15 at 09:26