Re: git-latexdiff: Git and Latexdiff working together
From: Matthieu Moy <hidden>
Date: 2016-06-15 22:53:04
Jeff King [off-list ref] writes:
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.
My LaTeX documents are usually sets of .tex files including each other, plus figures and possibly Makefiles. So, git-latexdiff does a full checkout of the old and new tree, then runs latexdiff on the main file, and then compiles the result. A diff driver would work well for a standalone file, but I don't think you can plug it in this kind of situation. Also, git-latexdiff has a few hacks like detecting the main latex file automatically by grepping all .tex files for "documentclass", detecting the presence of a Makefile to compile the document, ... that would hardly fit in a diff driver. That said, that may be just me not knowing diff drivers or difftools well enough. -- Matthieu Moy http://www-verimag.imag.fr/~moy/