这个参考代码有什么问题?

这个参考代码有什么问题?

我正在尝试编译一份 latex 文档,但 bbl 文件中出现了一个奇怪的错误。具体来说,某个参考代码片段给编译器带来了错误:

@inproceedings{FEPPS04,
  author    = {Paola Flocchini and
               Antonio Mesa Enriques and
               Linda Pagli and
               Giuseppe Prencipe and
               Nicola Santoro},
  title     = {Efficient Protocols for Computing the Optimal Swap Edges of a                    Shortest Path Tree},
  booktitle = {Exploring New Frontiers of Theoretical Informatics, {IFIP} 18th World
               Computer Congress, {TC1} 3rd International Conference on Theoretical
               Computer Science (TCS2004), 22-27 August 2004, Toulouse, France},
  pages     = {153--166},
  year      = {2004},
  url       = {http://dx.doi.org/10.1007/1-4020-8141-3_14},
  doi       = {10.1007/1-4020-8141-3_14},
  timestamp = {Wed, 16 Jul 2014 12:43:29 +0200},
  biburl    = {http://dblp.uni-trier.de/rec/bib/conf/ifipTCS/FlocchiniEPPS04},
  bibsource = {dblp computer science bibliography, http://dblp.org}
}

知道可能是什么问题吗?我在 bbl 中有几个引用,但其他引用在编译过程中都没有导致任何问题。如果其他方法都不起作用,我会用另一个引用替换这个引用,但我想知道它可能是什么问题,因此我在这里提问。

答案1

由于 URL 字符串相当长,并且字段urldoi字段都包含_(下划线)字符,因此我建议您加载网址包裹。

在此处输入图片描述

\documentclass{article} % or some other document class
\begin{filecontents}[overwrite]{mybib.bib}
@inproceedings{FEPPS04,
  author    = {Paola Flocchini and Antonio Mesa Enriques and Linda Pagli and Giuseppe Prencipe and Nicola Santoro},
  title     = {Efficient Protocols for Computing the Optimal Swap Edges of a Shortest Path Tree},
  booktitle = {Exploring New Frontiers of Theoretical Informatics, {IFIP} 18th World Computer Congress, {TC1} 3rd International Conference on Theoretical Computer Science (TCS2004), 22--27 August 2004, Toulouse, France},
  pages     = {153--166},
  year      = {2004},
  url       = {http://dx.doi.org/10.1007/1-4020-8141-3_14},
  doi       = {10.1007/1-4020-8141-3_14},
  timestamp = {Wed, 16 Jul 2014 12:43:29 +0200},
  biburl    = {http://dblp.uni-trier.de/rec/bib/conf/ifipTCS/FlocchiniEPPS04},
  bibsource = {dblp computer science bibliography, http://dblp.org}
}
\end{filecontents}

\usepackage[T1]{fontenc}

\usepackage[maxbibnames=5]{biblatex}
\addbibresource{mybib.bib}

\usepackage{xurl}
\usepackage[colorlinks,allcolors=blue]{hyperref} % optional

\begin{document}
\cite{FEPPS04}
\printbibliography
\end{document}

相关内容