Closed gandalfsaxe closed 6 years ago
Warnings about bibitem
are generated by your latex compile in the latex log. The extension does not explicitly parse bib
files for warnings.
Ok. Any suggestions of how this situation can be solved then? The thing is, it didn't happen with SublimeText with LaTeXTools extension.
Can you please provide a minimal working example? The above description seems not sufficient to reproduce the problem. Please include your recipe settings too.
Hmm I'm having trouble reproducing it in a barebones minimal example myself. I'll dig deeper when I have time and write back here what the problem was / is.
It's not a minimal example, but here is the project if you want to give it a spin: https://transfer.sh/CPdjU/citation-error.zip
There are tons of "citation undefined" error, despite the PDF file containing all references correctly.
Actually this is a somewhat minimal example; it's the template which many of the students at my university uses for their Bsc/MSc/PhD theses: https://bitbucket.org/_laursen/laursens-xelatex-thesis-template/downloads/
If you download it and run it as-is, then it complains that some references are not found, even though that clearly not the case.
As I mentioned this does not happen in Sublime's LaTeXTools extension, so something must be up.
Here is the output in VSCode using LaTeX-Workshop, after running twice:
Here is the output in SublimeText 3 using LaTeXTools, after running twice:
I.e. only LaTeX-Workshop for VSCode gives errors of undefined reference. This is the just downloading the template I mentioned and running it out of the box.
What is the cause of this? Can it be fixed? Any suggestions?
If I mouse over the so-called "undefined reference" it even pulls in information about it from the .bib file! So obviously it can see the reference. What is going on?
Solved, see #764.
Description
If I cite a reference from a
.bib
file in a file that points to a master tex file with%!TEX root = master.tex
, then I get warnings of citation being undefined. However it builds fine to the PDF with no reference issues.How to reproduce
library.bib
file with an item calledtest
master.tex
file with the line\include{chapter.tex}
and\addbibresource{library.bib}
chapter.tex
with line on top:%!TEX root = master.tex
chapter.tex
use command\cite{test}
and receive warning.Expected behavior
No warning on undefined citation.
Actual behavior
Warning on undefined citation.