In the Visual Studio Code with LaTeX-Workshop, the built pdf cannot contain the bibliography. However, in the TeXworks, the .tex file can be successfully compiled. In the Visual Code, the compiler log only show two errors but not indicate what exactly the errors are.

There is the log of compiler.

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)
  • Welcome to TeX.SE. – Mico Oct 2 '20 at 3:33
  • Off-topic: It's not necessary to encase the surnames of authors' names in the author field in curly braces. – Mico Oct 2 '20 at 3:35
  • 1
    What's in the two lines immediately before the author={G. {Zhao} and K. {Xu} and L. {Xu} and B. {Wu}}, line? – Mico Oct 2 '20 at 3:36

There are two problems I can see.

For the beginning, try to remove double defined reference


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.