git-latexdiff icon indicating copy to clipboard operation
git-latexdiff copied to clipboard

to diff latex file with preview versions

git-latexdiff

An small and elegant script that compare two latex files with preview versions for Windows. Extremely useful when others revised your paper/work and you need to find the difference. works only on windows.

Updates

Changes the default

Old Effect (strike through seems not working currently)

CAUTION

Remember to commit everything before you run the script, the author is not responsible for any data loss.

Usage

First, copy git-latexdiff.bat to your current latex directory. (important)

Then open cmd and execute git-latexdiff [old_revision] [latex_file|no extension] [newest_version]

For example: git-latexdiff HEAD~1 main master

requirements

Requires the following on your path (so that you can call them from the commmand line):

these 3 should come along with Miktex:

  • pdflatex
  • latexdiff
  • latexpand (available on CTAN)

and:

  • perl(active perl is only 20MB in case you are wondering which to install)

Acknowledgement

Inspired and many thanks to this