在“biblatex”中使用“authoryear”或“authoryear-comp”引用样式时,链接超出文本边距

在“biblatex”中使用“authoryear”或“authoryear-comp”引用样式时,链接超出文本边距

当我使用biblatexwithauthoryearauthoryear-comp选项时,链接可能会超出为文本主体指定的边距。其他样式似乎正常工作。

在此处输入图片描述

\begin{filecontents*}{sample.bib}
@online{lovelace2015low,
    author = {Lovelace, Will},
    title = {{Low SCR Wind Integration and Mitigation}},
    url = {http://www.cce.umn.edu/documents/CPE-Conferences/MIPSYCON-PowerPoints/2015/PGLowSCRWindGenerationInstabilityIdentificationandMitigation.pdf},
    organization = {Minnkota Power Cooperative},
    date = {2015-11-11},
    urldate = {2019-05-20}
}
\end{filecontents*}



\documentclass{report}

\usepackage[x11names]{xcolor}

\usepackage{hyperref}
\hypersetup{citecolor=DodgerBlue3, urlcolor=Blue1, colorlinks=true}

\usepackage[style=authoryear-comp]{biblatex}
\addbibresource{sample.bib}

\begin{document}

\cite{lovelace2015low}

\printbibliography

\end{document}

答案1

负载xurl(之后biblatex):

% arara: pdflatex
% arara: biber
% arara: pdflatex
% arara: pdflatex
\documentclass{report}
\usepackage{filecontents}
\begin{filecontents*}{sample.bib}
    @online{lovelace2015low,
        author = {Lovelace, Will},
        title = {{Low SCR Wind Integration and Mitigation}},
        url={http://www.cce.umn.edu/documents/CPE-Conferences/MIPSYCON-PowerPoints/2015/PGLowSCRWindGenerationInstabilityIdentificationandMitigation.pdf},
        organization = {Minnkota Power Cooperative},
        date = {2015-11-11},
        urldate = {2019-05-20}
    }
\end{filecontents*}

\usepackage[x11names]{xcolor}

\usepackage{hyperref}
\hypersetup{citecolor=DodgerBlue3, urlcolor=Blue1, colorlinks=true}

\usepackage[style=authoryear-comp]{biblatex}
\usepackage{xurl}
\addbibresource{sample.bib}

\begin{document}

\cite{lovelace2015low}

\printbibliography

\end{document}

在此处输入图片描述

相关内容