更有趣的是,在我为 SE 制作的 MWE 中,它们都引用了。我无法重现 MWE 中的错误,在文档中只有当我开始输入时WorldBank2017
,whileWorldBank2012
被建议为键\citep{
,但如果我完成引用并编译,它只会给出问号和相应的错误
Package natbib Warning: Citation `WorldBank2012' on page 6 undefined on input line 125
你知道为什么会这样吗?
不是 MWE
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[authoryear]{natbib}
\title{Stackexchange}
\date{July 2021}
\begin{document}
\maketitle
\section{Introduction}
The world development report \citep{WorldBank2012}. And another one \citep{WorldBank2017}
\bibliography{bib.bib}
\bibliographystyle{apalike}
\end{document}
Bib 文件
@techreport{WorldBank2012,
address = {Washington D.C.},
author = {{World Bank}},
institution = {World Bank},
pages = {},
series = {World Development Report},
title = {{Gender Equality and Development}},
url = {https://openknowledge.worldbank.org/handle/10986/4391},
year = {2012}
}
@techreport{WorldBank2017,
address = {Washington D.C.},
author = {{World Bank}},
institution = {World Bank},
pages = {06--20},
series = {1},
title = {{Maharashtra - Poverty, growth, and inequality}},
url = {https://documents.worldbank.org/en/publication/documents-reports/documentdetail/806671504171811149/maharashtra-poverty-growth-and-inequality},
year = {2017}
}
更新
它似乎确实引用了该条目,只是输入了一个问号,而不是作者-年份格式。事实上,参考条目也缺少作者姓名。