I'm using biblatex and I'm quoting a commit on github that looks like this:
http://github.com/torvalds/linux/commit/693d92a1bbc9e42681c42ed190bd42b636ca876f
The biblatex-entry looks like this,
@online{Torvalds11,
author = {Linus Torvalds},
title = {Linux Makefile: Commit 693d92a},
url = {http://github.com/torvalds/linux/commit/693d92a1bbc9e42681c42ed190bd42b636ca876f}
}
The result looks like this.
UI tried to insert a space character but that didn't work. How to force latex to break that url at the end of the line?
MWE:
\documentclass{report}
\usepackage[english]{babel}
\usepackage{lipsum}
\usepackage{biblatex}
\bibliography{mwe}
\usepackage[babel]{csquotes}
\usepackage{hyperref}
\begin{document}
\lipsum[100]\cite{Torvalds11}
\printbibliography
\end{document}
I found this: How to deal with bibliography items containing long URLs?
But the suggested answers are not compatible with my document as I'm using hyperref
package already and it should automatically break urls at the end of the lines. I guess this url is a special problem.
\-
)in the URL? Does\hyphenation
remove the error? Maybe try out\hyp
from thehyphenat
package. (cf. Wikibooks article on Hyphenation)