我已经设置了参考文献,并且之前在同样的格式(哈佛风格)下,所有引文和参考书目都可以完美运行,但是当我添加新的引文时,我的 pdf 输出就完全乱了。
当我这样做时它有效:
\documentclass[a4paper,12pt]{article}
\usepackage{natbib}
\bibliographystyle{plain}
\begin{document}
This is an essay about \cite{clinch2006environmental} and \cite{aubert2019environmental}.
\bibliography{EnvironmentalEssay}
\end{document}
我得到输出:
我想要哈佛风格,所以我改成:
\documentclass[a4paper,12pt]{article}
\usepackage[round]{natbib}
\bibliographystyle{plain}
\begin{document}
This is an essay about \citet{clinch2006environmental} and \citeyearpar{aubert2019environmental}.
\bibliography{EnvironmentalEssay}
\end{document}
但后来我突然明白了:
出现错误:\providecommand\NAT@force@numbers{}\NAT@force@numbers “包 natbib 错误:参考书目与作者年份引用不兼容”
警告:第一次引用时作者未定义,第二次引用时年份未定义。不过我觉得这很奇怪,因为我的 Bibtex 文件包含所有信息。
*编辑:这是我针对这两个来源的 Bibtex 条目:
@Article{aubert2019environmental,
author = {Aubert, Diane and Chiroleu-Assouline, Mireille},
journal = {European Economic Review},
title = {Environmental tax reform and income distribution with imperfect heterogeneous labour markets},
year = {2019},
pages = {60--82},
volume = {116},
abstract = {Text here xxx.},
publisher = {Elsevier},
}
@Article{clinch2006environmental,
author = {Clinch, J Peter and Dunne, Louise and Dresner, Simon},
journal = {Energy Policy},
title = {Environmental and wider implications of political impediments to environmental tax reform},
year = {2006},
number = {8},
pages = {960--970},
volume = {34},
abstract = {text here xxxx.},
publisher = {Elsevier},
}
它之前对所有命令都运行良好:
\citep{}
\citet{}
\citeyearpar{}
etc.
但是,自从我在文档中添加了新的引用后,就产生了错误。
我尝试过更改 natbib 上的选项,但没有任何效果。它完美运行的时候,我只有\usepackage[round]{natbib}
。
*编辑:我尝试使用 options[authoryear,round]
选项,但结果仍然相同。我现在还将 bibliographystyle 从 改为{plain}
`plainnat,但没有成功。
请指教。