Friday, June 3, 2011

Setting up MikTeX on Notepad++ / MikTeX와 Notepad++ 연동

1. Install Notepad++ (http://notepad-plus-plus.org/)
2. Install MikTeX 2.9 (http://miktex.org/)
3. Run Notepad++ and open [Run] -> [Run... (F5)]
4. Input followings and save as each name:

* LaTex 
Ctrl + Shift + F5
"[MikTeX HOME]\miktex\bin\latex.exe" -src-specials "$(FULL_CURRENT_PATH)" -output-directory "$(CURRENT_DIRECTORY)"  

* BibTex
Ctrl + Shift + F6
"[MikTeX HOME]\miktex\bin\bibTex.exe" "$(CURRENT_DIRECTORY)\$(NAME_PART)"

* Yap
Ctrl + Shift + F7 
"[MikTeX HOME]\miktex\bin\yap.exe" -1 "$(CURRENT_DIRECTORY)\$(NAME_PART)"

* PdfLaTex 
Ctrl + Shift+ F8
"[MikTeX HOME]\miktex\bin\pdflatex.exe" "$(FULL_CURRENT_PATH)" -output-directory "$(CURRENT_DIRECTORY)"

Replace [MikTeX HOME] to the installation path of MikTeX such as "C:\Program Files\MiKTeX 2.9" on Windows 7 (32bit).

The shortcut-key combinations above can be varied.

1 comment:

  1. These commands work well, but is there a way to make notepad++ automatically open the pdf file when I compile it?

    Thanks!

    ReplyDelete