Re: git-latexdiff: Git and Latexdiff working together

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

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/

Re: git-latexdiff: Git and Latexdiff working together

From: Jeff King <hidden>
Date: 2016-06-15 22:53:04

On Wed, Feb 15, 2012 at 12:13:40AM +0100, Matthieu Moy wrote:
Jeff King [off-list ref] writes:
quoted
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.
[...]
Ah, yeah. I didn't think about the fact that there's a whole ecosystem
of files that go into producing the output.
That said, that may be just me not knowing diff drivers or difftools
well enough.
No, your analysis is right. A diff driver wouldn't work well at all.

Thanks for satisfying my curiosity.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help