[Tex/LaTex] Mark changes since last edition with bars in the margin

changeshighlighting

I would like to mark the parts of my document that have changed since the last revision with vertical bars in the margin. Is there a package to help with this?

Is there a tool that can compare two files and automatically add bars in the appropriate places, or do I have to insert markup manually?

Best Answer

Marking changes:

  • the changebar package allows marking changes by bars. Not automatically, it has to be done by commands:\cbstart and \cbend. Change may can be nested within each other and with other environments, they can be colored and can cross page boundaries.
  • the chbar package is an alternative for plain TeX.

Comparing files:

  • Since LaTeX files are text documents you could use any diff tool comparing txt files and printing out the differences.