git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-latexdiff: Git and Latexdiff working together

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Feb 14, 2012, 23:13 UTC
Message-ID
<vpq4nut6maj.fsf@bauges.imag.fr>
In-Reply-To
<20120214211629.GA23649@sigill.intra.peff.net>
Jeff King <peff@peff.net> 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/
Previous: Jeff KingNext: Jeff King
Message 4 of 5 in “git-latexdiff: Git and Latexdiff working together”
  1. Matthieu MoyFeb 14, 2012
  2. Tim HagaFeb 14, 2012
  3. Jeff KingFeb 14, 2012
  4. Matthieu MoyFeb 14, 2012
  5. Jeff KingFeb 14, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.