You can reset the width on the border. The needed value depends on the resolution settings of dvips
. E.g. with dvips -Ppdf
a value of 100 is okay, without -Ppdf
you can try 5.
\documentclass[a4paper,10pt]{article}
\usepackage{hyperref}
\usepackage{breakurl}
\hypersetup{pdfborder={0 0 100}}
\textwidth=3cm
\begin{document}
\url{long/long/long/long/long/long/blub/bla/bla}
\end{document}
Update: This question's OP himself has found a good solution between an extra \\
and a working hyperref.
With the help of the hyperref
package one can write (the example is changed to an unpublished
publication because there is, apparently, no journal):
@unpublished{koepke2009naturalness,
year={2009},
title={Naturalness in formal mathematics},
note={\\
\href{http://www.math.uni-bonn.de/people/koepke/Preprints/Naturalness_in_formal_mathematics.pdf}
{\nolinkurl{http://www.math.uni-bonn.de/people/}}
\\
\href{http://www.math.uni-bonn.de/people/koepke/Preprints/Naturalness_in_formal_mathematics.pdf}
{\nolinkurl{koepke/Preprints/Naturalness_in_formal_mathematics.pdf}}
},
author={Koepke, Peter}
}
which gives
If only one \href
is used, like
note={\\
\href{http://www.math.uni-bonn.de/people/koepke/Preprints/Naturalness_in_formal_mathematics.pdf}
{\nolinkurl{http://www.math.uni-bonn.de/people/}
\\
\nolinkurl{koepke/Preprints/Naturalness_in_formal_mathematics.pdf}
}
},
the link-active area spans the whole first line:
Original answer
An underfull hbox doesn't mean that there's necessarily something wrong. It is merely a warning.
Compare the bibliography entries of the following code.
The one with the extra \\
doesn't give a warning (but breaks the hyperlink, by the way), the other one does give a warning, but looks the same.
(The italic setting from the journal
field did mess up the spacing either way.)
Code
\documentclass[natbib]{svmono}
\usepackage{url}
\usepackage[showframe,pass]{geometry}
\begin{filecontents}{test.bib}
@article{koepke2009naturalness,
year={2009},
title={Naturalness in formal mathematics},
journal={Same Journal Name},
note={\\\url{http://www.math.uni-bonn.de/people/koepke/Preprints/Naturalness_in_}\\\url{formal_mathematics.pdf}},
author={Koepke, Peter}
}
@article{koepke2009naturalnessa,
year={2009},
title={Naturalness in formal mathematics},
journal={Same Journal Name},
note={\\\url{http://www.math.uni-bonn.de/people/koepke/Preprints/Naturalness_in_formal_mathematics.pdf}},
author={Koepke, Peter}
}
\end{filecontents}
\begin{document}
\cite{*}
\bibliographystyle{harvard}
\bibliography{test}
\end{document}
Output
Best Answer
Use the
p{10.0cm}
column specification, which require a length. This makes the column able to have line breaks: