這幾天寫論文的時候遇到了這樣一個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也太草了,冒着寫不完論文的風險我也要把它記下來。