Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Doing diff for latex projects on Overleaf

Steps for doing latexdiff

  • Download 2 versions from overleaf
  • Compile them using the TexStudio. I should create a bbl file.
  • Create a new tex file where you replace the bibliography section with the contents of the bbl file.
  • Do the same for the other version of the file.
  • Check that the new tex file for both version compiles to the same contents of the original tex files.
  • Open and paste the contents of the new tex files from both versions in the text boxes.
  • Click the box named "Generate LateX document showing differences"
  • It will take some time and then create the diff file.
  • Copy the diff contents to a file called diff.tex placed in the folder of the latest version.
  • Compile the diff.tex file. It may give errors. Manually fix the errors till the file compiles properly.
  • You should have your PDF with proper diff.

Note: If you do not want to use a personal latex editor like Tex Studio, you can simply create a blank project in overleaf and replace the contents of main.tex file with the diff.tex file and also include additional missing files required in diff.tex in the same project. This will give you the project file.


This comment has been minimized.

Copy link

@t-pollington t-pollington commented Mar 2, 2020

This is the problem I'm having "Manually fix the errors till the file compiles properly". Using latexdiff website is fine, it's just how to insert it back into Overleaf which is the problem.


This comment has been minimized.

Copy link

@rosstex rosstex commented Dec 28, 2020

Everybody gangsta until the documentation says to fix all the errors manually

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment