[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: diffing latex files -- strikeout?



In your case I think 'kompare' (KDE utility) would highlight the paragraph where things changed in one colour and the words which changed in yet another colour.

I particularly like how kompare can compare whole directories.

/Michael

Jukka Suomela wrote:
On Monday 12 December 2005 05:07, Tim Connors wrote:

I would like to produce a latexed file (such as for sending to
referees and colloborators) with changes highlighted.

What I have found of use so far, are wdiff[1] to highlight the
differences to the latex file, on the terminal, ignoring line
wrapping differences (since I use emacs' M-q to reflow text when I
make changes).


I have a similar problem. I keep my Latex documents in svn and I would like to have a simple way to see, for example, exactly what I have changed before checking in a new version.

I can use any diff utility in svn. The problem is that I have not yet found a decent diff utility that solves my problem.

In my case the problem is not re-wrapping paragraphs. The problem is that I do not insert any hard line breaks in paragraphs at all. I let my editor wrap long lines as needed, depending on the font size, window size, etc. I like this way of working with my current set of tools, and I would rather not change it.

Now if I change just one word in a long paragraph, standard "diff" tools only tell me that this one long line has changed. They just show the old and the new version. It is up to me to find exactly what changes I have made in this relatively long piece of text.

I have tried wdiff and several other "word diff" utilities, but I have not been able to find a set of command line switches that shows just what I have changed and some context but not too much. A sample output could be something as simple as this:

+ ... is a modified version of the sample ...
- ... is a sample ...

I do not want to have any fancy GUI or something like that; and, most importantly, I do not want to see pages of text where there are no changes.

Also note that there may be several small changes in one paragraph. Some tools are not able to identify all of them individually; they just show one large block of changed text.

Does anyone have any experience with similar problems? It does not really matter if the tool is designed for Latex files or arbitrary text files.

Best regards,
Jukka Suomela


begin:vcard
fn:Michael Olberg
n:Olberg;Michael
email;internet:michael.olberg@chalmers.se
tel;work:+46 31 772 5507
tel;fax:+46 31 772 5590
tel;home:+46 300 10778
tel;cell:+46 703 319556
x-mozilla-html:FALSE
version:2.1
end:vcard


Reply to: