Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to highlight "what's new" between two latex documents

Tags:

latex

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.

like image 366
tonicebrian Avatar asked Jul 14 '10 17:07

tonicebrian


2 Answers

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.

like image 193
Rob Hyndman Avatar answered Sep 24 '22 10:09

Rob Hyndman


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

like image 40
qbi Avatar answered Sep 26 '22 10:09

qbi