这几天写论文的时候遇到了这样一个bug
开始 : D:/CodeIDE/LaTeX/texlive/bin/win32/bibtex.exe "main-LaTeX-2021"
This is BibTeX, Version 0.99d (TeX Live 2020/W32TeX)
The top-level auxiliary file: main-LaTeX-2021.aux
The style file: aaai21.bst
Illegal, another \bibstyle command---line 36 of file main-LaTeX-2021.aux
: \bibstyle
: {aaai}
I'm skipping whatever remains of this command
Database file #1: ref.bib
(There was 1 error message)
在国内国外网站怎么搜都没有搜到结果,最后偶然找到了一个网址
说是参考文献格式的宏包预定义里面已经声明过了,不用在latex结尾再次声明了,删掉即可。
即
\bibliographystyle{aaai}
\bibliography{ref}
变成
\bibliography{ref}
就不会再报这个错误了(aaai2020没有这个问题2021就有这个问题了)。
这个bug也太草了,冒着写不完论文的风险我也要把它记下来。