New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with Bibliography #174
Comments
Thanks for the report. This is something that works out of the box for me with natbib package, e.g. this is what latexdiff generates automatically for a citation for me:
So you have to be a more specific what packages you use exactly for preparing your bibliography. Just looking at your text I can see two possible issues:
The best work-around for you might be to put all the citations in separate file and not process it with latexdiff, but include as-is. Of course, you lose the highlighting. Or switch to natbib but I guess that might not be acceptable for you. |
Thanks for the quick answer. I usually use natbib, so great to hear that it works. In this specific case I actually copied the created bibliography into the texfile (required for submission to a scientific journal, apparently to be sure not to have any problems for compilation on their servers). The bibliography itself was created through revtex, I'll try to put together a MWE soon. For the moment I´l just l continue putting the citations in a separate file for latexdiff. |
I am facing the same issue, although I may be using a different latex template than @JoTrab. In my case I have the bibliography on a separate file, and citing the references with \cite{#TAG}. The result is the same highlighted here:
The journal template used is this one: cabios-template.zip. I can work around the error if I use the argument I hope this helps in finding the cause! Cheers! |
Super helpful! Thanks! |
I noticed that difflatex has problems with the bibliography. For me the pdflatex output failed when I added a new entry to the .
Each field in the bibitem is added through \DIFadd which seems to result in the error.
Enclosing the whole entry into DIFadd manually works.
Example:
fails
but
The text was updated successfully, but these errors were encountered: