Hi,
You may know latexdiff, a neat tool to visualize differences between
LaTeX files (it annotates your .tex file with colors for removed/added
parts, producing another compilable .tex file).
I wrote a little shell-script that allows one to use latexdiff on files
versionned by Git, with e.g.
git latexdiff HEAD^ --main foo.tex --output foo.pdf
Essentially, it does a checkout of the old and new revisions, and calls
latexdiff + pdflatex for you.
The result is attached in case anyone is interested.
It may be relevant to add this to contrib/ in git.git. If anyone's
interested, let me know, and I'll resend the code in the form of a
patch doing that.
Regards,
--
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Hi,
your tool seems very useful for LaTeX users, especially in scientific
work. I could not test it in detail until now, but i had two or
three runs with an article draft and it seems to work.
Long story short, i would appreciate it if your tool would be
integrated in git.
T.
Am Tue, 14 Feb 2012 14:22:45 +0100
schrieb Matthieu Moy [off-list ref]:
Hi,
You may know latexdiff, a neat tool to visualize differences between
LaTeX files (it annotates your .tex file with colors for removed/added
parts, producing another compilable .tex file).
I wrote a little shell-script that allows one to use latexdiff on files
versionned by Git, with e.g.
git latexdiff HEAD^ --main foo.tex --output foo.pdf
Essentially, it does a checkout of the old and new revisions, and calls
latexdiff + pdflatex for you.
The result is attached in case anyone is interested.
It may be relevant to add this to contrib/ in git.git. If anyone's
interested, let me know, and I'll resend the code in the form of a
patch doing that.
Regards,
On Tue, Feb 14, 2012 at 02:22:45PM +0100, Matthieu Moy wrote:
I wrote a little shell-script that allows one to use latexdiff on files
versionned by Git, with e.g.
git latexdiff HEAD^ --main foo.tex --output foo.pdf
My latex usage is all from a past life, so I didn't even try out your
tool. But I did wonder what your rationale was in making a separate
command as opposed to providing a script that could be plugged in as an
external diff.
-Peff