First, my apologies because this is apparently a revtex issue, not the latexdiff.
When I wrap \bibliography with a null environment, the compilation fails.
Here's an mwe to reproduce:
1.tex:
\documentclass{revtex4-2}
\newenvironment{DIFnomarkup}{}{}%
\begin{document}
This is a reference~\cite{examplereference}.
\begin{DIFnomarkup}
\bibliography{ex}
\end{DIFnomarkup}
\end{document}
ex.bib:
@article{examplereference,
title = {Example Title},
author = {Author, First and Author, Second},
year = {2023},
journal = {Example Journal},
volume = {1},
pages = {123456}
}
First, my apologies because this is apparently a revtex issue, not the latexdiff.
When I wrap
\bibliography
with a null environment, the compilation fails.Here's an mwe to reproduce:
1.tex
:ex.bib
:When I try to compile the document with
first, bibtex starts complaining about the Notes.bib file (however, 1.bbl is generated)
Then, pdflatex fails with
If I comment out the
DIFnomarkup
lines in the mwe, the compilation runs without errors.Versions:
Again, I am sorry for reporting it here, as this is not a latexdiff issue, but I would really appreciate any help to get rid of the compilation error.