由于 BibTex,LaTex 无法在 VS Code 上编译

5 latex bibtex visual-studio-code

我在通过 VS Code 使用 LaTex 编译一本编辑书籍时遇到问题,以下是我收到的错误消息:

Latexmk: Summary of warnings from last run of (pdf)latex:
Latex failed to resolve 15 reference(s)
Latex failed to resolve 4 citation(s)
Collected error summary (may duplicate other messages):
bibtex waysofmentalprayer: Could not open bibtex log file for 'waysofmentalprayer'
Latexmk: Errors, so I did not complete making targets
Run Code Online (Sandbox Code Playgroud)

看来问题出在bibtex上。我正在尝试并决定将文件扩展名从 .bib 重命名为 .tex 并且它起作用了。然而,当我使用 Rstudio 时,它可以完美编译,文件扩展名为 .bib。为什么会发生这种情况?

更新:该文档在 Rstudio 上编译,但引用不起作用。出现的只是?代替引文。

更新 2:似乎在我的本地计算机上,它无法识别 bibtex。我下载了 TeXworks,但 bibtex 选项是灰色的,即我无法使用它。这是否意味着我不能使用 bibtex?我该如何安装它?

小智 1

我找到了解决办法。我已经在这里回答了。基本上,我使用 biblatex 而不是 natbib。