I recently used
latexdiff during the paper shepherding process. I found it very useful for highlighting changes between different papers versions (basically the submission version and the revised version shared to the shepherd).
Here’s a thorough tutorial on
I only have one more thing to add. If you have multiple tex files for your paper, before calling
latexdiff you need to run
latexpand on your master tex (say
$ cd paper_dir # latexpand doesn't work outside your paper folder $ latexpand paper_master.tex > paper_expanded.tex
Once you have
paper_new_expanded.tex, you need to run
$ latexdiff paper_old_expanded.tex paper_new_expanded > paper_diff.tex
Then you can compile
paper_diff.tex the same way of compiling
paper_master.tex. This means
paper.diff requires the same resources, such as embedded source code files, figures, etc.
If you cannot compile
paper_diff.tex, try the following solutions (and cross your fingers).
pdflatex. I don’t know why but it appears to me that
xelatexis more robust.
- Replacing the default
latexdiffpreamble with these lines.