Skip to content

Instantly share code, notes, and snippets.

@paradx
Created October 23, 2017 06:11
Show Gist options
  • Save paradx/60247b29e52ff67dc922566843a615f8 to your computer and use it in GitHub Desktop.
Save paradx/60247b29e52ff67dc922566843a615f8 to your computer and use it in GitHub Desktop.
NppExec Script for compiling latex with biber and starting the pdf reader (in this case Adobe Acrobat). To prevent r/w issues on the opened files, the PDF viewer will be closed.
taskkill /im AcroRd32.exe
npp_save
cd "$(CURRENT_DIRECTORY)"
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)\$(NAME_PART).pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment