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



This site uses Akismet to reduce spam. Learn how your comment data is processed.