Closed atticus-sullivan closed 10 months ago
Tested this for biblatex+biber
for a while now and it works as expected (for my usecase). I added some comments about the processing.
Below is an example showing when what rebuild is triggered (and this is how I expect it)
If you've see any issue with this behavior and/or the changes, please let me know.
EDIT: And I did not work on bibtex further as I'm not that familiar with the workflow with bibtex (I only use biber)
Oh I just saw, I included the .bin
file by accident in this PR (so there are changes which don't belong here in this PR).
Except for BibTeX
and some a bit unclear things about the bcf files (not really problematic if something is wrong here), I'm through with this.
Anything you can say about the mentioned reruncheck.comparefiletime(mainauxfile, output_bbl, auxstatus)
?
@atticus-sullivan Thank you for contribution and sorry for late reply.
As for reruncheck.comparefiletime(mainauxfile, output_bbl, auxstatus)
, you are right, it seems.
I noticed update_dot_bib
variable is always overwritten if there are multiple bib files. So only the last bib file would be checked for change. This point should be fixed before (or after) merge.
Fixed the update_dot_bib
issue.
What shall we do about the reruncheck.comparefiletime
in the bibtex
case? Fix the path or remove the check?
I would like to fix the path in the bibtex
case.
Done :+1:
I'll tidy up the history a bit and merge this.
Supposed to fix #3 if biber is used.
To discussion:
original_wd.."/"..bib
always work? (I'm not quite sure what kind of paths we can encounter in.bcf
files, but as long as they are relative to the directory where the user invokedcluttex
it should work)original_wd.."/"..bib
is actually a real file (and print a warning if not), since I'm not sure ifbcf:datasource
is surely always a file. This way we also could somehow warn iforiginal_wd.."/"..bib
failed in some way.@minoki Any thoughts on these points? (made this a draft as I'd like to discuss this before merging)
Still to be done is the bibtex support, but as I'm not using bibtex I'm not quite confident in testing this with a common setup. And there is no
bcf
file from where we'd get the.bib
file(s) used (there has to be another way, as bibtex has to find these files as well somehow, but I just don't know it).@minoki do you use BibTeX and can do this for the BibTeX option?
Also a small note:
reruncheck.comparefiletime(mainauxfile, output_bbl, auxstatus)
is being used in thebibtex
option path (cluttex.lua:383
). As far as I tested (tried to use an adapted version of this for thebiber
option), this will always returnfalse
asauxstatus
works with absolute paths andmainauxfile
appears to be relative. So in effect thebibtex
option only uses the mechanism of comparing the hashes.