[Tex/LaTex] latexdiff doesn’t mark changes in bibliography (BibTeX)

achemsobibtexlatexdiff

I'm using latexdiff to show changes between versions of an article written with the achemso package, but it doesn't seem to be able to highlight changes within the bibliography (including added \bibnote{} commands and added citations). BibTeX is used to produce the bibliography with the \bibliography{filename} command in the main LaTeX file. I'm using latexdiff in the following way:

latexdiff --subtype=COLOR old.tex new.tex > diff.tex

The resulting LaTeX file does mark the new citation numbers which appear in the text, but doesn't highlight anything in the bibliography. In there a convenient way to have latexdiff mark changes in the bibliography?

Best Answer

You have to use latexdiff directly on the bbl files. So just execute

latexdiff old.bbl new.bbl > diff.bbl

and then execute (pdf)latex diff.tex. This generally works well with (author,year) style of citations, but I have not tried it with numbered styles.

For the bibnote command you probably have to use --append-textcmd option

latexdiff --append-textcmd=bibnote ...

Related Question