使用 biblatex 来打破 URL

使用 biblatex 来打破 URL

我知道biblatex提供了各种选项来调整参考书目中的 URL 中断,但在以下示例中似乎没有任何效果:

    \begin{filecontents}{\jobname.bib}
    @book{Voigt.A:1906a,
        Address = {Leipzig},
        Author = {Voigt, Andreas},
        Publisher = {Göschen'sche Verlagshandlung},
        Subtitle = {Dreihundert Vorträge},
        Title = {Die Sozialen Utopien},
        Url = {http://www.archive.org/details/diesozialenutop00voiggoog},
        Urldate = {2011-10-29},
        Year = {1906}
    }
    }
    \end{filecontents}
    \documentclass[fontsize=12pt,paper=a4,]{scrartcl}
    \usepackage[utf8]{inputenc}
    \usepackage[ngerman]{babel}
    \usepackage{biblatex}
    \addbibresource{\jobname.bib}
    \setcounter{biburlnumpenalty}{10000}
    \setcounter{biburllcpenalty}{10000}
    \setcounter{biburlucpenalty}{10000}
    \begin{document}
    \cite{Voigt.A:1906a}
    \printbibliography
    \end{document}

我将所有相关计数器设置为最大值,但这不会影响结果。有趣的细节:当我设置fontsize为 13 时,它会破坏 URL。

答案1

罚款10000禁止休息一下。将惩罚设置为较小的值:

\documentclass[fontsize=12pt,paper=a4,]{scrartcl}
    \usepackage[utf8]{inputenc}
    \usepackage[ngerman]{babel}
    \usepackage{biblatex}
    \addbibresource{bib.bib}
    \setcounter{biburlnumpenalty}{100}
    \setcounter{biburllcpenalty}{100}
    \setcounter{biburlucpenalty}{100}
    \begin{document}
    \cite{Voigt.A:1906a}
    \printbibliography
    \end{document}

在此处输入图片描述

相关内容