3

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.

Henri Menke
  • 109,596
Ali
  • 363
  • 2
  • 6
  • 11

1 Answers1

4

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.

cmhughes
  • 100,947
  • This works for me but how can I make it render the pdf using sumatrapdf? –  Jul 03 '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 03 '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. –  Jul 03 '19 at 23:00
  • My solution is a subset of https://tex.stackexchange.com/a/44046/6621 – cmhughes Jul 04 '19 at 15:37