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.


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

xelatex $(NAME_PART).tex"

and click Save and then type, for example, xelatex


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.

  • This works for me but how can I make it render the pdf using sumatrapdf? – Tomás Palamás Jul 3 '19 at 16:54
  • I have a solution for that, will post it in the next few days when I'm at my laptop – cmhughes Jul 3 '19 at 18:43
  • I came up with a solution too, using the ideas from the post Phelype Oleinik provided. I will wait for yours and if its different, I will post mine as well. – Tomás Palamás Jul 3 '19 at 23:00
  • My solution is a subset of tex.stackexchange.com/a/44046/6621 – cmhughes Jul 4 '19 at 15:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.