I am trying to show the changes in the References by using latexdiff.
In the beginning, I used latexdiff old.tex new.tex > diff.tex, then I run the diff.tex file, the changes were not shown.
Then I followed here to produce .bbl file by latexdiff old.bbl new.bbl > diff.bbl.
After that, I run the diff.tex file again, but got errors. Error messages like this: Something's wrong--perhaps a missing \item. \DIFdelend \bibitem{c29}. Something's wrong--perhaps a missing \item. \bibitem{c30}
I tried latexdiff --append-textcmd=... or latexdiff --append-safecmd=... or latexdiff --flatten... to produce the .bbl file, however, all did not work for me.
How can I solve this problem? Or is there any other ways to show the changes in References. Thanks.
Here are some examples:
ref.bib:
@article{c29,
title = "Thermal comfort: use of controls in naturally ventilated buildings",
journal = "Energy and Buildings",
volume = "33",
number = "3",
pages = "235 - 244",
year = "2001",
issn = "0378-7788",
doi = "https://doi.org/10.1016/S0378-7788(00)00087-6",
author = "Iftikhar A Raja and J.Fergus Nicol and Kathryn J McCartney and Michael A Humphreys",
keywords = "Buildings, Thermal comfort, Natural ventilation, Energy, Controls, Indoor temperature, Outdoor climate"
}
@article{c30,
title = "Predictive controllers for thermal comfort optimization and energy savings",
journal = "Energy and Buildings",
volume = "40",
number = "7",
pages = "1353 - 1365",
year = "2008",
issn = "0378-7788",
doi = "https://doi.org/10.1016/j.enbuild.2007.12.007",
author = "Roberto Z. Freire and Gustavo H.C. Oliveira and Nathan Mendes",
keywords = "Predictive control, Thermal comfort, Energy saving, HVAC systems"
}
diff.bbl:
%DIFDELCMD < %%%
\DIFdelend \bibitem{c29}
Raja IA, Nicol J, McCartney KJ \DIFdelbegin \DIFdel{et~al}\DIFdelend \DIFaddbegin \DIFadd{and Humphreys MA}\DIFaddend .
\newblock Thermal comfort: use of controls in naturally ventilated buildings.
\newblock \emph{Energy and Buildings} 2001; 33(3): 235 -- 244.
\newblock \doi{https://doi.org/10.1016/S0378-7788(00)00087-6}.
\bibitem{c30}
Freire RZ, Oliveira GH and Mendes N.
\newblock Predictive controllers for thermal comfort optimization and energy
savings.
\newblock \emph{Energy and Buildings} 2008; 40(7): 1353 -- 1365.
\newblock \doi{https://doi.org/10.1016/j.enbuild.2007.12.007}.
old.bbl:
\bibitem{c29}
Raja IA, Nicol J, McCartney KJ et~al.
\newblock Thermal comfort: use of controls in naturally ventilated buildings.
\newblock \emph{Energy and Buildings} 2001; 33(3): 235 -- 244.
\newblock \doi{https://doi.org/10.1016/S0378-7788(00)00087-6}.
\bibitem{c30}
Freire RZ, Oliveira GH and Mendes N.
\newblock Predictive controllers for thermal comfort optimization and energy
savings.
\newblock \emph{Energy and Buildings} 2008; 40(7): 1353 -- 1365.
\newblock \doi{https://doi.org/10.1016/j.enbuild.2007.12.007}.
new.bbl:
\bibitem{c29}
Raja IA, Nicol J, McCartney KJ and Humphreys MA.
\newblock Thermal comfort: use of controls in naturally ventilated buildings.
\newblock \emph{Energy and Buildings} 2001; 33(3): 235 -- 244.
\newblock \doi{https://doi.org/10.1016/S0378-7788(00)00087-6}.
\bibitem{c30}
Freire RZ, Oliveira GH and Mendes N.
\newblock Predictive controllers for thermal comfort optimization and energy
savings.
\newblock \emph{Energy and Buildings} 2008; 40(7): 1353 -- 1365.
\newblock \doi{https://doi.org/10.1016/j.enbuild.2007.12.007}.