在Visual Studio Code和LaTeX-Workshop中,生成的pdf无法包含参考文献。但是在TeXworks中,.tex文件可以成功编译。在Visual Code中,编译器日志只显示了两个错误,但没有指出错误的具体内容。
这是编译器的日志。
This is BibTeX, Version 0.99d (TeX Live 2019/W32TeX)
The top-level auxiliary file: main.aux
The style file: ieeetr.bst
Database file #1: refs.bib
I was expecting an "="---line 967 of file refs.bib
:
: author={G. {Zhao} and K. {Xu} and L. {Xu} and B. {Wu}},
(Error may have been on previous line)
I'm skipping whatever remains of this entry
Repeated entry---line 987 of file refs.bib
: @misc{liu2018large
: ,
I'm skipping whatever remains of this entry
Warning--empty year in nasrcomprehensive
Warning--empty year in melis2019exploiting
Warning--empty year in wang2019beyond
Warning--empty year in truex2018hybrid
Warning--empty booktitle in huang2008labeled
Warning--empty year in ateniese2013hacking
Warning--empty year in ganju2018property
Warning--empty year in song2017machine
(There were 2 error messages)
答案1
我发现有两个问题。
首先,尝试删除双重定义引用
@misc{liu2018large