Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Track changes: svn + latex

In MS Word, there's a nice feature called "track changes" that allows the program to track edits. This is useful when collaborating with others because you can enable various visualization modes where it's easy to see what others have changed.

I'm in the process of editing a large amount of documentation written in LaTeX and stored in a subversion repository. I'd like to be able to easily highlight changes between different revisions. Does anyone know of a good system for taking a pair of revisions of a LaTeX file and automatically generating word-level (not just line-level) diff markup (i.e. one color or style for unchanged text, another color for added content, another for deleted, etc.)?

like image 340
Mr Fooz Avatar asked May 20 '09 14:05

Mr Fooz


2 Answers

You might have a look at latexdiff, which takes two latex documents and produces a new latex file highlighting the changes between the two documents with underlines and strikeouts (on a word-by-word basis, as you requested). See a screenshot of the results here.

Usage example:

~/bin/latexdiff old.tex new.tex > diff.tex

Also it appears that LyX can track changes.

like image 107
Noah Avatar answered Sep 25 '22 23:09

Noah


Look at latexdiff

like image 31
Gary.Ray Avatar answered Sep 23 '22 23:09

Gary.Ray