Colored Diff on Latex

LatexDiff is a great tool to generate colored diff file (as for Ms Word for instance) if you want to highlight only the differences.

Here’s how to use it :

latexdiff versionA.tex versionB.tex > versionDiff.tex

It’s not just a text diff as it generates an actual latex file. You just build it and you’re good to go.

Also, if you’ve read my post on Git+Latex, I’ve made a little wrapper to invoke latexdiff directly on git commits. Here’s the source code:

https://gitlab.com/smimite/latexDiffOnGit

Advertisements

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