Last active
April 17, 2021 18:02
-
-
Save vbajpai/5402795 to your computer and use it in GitHub Desktop.
latex diff old with new
This file contains 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
Create a diff of the new PDF to the old PDF. This flattens the LaTeX structure before diff'ng the contents. | |
$ latexdiff --flatten old.tex new.tex > diff.tex | |
$ latexmk -pvc -f -pdf -quiet diff.tex | |
Environments can also be ignored using the config command | |
$ latexdiff --config="PICTUREENV=(?:picture|DIFnomarkup|figure|lstlisting)[\w\d*@]*” \ | |
--flatten old.tex new.tex > diff.tex | |
$ latexmk -pvc -f -pdf -quiet diff.tex |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment