[Tex/LaTex] How to use Notepad++ together with TeX Live to write LaTeX

editorstexlivexepersian

I want to use Notepad++ as my text editor. However, I need to use TeX Live as the engine. The reason for the latter is that I want to write Persian using xepersian package and that works with TeX Live only. How can I configure my Notepad++ to have it working?

UPDATE: The solution for MiKTeX (Using Notepad++ with MiKTeX on Windows) does not work for TeX Live.

Best Answer

Install the NppExex plugin using the plugin manager, and then press <F6> and paste the following code:

NPP_SAVE
cd $(CURRENT_DIRECTORY)
xelatex $(NAME_PART).tex"

and click Save and then type, for example, xelatex

screenshot

Everytime you want to run xelatex on a file in the future, simply press CTRL+F6. If you have configured multiple scripts, you can select the appropriate one by pressing F6.