When I change something in my bib file, click save and run Latexmk command, it always says:
Latexmk: This is Latexmk, John Collins, 4 Apr. 2023. Version 4.80. Latexmk: Nothing to do for './main.tex'. Latexmk: All targets (main.pdf) are up-to-date
I'm using biblatex with biber backend. I want Latexmk to detect changes in bib files. I've tried to add -recorder` flag for Latexmk as suggested in this post but it doesn't work.
Also I've checked main.fls and can't find my bib file. Only files like main.bbl and main.bcf show up there. I think this may indicate Latexmk is not tracking the bib file, but why?
Edit
I'm on Ubuntu 22.04.3 LTS (Hyper-V virtual machine, if it matters). tex --version
shows
TeX 3.141592653 (TeX Live 2023)
and I'm compiling using the command latexmk -xelatex main.tex
.
Edit 2
In the file main.fdb_latexmk, following ["biber
, there are:
["biber main"] 1701360730 "main.bcf" "main.bbl" "main" 1701360782 0
"main.bcf" 1701360782 107749 d415e9cf25de5307100d1c0ac845400a "xelatex"
(generated)
"main.bbl"
"main.blg"
(rewritten before read)
bib files are not contained in these lines. Also bib files are not shown after running latexmk -dependents -xelatex
.
Here's the example I'm working on:
% main.tex
\documentclass{article}
\usepackage{biblatex}
\bibliography{refs.bib}
\begin{document}
\nocite{*}
\printbibliography
\end{document}
% refs.bib
@article{worldHello,
title = {Hello},
author = {World},
}
.bib
file)$bibtex_use
to 0 in a latexmkrc file, which prohibits the running of bibtex and biber. (c) You changed the bib file only by changing its time stamp, e.g., by applyingtouch
to it, but made no change in the contents of the file.["biber
, followed by lines showing what files biber read, including the bib file(s). Is that the case? You can also runlatexmk -dependents
; does the output include the name of the bibfile(s)?\bibliography
macro instead of\addbibresource
. (Note that the biblatex documentation deprecates\bibliography
.) That triggers a subtle bug in the dependency detection by latexmk, which I'll need to correct. For now, change\bibliography
to\addbibresource
.