Damien Riquet

  • Home
  • Research
  • Teaching
  • Misc
  • About

Short vitae

I'm Damien Riquet, 24 years old, a PhD. Student within the 2XS research group at the University of Lille 1 (France). I hold a Master Degree (french equivalent of an MSc) in Computer Science from the University of Lille 1. My PhD (funded by the French Research Ministry), under the supervision of Gilles Grimaud and Michaƫl Hauspie, is about including Embedded probes for Cloud Security.

This website presents my research interests, publications and some blog entries.

Compare two versions of a TeX file in a Git repository

Dim 24 juin 2012 In latex. Tags: latex git rcs python

When writting an article, you may want to get a diff of a TeX file to send it to your advisor, collaborators or reviewers. The tool latexdiff generates a diff of two TeX files but it does not manage inputs, includes or bibliography. Also, when you are using a RCS (Revision Control System) like Git, at first you have to get all the files what could be laborious.

That's why I wrote rcs-latexdiff, a tool written in Python to generate a diff of two versions of a TeX file based on a RCS repository.

images/rcs-latexdiff/diff-latex.png

An example of output produced by rcs-latexdiff after its compilation

Usage

This tool manage inputs and its usage is quite simple:

$ rcs-latexdiff [OPTIONS] filename old_commit new_commit

Examples

For example, if the file paper.tex is in a Git repository, you could do:

$ rcs-latexdiff paper.tex HEAD~1 HEAD

to get a diff between the second to last and the last commit.

You could also use branch names. For example, to compare a version submitted to a conference (branch submission-version) and the final version (branch camera-ready-version):

$ rcs-latexdiff paper.tex submission-version camera-ready-version

Then, compile the diff file using your favorite TeX compiler. For example, rubber:

$ rubber -d diff.tex

Install rcs-latexdiff

Instructions are explained on the Github page rcs-latexdiff.

Comment(s)

Page 1 / 1

Proudly powered by Pelican, which takes great advantage of Python.

The theme is by Smashing Magazine, thanks!