Open peng1999 opened 4 months ago
can confirm this is also happening with biber:
% main.tex
\documentclass{article}
\usepackage[backend=biber]{biblatex}
\addbibresource{references.bib}
\begin{document}
\nocite{ref1}
\printbibliography
\end{document}
% references.bib
@book{ref1,
title = {Title},
author = {Author},
year = {2024},
publisher = {Publisher},
}
This results in an undefined reference error in the main.tex file
This results in an undefined reference error in the main.tex file
I believe this is a different issue. Your example works fine for me, try adding an empty .texlabroot
file in the same directory.
The original error also happens with labels defined in square brackets for an lstlisting
:
\lstinputlisting[
caption={A caption},
label={listing:ref},
]{snippet}
The error is texlab: Undefined reference
as opposed to a warning relayed from a build.
I'm assuming texlab
only picks up labels from explicit \label{...}
commands and not ones implicitly created by another package.
The following code gives undefined reference error by texlab even though its defined: