参考书目中的 doi 断行

参考书目中的 doi 断行

我使用 biblatex 生成了参考书目。在一个参考文献中,似乎在分割 Doi 时出现了问题,所以现在 doi 越过了右侧的线。我尝试使用我在此网站上找到的不同方法解决这个问题,但我不知道该怎么做。

感谢您的帮助!

在此处输入图片描述

\begin{filecontents}[overwrite]{references.bib}
@article{ProbelmLineBreacky,
    title = {{How to get a line breack}},
    year = {2019},
    journal = {Journal},
    author = {Smith and Mayer},
    number = {3},
    month = {9},
    pages = {69},
    volume = {7},
    publisher = {Publisher},
    url = {https://000000000},
    doi = {10.3390/something8838339},
    issn = {2227-9059},
    pmid = {31505812},
    keywords = {some}
}
\end{filecontents}

\documentclass[11pt,a4paper,titlepage,oneside]{memoir} 

\usepackage[hyphens]{url}
\usepackage[linkcolor=black,colorlinks=true,citecolor=black,filecolor=black]{hyperref}

\usepackage[sorting=none]{biblatex}
\addbibresource[location=remote]{references.bib}

\begin{document}
\printbibliography
\end{document}

答案1

xurl之后使用包biblatex

\begin{filecontents}[overwrite]{references.bib}
@article{ProbelmLineBreacky,
    title = {Title},
    year = {2019},
    journal = {Journal},
    author = {Smith},
    number = {3},
    pages = {69},
    volume = {7},
    doi = {10.3390/something8838339},
}
\end{filecontents}

\documentclass{memoir} 

\usepackage[linkcolor=black,colorlinks=true,citecolor=black,filecolor=black]{hyperref}

\usepackage{biblatex}
\usepackage{xurl} % after biblatex
\addbibresource{references.bib}

\begin{document}
\nocite{*}
\printbibliography
\end{document}

在此处输入图片描述

相关内容