Skip to content

Instantly share code, notes, and snippets.

@btel
Created May 5, 2014 15:08
Show Gist options
  • Select an option

  • Save btel/11539345 to your computer and use it in GitHub Desktop.

Select an option

Save btel/11539345 to your computer and use it in GitHub Desktop.
#!/bin/bash
TMPDIR=$(mktemp -d /tmp/git-latexdiff.XXXXXX)
latexdiff "$1" "$2" > $TMPDIR/diff.tex
pdflatex -interaction nonstopmode -output-directory $TMPDIR $TMPDIR/diff.tex
pdflatex -interaction nonstopmode -output-directory $TMPDIR $TMPDIR/diff.tex
evince $TMPDIR/diff.pdf
rm -rf $TMPDIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment