Skip to content

Instantly share code, notes, and snippets.

@arthurlevy
Last active June 18, 2024 17:15
Show Gist options
  • Save arthurlevy/9470214 to your computer and use it in GitHub Desktop.
Save arthurlevy/9470214 to your computer and use it in GitHub Desktop.
compares two latex files and produces a pdf with differences markup
cp paper.tex new_file.tex
git checkout v1 -- paper.tex
cp paper.tex old_file.tex
latexdiff -t CULINECHBAR --append-safecmd="vect,tens,moy,norm" old_file.tex new_file.tex > diff.tex
latex diff.tex
bibtex diff.aux
latex diff.tex
dvipdfmx -o diff.pdf diff.dvi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment