fmarotta / kaobook

A LaTeX class for books, reports or theses based on https://github.com/kenohori/thesis and https://github.com/Tufte-LaTeX/tufte-latex.

Home Page:https://github.com/fmarotta/kaobook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Undefined references with kaobiblio even if there are no such references in main text

omasanori opened this issue · comments

Description

Using kaobiblio causes a LaTeX Warning: There were undefined references. warning even if there are no such references.
This behavior hides real problems.

Minimal Working Example

Execute latexmk -pdf test with the following files.

test.tex:

\documentclass{kaobook}

\usepackage{kaobiblio}
\addbibresource{test1.bib}

\begin{document}

Test.\sidecite{test}

\printbibliography

\end{document}

test.bib:

@book{test,
author = {Foo, Bar},
title = "{Test}",
publisher = {Example Press},
year = {2023},
}

Expected behavior:

It finishes with no warnings.

Actual behavior:

The last run's log contains the following warning:

LaTeX Warning: There were undefined references.


Package biblatex Warning: Please (re)run Biber on the file:
(biblatex)                test
(biblatex)                and rerun LaTeX afterwards.

Additional Information

Modifying test.tex to:

\documentclass{kaobook}

\usepackage{biblatex} % <- updated
\addbibresource{test1.bib}

\begin{document}

Test.\cite{test} % <- updated

\printbibliography

\end{document}

and it finishes without warnings.