[NTG-context] visualising evolution from one version to another

Peter Münster pmlists at free.fr
Sun Aug 6 16:34:57 CEST 2006

On Sun, 6 Aug 2006, Taco Hoekwater wrote:

> You need a way to create a merged ConTeXt document from the two separate
> files, perhaps using something like this:
>    http://search.cpan.org/dist/Text-WordDiff/lib/Text/WordDiff.pm

Thank you for this hint! It's exactly what I need. I've also found a shell
version: "wdiff"
But I still have one problem: I can't have a paragraph in \overstrikes.
Is there perhaps something like \startoverstrikes ... \stopoverstrikes ?

Here is a little script, to show what I'm doing now:

shift 3
echo '\setupcolors[state=start]' >"$OUT.tex"
echo '\long\def\startDeleted*#1\stopDeleted*{\overstrikes{#1}}' >>"$OUT.tex"
echo '\long\def\startAdded*#1\stopAdded*{\startcolor[blue]#1\stopcolor}' \
wdiff -w '\startDeleted*' -x '\stopDeleted*' \
	-y '\startAdded*' -z '\stopAdded*' "$OLD" "$NEW" >>"$OUT.tex"
texexec "$@" "$OUT"

Cheers, Peter


More information about the ntg-context mailing list