Re: [NTG-context] visualising evolution from one version to another
On Sun, 6 Aug 2006, Aditya Mahajan wrote: But what should happen if you change markup? What if a \bf is changed to \it or a \framed is added around a bit of text? Marking differences in math is altogether a different story. Yes, of course, I'll need to adjust manually in such cases. But I'm already quite lucky, because with word-diff, the task was much easier than I've ever hoped. My intention is, to be prepared, if one of my colleagues, who are all used to MS-Office, would ask for such a diff-document one day. Now I'm able to generate such a document. (My problem at work is, that I'm the only one not using MS-Office.) Cheers, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] visualising evolution from one version to another
Hello, if you know a bit MS-Word, then you have seen perhaps the feature, that permits visualising differences between 2 versions of a document: added text in red, and deleted text stroke out. I would like to make something similar with ConTeXt: making a pdf-file from doc-versionX.tex and doc-versionY.tex with added text in some colour and deleted text displayed with \overstrikes{}. Do you have some ideas, how to do that? Cheers, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] visualising evolution from one version to another
Peter Münster wrote: Hello, if you know a bit MS-Word, then you have seen perhaps the feature, that permits visualising differences between 2 versions of a document: added text in red, and deleted text stroke out. I would like to make something similar with ConTeXt: making a pdf-file from doc-versionX.tex and doc-versionY.tex with added text in some colour and deleted text displayed with \overstrikes{}. Do you have some ideas, how to do that? 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 Cheers, taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] visualising evolution from one version to another
Peter Münster wrote: 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 ? Not that I know of. It should be possible to cook something up with metafun and/or \starttextbackgrounds i guess, but I do not have a ready-to-use solution for you. Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] visualising evolution from one version to another
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: #!/bin/bash OLD=$1 NEW=$2 OUT=$3 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}' \ $OUT.tex wdiff -w '\startDeleted*' -x '\stopDeleted*' \ -y '\startAdded*' -z '\stopAdded*' $OLD $NEW $OUT.tex texexec $@ $OUT Cheers, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context