Biblatex。两个参考文献同名。当我更改名称时,我收到字符错误

Biblatex。两个参考文献同名。当我更改名称时,我收到字符错误

在我的 .bib 文件中,我有两个参考文献使用相同的参考文献名称(不是作者的名字。我猜应该有一个参考文献名称的专业术语)。当我从 .bib 文件中调用该名称时,我收到错误,其中\printbibliography位于何处。这两个参考文献是:

@article{lopez2011cavitation,
    title={Cavitation in elastomeric solids: I—A defect-growth theory},
    author={Lopez-Pamies, Oscar and Idiart, Martin I and Nakamura, Toshio},
    journal={Journal of the Mechanics and Physics of Solids},
    volume={59},
    number={8},
    pages={1464--1487},
    year={2011},
    publisher={Elsevier}
}

@article{lopez2011cavitation,
    title={Cavitation in elastomeric solids: II—Onset-of-cavitation surfaces for Neo-Hookean materials},
    author={Lopez-Pamies, Oscar and Nakamura, Toshio and Idiart, Mart{\'\i}n I},
    journal={Journal of the Mechanics and Physics of Solids},
    volume={59},
    number={8},
    pages={1488--1505},
    year={2011},
    publisher={Elsevier}
}

我该如何在文中引用这两个可区分的参考文献。任何建议都值得赞赏。

平均能量损失

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[backend=biber,style=chicago-authordate,]{biblatex}
\addbibresource{TexStackExc.bib}
\begin{document}
    \renewcommand{\labelenumi}{\arabic{enumi}}
    \begin{enumerate}
        \item \cite{alopez2011cavitation}
        \item \cite{blopez2011cavitation}
    \end{enumerate} 
    \newpage
    \printbibliography  
\end{document}

并且的内容TexStackExc.bib

@article{alopez2011cavitation,
    title={Cavitation in elastomeric solids: I—A defect-growth theory},
    author={Lopez-Pamies, Oscar and Idiart, Martin I and Nakamura, Toshio},
    journal={Journal of the Mechanics and Physics of Solids},
    volume={59},
    number={8},
    pages={1464--1487},
    year={2011},
    publisher={Elsevier}
}

@article{blopez2011cavitation,
    title={Cavitation in elastomeric solids: II—Onset-of-cavitation surfaces for Neo-Hookean materials},
    author={Lopez-Pamies, Oscar and Nakamura, Toshio and Idiart, Martin I},
    journal={Journal of the Mechanics and Physics of Solids},
    volume={59},
    number={8},
    pages={1488--1505},
    year={2011},
    publisher={Elsevier}
}

作为编辑回答

错误根源是作者姓名Mart{\'\i}n。我{\'\i}用替换了i并删除了临时文件,现在它可以打印参考书目了,没有任何错误。

答案1

当您使用一个键两次(示例中为 lopez2011cavitation)时,biber 将忽略第二个条目。它会在 .blg 文件中写入有关此情况的警告:

  [252] Utils.pm:169> WARN - Duplicate entry key: 'lopez2011cavitation' in file 'test.bib', skipping ...

这意味着该条目中的错误不可见。

当您更改键名称以避免重复时,第二个条目也会被使用,并且 \'\i导致已知错误,例如从 Biber 1.9 升级到 Biber 2.1 后出现输入编码错误, 或者https://tex.stackexchange.com/a/268579/2388(它们是更多类似的问题)。

相关内容