One thought on “Specifying custom input directories in MikTex”

  1. This is a version with 2 slihgt tweaks:* A 3rd parameter is passed to the batch file if you want to display the output no 3rd parameter will build but not display- So I map:[path_to_bat_file] “$(CURRENT_DIRECTORY)” “$(NAME_PART)” to CTRL+F7 and[path_to_bat_file] “$(CURRENT_DIRECTORY)” “$(NAME_PART)” show to CTRL+SHIFT+F5 (to match TeXnicCenter)* Because Acrobat locks open PDFs I installed FoxIt reader, and force the output to open in that (keeping acrobat as my default):: Called from Notepad++ Run:: [path_to_bat_file] “$(CURRENT_DIRECTORY)” “$(NAME_PART)” :: Change Drive and to File Directory%~d1cd %1 :: Run Cleanupcall:cleanup :: Run pdflatex -> bibtex -> pdflatex -> pdflatexpdflatex %2bibtex %2:: If you are using multibib the following will run bibtex on all aux files:: FOR /R . %%G IN (*.aux) DO bibtex %%Gpdflatex %2pdflatex %2 :: Run Cleanupcall:cleanup :: Open PDF (Script updated based on comments by ‘menfeser’:: START “” “C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe” %2.pdfif (%3)==() goto cleanup::START “” %2.pdf”C:\Program Files\Foxit Software\Foxit Reader\Foxit Reader.exe” %2.pdf:: Cleanup Function:cleanup:: del *.logdel *.dvidel *.auxdel *.bbldel *.blgdel *.brfdel *.outgoto:eof

Leave a Reply

Your email address will not be published. Required fields are marked *