Mercurial, LaTex and my Thesis

I use Mercurial (and bitbucket.org) to track changes to my thesis (yes, I’m writing up, scary thought). Quite naturally, I use LaTeX to typeset my thesis. For LaTeX documents I prefer not have a fixed column width where line breaks are inserted manually. This makes using Mercurial’s standard diff somewhat pointless because it will only show me paragraphs that I edited. Meet wdiff: “The program wdiff is a front end to diff for comparing files on a word per word basis. A word is anything between whitespace. This is useful for comparing two texts in which a few words have been changed and for which paragraphs have been refilled.” I use the following options in order to use wdiff.

[extensions]
hgext.extdiff =

[extdiff]
cmd.wdiff  = wdiff
opts.wdiff = -a -l

I couldn’t get colour output to work, suggestions welcome.

About these ads

3 thoughts on “Mercurial, LaTex and my Thesis

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s