[Tex/LaTex] Achieve Linebreak in DOI in biblatex

biblatexdoiline-breakingxetex

In my references (using XeLaTeX, biblatex and Biber) I have one specific DOI that is hanging over more than a centimeter after line-break.

All other DOI are correctly wrapped. Even inserting a (wrong space in the DOI does not help at all). How can I fix that?

I invoke biblatex using:

 \usepackage[safeinputenc,uniquelist=false,maxnames=2,%
             minnames=1,maxbibnames=99,style=authoryear,url=false,%
             dashed=false,firstinits=true,backend=biber]{biblatex}

and hyperref sign:

\usepackage[hidelinks,pdfa,pdfencoding=auto,pdfusetitle,hypertexnames=false]{hyperref}

This is what it looks like:
enter image description here

P.S.: I know I can use:
\setcounter{biburlnumpenalty}{100}
but I'd prefer to perform a manual linebreak using some trick

Best Answer

Audrey wrote the comment:


You can reset the break penalty for specific bibliography entries. Examples can be found here: Avoiding inelegant splits on URLs and Biblatex breakline Doi


Breaks in name parts are controlled by the lownamepenalty and highnamepenalty counters. Details can be found in biblatex.def. These penalties default to no more than \hyphenpenalty, which is normally very low. None of the penalties are reset. For URLs definitions are hooked into \bibsetup and \citesetup. Other penalties are defined globally.

Related Question