如题,有时候在写latex项目的时候,想改一下参考文献的引用格式为“作者+年份”,从而更加方便看到这篇论文是哪位作者在哪一年写的。故在此记录之,并记录Package natbib Error: Bibliography not compatible with author-year问题的解决方案。
在文章开始时,加入authoryear,例如:
原本是:\documentclass[preprint,12pt]{elsarticle}
改成这样就可以啦:\documentclass[preprint,12pt,authoryear]{elsarticle}