Created
February 1, 2011 00:50
-
-
Save bagrow/805187 to your computer and use it in GitHub Desktop.
Semi-automatic way to track changes in a latex file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# these can also be commandline args... | |
OLD_TEX=paper_orig.tex # previous draft, submission, etc. | |
NEW_TEX=paper.tex # current working version | |
if [[ "$1" = 'clean' ]]; then | |
rm -f diff* | |
else | |
latexdiff $OLD_TEX $NEW_TEX > diff.tex | |
latexmk -pdf diff.tex | |
open diff.pdf | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note that this requires latexdiff and latexmk.