0

I am currently write some papers, and i just find out that some of DOI links doesn't get breaked.

I have already breaklinks=true in hyperref, but it still doesn't work...

looks like this: enter image description here

here is a minimal example for it:

\RequirePackage{filecontents}

\begin{filecontents}{bib.bib}
@ARTICLE{fspresult_fitting, 
    author={Riss D. and Hamzavi J.S. and Selberherr A. and Kaider A. and Blineder M. and Starlinger V. and Gstoettner W. and Arnoldner C.}, 
    journal={Otology \& Neurotology}, 
    title={Envelope versus fine structure speech coding strategy: a crossover study}, 
    year={2011}, 
    volume={32}, 
    number={7}, 
    pages={1094-1101}, 
    doi={10.1097/MAO.0b013e31822a97f4}, 
    month={September},
}

\end{filecontents}


\documentclass[12pt, a4paper, bibliography=totoc, listof=totoc, numbers=noendperiod, abstracton, parskip=half, headsepline
%, plainheadsepline
]{scrreprt}
\usepackage[hmargin=2cm, vmargin=3cm]{geometry}
% for back reference in bibliography
\usepackage[hidelinks,breaklinks=true]{hyperref}

% for biblatex with biber
\usepackage[backend=biber,sorting=none, maxnames=5]{biblatex}


\addbibresource{bib.bib}

\begin{document}
cite test \cite{fspresult_fitting}.

%%% bibliography
\printbibliography
\end{document}
2

You can define a command that allows the DOI to break:

\documentclass[12pt, a4paper, bibliography=totoc, listof=totoc, numbers=noendperiod, abstracton, parskip=half, headsepline
%, plainheadsepline
]{scrreprt}
\usepackage[hmargin=2cm, vmargin=3cm]{geometry}
% for back reference in bibliography
\usepackage[hidelinks,breaklinks=true]{hyperref}

% for biblatex with biber
\usepackage[backend=biber,sorting=none, maxnames=5]{biblatex}

\usepackage{expl3}
\ExplSyntaxOn
\newcommand \breakDOI[1]
 {
  \tl_map_inline:nn { #1 } { \href{http://dx.doi.org/#1}{##1} \penalty0 \scan_stop: }
 }
\ExplSyntaxOff

\DeclareFieldFormat{doi}{%
  \mkbibacro{DOI}\addcolon\space
  {\breakDOI{#1}}}

\addbibresource{bib.bib}



\begin{document}
cite test \cite{fspresult_fitting}.

%%% bibliography
\printbibliography
\end{document}

enter image description here

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.