LateXdiff
Basic
To get an old revision (e.g9fgvx...
) saved as fileold.tex
from a Git repository use: $git log #to list revisions $ git show 9fgvx:./file.tex > fileold.tex
Now, in order to get a nice PDF with the differences between two revisions, after install the corresponding program if necessary:
$ sudo apt-get install latexdiff
$ cd latexdir latexdir~$ latexdiff --flatten fileold.tex file.tex > file-diff.tex latexdir~$ pdflatex file-diff.tex
--flatten
replace \input or \include
by LaTeX content.