在我的.bib
文件中,有以下两个条目:
@book{si20,
title = {Introduction to Econometrics with R},
author = {Schmelzer, Martin Arnold, Alexander Gerber, and Martin, Christoph Hanck},
url = {https://www.econometrics-with-r.org/},
urldate = {2020-10-02},
year = {2020}
}
@Article{pcalg,
title = {Causal Inference Using Graphical Models with the {R}
Package {pcalg}},
author = {Markus Kalisch and Martin M\"achler and Diego Colombo and
Marloes H. Maathuis and Peter B\"uhlmann},
journal = {Journal of Statistical Software},
year = {2012},
volume = {47},
number = {11},
pages = {1--26},
url = {https://www.jstatsoft.org/article/view/v047i11},
}
我的文档如下所示:
\documentclass{article}
\usepackage[utf8]{inputenc}
\title{Test citations}
\author{Jaime Sevilla}
\date{November 2020}
\usepackage[
backend=biber, natbib,
style=numeric
]{biblatex}
\addbibresource{name.bib}
\begin{document}
\maketitle
\section{Introduction}
\cite{si20}
\cite{pcalg}
\printbibliography
\end{document}
乍一看,我认为两个bib
条目的格式都正确。但只有第二个有效!
发生了什么事?我该如何修复第一个bib
条目?
答案1
看起来si20
条目中的作者字段缺少一些用于分隔作者的“and”。正确的格式si20
应如下所示:
@book{si20,
title = {Introduction to Econometrics with R},
author = {Hanck, Christoph and Arnold, Martin and Gerber, Alexander and Schmelzer, Martin},
url = {https://www.econometrics-with-r.org/},
urldate = {2020-10-02},
year = {2020}
}