First I should say that I don't have much experience with LaTeX.
I'm using BibLaTeX and Biber.
My Problem: I have a (justified) bibliography with long URL's containing long words. BibLaTeX makes a linebreak at a place with a slash. But I want to make that linebreak in the following word.
In the minimal example: I want to do the linebreak at: Markt-beobachtung.
The aim is that in the second line there aren't that big spaces between the letters, words, slashes. And that the second line doesn't start with //
.
I'm trying to do this for 3 hours now, so I really appreciate your help.
Here is the .tex
file.
\documentclass[oneside]{scrbook}
\usepackage[backend=biber,style=alphabetic]{biblatex}
\usepackage[ngerman]{babel}
\bibliography{test_bib.bib}
\begin{document}
\cite{bundesnetzagentur}
\printbibliography
\end{document}
And that's the test_bib.bib
:
@ONLINE{bundesnetzagentur,
author = {Bundesnetzagentur},
title = {Teilnehmerentwicklung im Mobilfunk},
year = {2012},
url = {http://www.bundesnetzagentur.de/DE/Sachgebiete/Telekommunikation/Marktbeobachtung/Mobilfunkteilnehmer/Mobilfunkteilnehmer_node.html },
hyphenation=ngerman
}
Best Answer
The package
biblatex
loads the packageurl
. The list of characters that allow line-breaks is given by\UrlBreaks
and\UrlBigBreaks
, which have the format\do\c
for each characterc
. For more information read the documentation.The default setting of
\UrlBreaks
isTo allow more break points you can add
for ordinary symbols and you can do
for breakpoints after letters.
In the same way you can setup the command
\UrlNoBreaks
to define symbols/letters where no linebreaks are allowed. The default setting is:The commands using the special symbol
@
. So you need\makeatletter
/\makeatother
. Please refer the question What do\makeatletter
and\makeatother
do? for more information.