I'm using latexdiff
to highlight the differences between two versions of a tex document, using the default style which is UNDERLINE
. This style formats added text in blue with a wavy underline, and removed text in red with a strikethough.
I'm interested in formatting the output such that added text is in blue but without the wavy underline (and removed text is in red as before). Is there a command for achieving this? I wasn't able to figure it out from the man page.
Another way would be to modify the CCHANGEBAR
style, which formats added text in blue and removed text in red but without the strikethrough, to add the strikethrough to the removed text (my question is how).
Best Answer
There is no standard option to do this, but you can create your own preamble file for
latexdiff
to replace the highlighting commands. All you need to do after a standard run oflatexdiff
is to copy the lineslatexdiff
writes in to the header of the diff file and change those that do not fit your style. In your case the command to change is\DIFadd
that by default isThe wavy underlining is generated by
\uwave{...}
, so removing this we getA complete preamble file is then
which if you call this
preamble.tex
can be used bylatexdiff
viaWith
new.tex
and
old.tex
this generates a
diff.tex
that produces