Compare Latex documents with latexdiff on Mac

less than 1 minute read

Quick comparison of two Latex documents

latexdiff ../path/old.tex new.tex --flatten > diff.tex

--flatten here means to unwrap all included files into a flat text

At the end the difference looks like this: Result

Beware that sometimes the resulting diff.tex file is compiled with errors. Usually they are resolved by removing preceeding the error empty lines or adding $ arround math symbols.

Tags:

Updated: