From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30034 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: visualising evolution from one version to another Date: Sun, 6 Aug 2006 09:41:58 -0400 (EDT) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1154871737 14136 80.91.229.2 (6 Aug 2006 13:42:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 6 Aug 2006 13:42:17 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Aug 06 15:42:15 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1G9itS-00017d-4S for gctc-ntg-context-518@m.gmane.org; Sun, 06 Aug 2006 15:42:14 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 58ED41FEB8; Sun, 6 Aug 2006 15:42:13 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20776-07-3; Sun, 6 Aug 2006 15:42:06 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C1A2C1FF2A; Sun, 6 Aug 2006 15:42:06 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CCC591FF2A for ; Sun, 6 Aug 2006 15:42:04 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20776-07-2 for ; Sun, 6 Aug 2006 15:42:02 +0200 (CEST) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by ronja.ntg.nl (Postfix) with SMTP id 7E35D1FEB8 for ; Sun, 6 Aug 2006 15:42:02 +0200 (CEST) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) BY hellskitchen.mr.itd.umich.edu ID 44D5F1A7.9A051.4360 ; 6 Aug 2006 09:42:00 -0400 Original-To: ConTeXt list In-Reply-To: X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:30034 Archived-At: On Sun, 6 Aug 2006, Peter M=FCnster 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 fr= om > 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? There was a latex package with a perl script that did something like = that. But I found it to be too cumbersome to use. If you are just = using plain text, then it is easy to identify and mark what has = changed. 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. For small = documents (~10 pages) I found it easier to copy version2 by another = name, diff the two files in an editor, and add the markup by hand. (I = actualy had a macro to mark the change, so it was just pressing one of = three keystokes). With context, you can have \DIFFdeleted, = \DIFFchanged{before}{after} \DIFFadded with these expanding to the = default MS word look and feel for changed files. There are various diff programs, but I feel that for something = slightly complicated, it is very hard to do identify the changes in a = sensible way automatically. YMMV. Aditya