Skip to content

Instantly share code, notes, and snippets.

@paradx
Last active October 23, 2017 06:14
Show Gist options
  • Save paradx/c36f201b0a1032447bf9470fdb7d8ec5 to your computer and use it in GitHub Desktop.
Save paradx/c36f201b0a1032447bf9470fdb7d8ec5 to your computer and use it in GitHub Desktop.
Same as CreatePDF Gist but will use git-latexdiff to also create a diff PDF version. Need Git and git-latexdiff to work (https://github.com/redreamality/git-latexdiff and https://git-scm.com/download )
taskkill /im AcroRd32.exe
echo "$(CURRENT_DIRECTORY)"
cd "$(CURRENT_DIRECTORY)"
npp_save
git latexdiff --biber --type=CCHANGEBAR --output diff.pdf --main "$(FILE_NAME)" HEAD --
pdflatex.exe "$(FILE_NAME)"
biber.exe "$(NAME_PART)"
pdflatex.exe "$(FILE_NAME)"
pdflatex.exe "$(FILE_NAME)"
cmd /C start "AdobeAcrobat" /D C:\Progra~2\Adobe\ACROBA~1\Reader\ Acrord32.exe $(CURRENT_DIRECTORY)\diff.pdf
cmd /C start "AdobeAcrobat" /D C:\Progra~2\Adobe\ACROBA~1\Reader\ Acrord32.exe $(CURRENT_DIRECTORY)\$(NAME_PART).pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment