在使用natbib编译书稿时,LaTex报错(但生成的PDF文件正确):
    Package natbib Error: Bibliography not compatible with author-year citations. (natbib)
    Press <return> to continue in numerical citation style.

该错误信息表示文献条目(bib文件中的内容)与“作者-年”的引用格式不兼容,即有的文献缺少author或year字段,不能用“作者-年”引用格式。有两种解决方案:

1. 确保所有文献条目均含有author字段和year字段;

2. 在调用natbib宏包时,使用numbers参数,即:
   \usepackage[square, comma, sort&compress, numbers]{natbib}

我采用第二种方式后,编译书稿不再出现这一错误。

用户登录