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.

  • Please have a look here tug.org/levels.html. You should use XeTeX as the engine. There is no way to compile a file using Notepad++, you should do it with console, e. g. Jan 31, 2018 at 13:39
  • 5
    Possible duplicate of Using Notepad++ with MiKTeX on Windows Jan 31, 2018 at 13:41
  • take a look at the NppExec plugin, from there you can run any commands you like.
    – cmhughes
    Jan 31, 2018 at 14:14
  • @MichaelFraiman see my answer :)
    – cmhughes
    Jan 31, 2018 at 14:50
  • @cmhughes oops, was wrong about compiling Jan 31, 2018 at 14:52

1 Answer 1


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? Jul 3, 2019 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, 2019 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. Jul 3, 2019 at 23:00
  • My solution is a subset of tex.stackexchange.com/a/44046/6621
    – cmhughes
    Jul 4, 2019 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.