Posted on

Highlighting changes in LaTeX

In order for the package to work, do the following:

  • create a trackchanges.sty file containing the code at the bottom of this post
  • add \usepackage{trackchanges} to the preamble of your article
  • adjust your text using one of the following commands:
    • \removed{the text you want to remove} will result in red strike through text
    • \added{new text}will result in green new text
    • \changed{new text}{old text}will combine the two above, new text will have the added markup, old text the removed markup

    When building your .tex document twice, change bars will also be added in the margin of the document.

The snippet of code:
\ProvidesPackage{trackchanges}[2013/02/20 tvandenbrande style for track changes in the elsevier template]

\difftrue % activate this line to show the changes
%\difffalse %activate this line to apply changes

\newcommand{\removed}[1]{} % non-markup version


Comment ( 1 )

  1. ReplyThijs Van den Brande (@thijsvdb)
    mijn paper is ondertussen online beschikbaar, voor zij die niet zo van regen houden is er ook een stukje LaTeX code: