我遇到了以下错误。我想在论文中引用某篇报告,但不起作用。
- 存在未定义的引用。
- 引用‘jeff2000’未定义。
这是MWE:
\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{fancyhdr}
\usepackage{amssymb}
\usepackage{apacite}
\bibliographystyle{apacite}
\begin{document}
\cite{Jeff2000}
\bibliography{RefEAINew}
\end{document}
RefEAINew.bib
包含
@report{Jeff2000,
author = {Jeff Borland, and Peter Dawkins, and David Johnson, and Ross Williams},
title = {Returns to Investment in Higher Education},
institution = {University of Melbourne},
year = {2000},
}
答案1
删除作者姓名之间的错误逗号后,文档内容如下:
\documentclass{article}
\usepackage{apacite}
\bibliographystyle{apacite}
\begin{filecontents}{\jobname.bib}
@report{Jeff2000,
author = {Jeff Borland and Peter Dawkins and David Johnson and Ross Williams},
title = {Returns to Investment in Higher Education},
institution = {University of Melbourne},
year = {2000}}
\end{filecontents}
\begin{document}
\cite{Jeff2000}
\bibliography{\jobname}
\end{document}