tags:

views:

78

answers:

4

Hi,

For my Master Thesis I am writing a Latex document where I must put all the research I do. This document is reviewed periodically by my thesis advisors once or twice per month. Since this is a big document I'd like to automatically highlight what's new in the document since the last revision same way like Word or Openoffice do.

So my question is, given that I have a Latex document controlled by Subversion, what is the best way to create a pdf highlighting the differences between the HEAD and a previous version?

Say that I want:

  • New text in a red coloured font
  • New images and tables with a light red background
  • Deleted text marked as a footnote or something similar

If not all are possible, which ones could be implemented?

Thanks.

A: 

You could use a diff program. I recommend DiffMerge from Source Forge.

John D. Cook
+1  A: 

There are several packages which could manage revisions. I'd like to use some version control system like git to manage and show changes.

qbi
A: 

i like wdiff. available on an *nix platform.

you can use

wdiff -w "\fbox{" -x "}" -y "\fbox{\fbox{" -z "}}" ...
Mica
+3  A: 

Check out latexdiff. It is much better than simple diff programs because it understands LaTeX and won't mark changes that are simply extra spaces, or reformatted lines in the tex file.

Rob Hyndman
latexdiff is not in Texlive 2009, as it has been superseded by texdiff, the difference being that latexdiff inserts definitions into Latex's preamble, whilst you have to do this yourself with texdiff, which is better since it allows multifile documents to work, as well as Plain Tex and Context documents. It works well, I've used it often with clients. See http://www.ctan.org/tex-archive/support/texdiff/
Charles Stewart