开发者

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

开发者 https://www.devze.com 2023-01-07 08:36 出处:网络
For my Master Thesis I a开发者_如何学JAVAm 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

For my Master Thesis I a开发者_如何学JAVAm 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.


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.


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


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


i like wdiff. available on an *nix platform.

you can use

wdiff -w "\fbox{" -x "}" -y "\fbox{\fbox{" -z "}}" ...


I created revdiff to build diff versions of my papers before sending them to reviewers. They have told me several times that the result was really helpfull. Hope it can be useful for you.

Find it here: http://pedromateo.github.io/revdiff-LaTeX/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号