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

git-latexdiff: Git and Latexdiff working together

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Feb 14, 2012, 13:22 UTC
Message-ID
<vpq7gzph7mi.fsf@bauges.imag.fr>
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/
Next: Tim Haga
Message 1 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.