{"thread":{"id":"29624","subject":"git-latexdiff: Git and Latexdiff working together","startedAt":"2012-02-14T13:22:45Z","lastAt":"2012-02-14T23:31:51Z","messageCount":5,"participants":["Matthieu Moy","Tim Haga","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"184656","messageId":"vpq7gzph7mi.fsf@bauges.imag.fr","threadId":"29624","inReplyTo":null,"subject":"git-latexdiff: Git and Latexdiff working together","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@grenoble-inp.fr","sentAt":"2012-02-14T13:22:45Z","receivedAt":"2012-02-14T13:22:45Z","isPatch":false,"sender":{"key":"matthieu.moy@grenoble-inp.fr","avatar":"https://gravatar.com/avatar/72c8a2705971a25dfaff23cece15130d405685845d911aedd5667ace277f3fc5?d=mp&s=160"},"body":"Hi,\n\nYou may know latexdiff, a neat tool to visualize differences between\nLaTeX files (it annotates your .tex file with colors for removed/added\nparts, producing another compilable .tex file).\n\nI wrote a little shell-script that allows one to use latexdiff on files\nversionned by Git, with e.g.\n\n  git latexdiff HEAD^ --main foo.tex --output foo.pdf\n\nEssentially, it does a checkout of the old and new revisions, and calls\nlatexdiff + pdflatex for you.\n\nThe result is attached in case anyone is interested.\n\nIt may be relevant to add this to contrib/ in git.git. If anyone's\ninterested, let me know, and I'll resend the code in the form of a\npatch doing that.\n\nRegards,\n\n-- \nMatthieu Moy\nhttp://www-verimag.imag.fr/~moy/\n"},{"id":"184685","messageId":"20120214211917.53ef9df6@sirion","threadId":"29624","inReplyTo":"vpq7gzph7mi.fsf@bauges.imag.fr","subject":"Re: git-latexdiff: Git and Latexdiff working together","fromName":"Tim Haga","fromEmail":"timhaga@ebene6.org","sentAt":"2012-02-14T20:19:17Z","receivedAt":"2012-02-14T20:19:17Z","isPatch":false,"sender":{"key":"timhaga@ebene6.org","avatar":null},"body":"Hi,\n\nyour tool seems very useful for LaTeX users, especially in scientific\nwork. I could not test it in detail until now, but i had two or\nthree runs with an article draft and it seems to work.\n\nLong story short, i would appreciate it if your tool would be\nintegrated in git.\n\nT.\n\n\nAm Tue, 14 Feb 2012 14:22:45 +0100\nschrieb Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>:\n\n> Hi,\n> \n> You may know latexdiff, a neat tool to visualize differences between\n> LaTeX files (it annotates your .tex file with colors for removed/added\n> parts, producing another compilable .tex file).\n> \n> I wrote a little shell-script that allows one to use latexdiff on files\n> versionned by Git, with e.g.\n> \n>   git latexdiff HEAD^ --main foo.tex --output foo.pdf\n> \n> Essentially, it does a checkout of the old and new revisions, and calls\n> latexdiff + pdflatex for you.\n> \n> The result is attached in case anyone is interested.\n> \n> It may be relevant to add this to contrib/ in git.git. If anyone's\n> interested, let me know, and I'll resend the code in the form of a\n> patch doing that.\n> \n> Regards,\n> \n"},{"id":"184695","messageId":"20120214211629.GA23649@sigill.intra.peff.net","threadId":"29624","inReplyTo":"vpq7gzph7mi.fsf@bauges.imag.fr","subject":"Re: git-latexdiff: Git and Latexdiff working together","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2012-02-14T21:16:29Z","receivedAt":"2012-02-14T21:16:29Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Tue, Feb 14, 2012 at 02:22:45PM +0100, Matthieu Moy wrote:\n\n> I wrote a little shell-script that allows one to use latexdiff on files\n> versionned by Git, with e.g.\n> \n>   git latexdiff HEAD^ --main foo.tex --output foo.pdf\n\nMy latex usage is all from a past life, so I didn't even try out your\ntool.  But I did wonder what your rationale was in making a separate\ncommand as opposed to providing a script that could be plugged in as an\nexternal diff.\n\n-Peff\n"},{"id":"184728","messageId":"vpq4nut6maj.fsf@bauges.imag.fr","threadId":"29624","inReplyTo":"20120214211629.GA23649@sigill.intra.peff.net","subject":"Re: git-latexdiff: Git and Latexdiff working together","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@grenoble-inp.fr","sentAt":"2012-02-14T23:13:40Z","receivedAt":"2012-02-14T23:13:40Z","isPatch":false,"sender":{"key":"matthieu.moy@grenoble-inp.fr","avatar":"https://gravatar.com/avatar/72c8a2705971a25dfaff23cece15130d405685845d911aedd5667ace277f3fc5?d=mp&s=160"},"body":"Jeff King <peff@peff.net> writes:\n\n> My latex usage is all from a past life, so I didn't even try out your\n> tool.  But I did wonder what your rationale was in making a separate\n> command as opposed to providing a script that could be plugged in as an\n> external diff.\n\nMy LaTeX documents are usually sets of .tex files including each other,\nplus figures and possibly Makefiles. So, git-latexdiff does a full\ncheckout of the old and new tree, then runs latexdiff on the main file,\nand then compiles the result.\n\nA diff driver would work well for a standalone file, but I don't think\nyou can plug it in this kind of situation.\n\nAlso, git-latexdiff has a few hacks like detecting the main latex file\nautomatically by grepping all .tex files for \"documentclass\", detecting\nthe presence of a Makefile to compile the document, ... that would\nhardly fit in a diff driver.\n\nThat said, that may be just me not knowing diff drivers or difftools\nwell enough.\n\n-- \nMatthieu Moy\nhttp://www-verimag.imag.fr/~moy/\n"},{"id":"184731","messageId":"20120214233151.GA25651@sigill.intra.peff.net","threadId":"29624","inReplyTo":"vpq4nut6maj.fsf@bauges.imag.fr","subject":"Re: git-latexdiff: Git and Latexdiff working together","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2012-02-14T23:31:51Z","receivedAt":"2012-02-14T23:31:51Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Wed, Feb 15, 2012 at 12:13:40AM +0100, Matthieu Moy wrote:\n\n> Jeff King <peff@peff.net> writes:\n> \n> > My latex usage is all from a past life, so I didn't even try out your\n> > tool.  But I did wonder what your rationale was in making a separate\n> > command as opposed to providing a script that could be plugged in as an\n> > external diff.\n> \n> My LaTeX documents are usually sets of .tex files including each other,\n> plus figures and possibly Makefiles. So, git-latexdiff does a full\n> checkout of the old and new tree, then runs latexdiff on the main file,\n> and then compiles the result.\n> [...]\n\nAh, yeah. I didn't think about the fact that there's a whole ecosystem\nof files that go into producing the output.\n\n> That said, that may be just me not knowing diff drivers or difftools\n> well enough.\n\nNo, your analysis is right. A diff driver wouldn't work well at all.\n\nThanks for satisfying my curiosity.\n\n-Peff\n"}]}