Mercurial, LaTex and my Thesis

I use Mercurial (and 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.

hgext.extdiff =

cmd.wdiff  = wdiff
opts.wdiff = -a -l

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


3 thoughts on “Mercurial, LaTex and my Thesis”

Leave a Reply

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

You are commenting using your 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