[Tex/LaTex] How to create a ‘summary of changes’ with latexdiff

latexdiffpdfpdfpages

Following my previous question, I have successfully created a dif.tex file of a large, complex project, the results of which can be seen here. (This was done, in the end by updating latexdiff to the latest version: 1.0.3 which is not in Ubuntu 12.04 ppas and using: PICTUREENV=(?:picture|DIFnomarkup|lstlisting|figure|table)[\w\d*@]* as the configuration file.

It is great to be able to scroll through the document and see all the improvements that have been made. Thank you latexdiff!

The next problem is that the pdf document is very large and changes are relatively sparse – I cannot expect my examiners to look through all 300 pages looking for red and blue text to indicate changes. What I need is a summary of changes. This would, at a minimum, contain the text that had changed. Ideally it would also contain surrounding words for context and (a long shot) the page number of the alteration. Ways I've though of doing this:

  • Redefine the \DIFdelbegin environment
  • Use a regex like grep to extract all lines from dif.tex containing \DIF and compile this separately
  • Do it using latexdiff commands (I've checked the documentation, but cannot see how.
  • Would a different approach altogether be better for solving this problem (making an accessible list of changes made, without including text that has stayed the same).

I know a similar question was closed on this site. Hopefully the clarity of this question and provision of an example will make it useful for others.

Best Answer

There is a new functionality in latexdiff since version 1.1.0 that outputs only those pages where a change has been made.

Check out option --only-changes to latexdiff-vc or options -s ONLYCHANGEDPAGE or -s ZLABEL for latexdiff. The former is much more convenient as the post-processing is done behind the scenes.

(I know this question is really old, but the improvement to latexdiff in this respect since the original answers were posted are significant)