I am able to successfully compile using XeLaTeX and view the resulting PDF in Sumatra with the following run code in Notepad++:
cmd /c cd /d "$(CURRENT_DIRECTORY)" && xelatex.exe "$(FILE_NAME)" & "C:\Program Files (x86)\SumatraPDF\SumatraPDF.exe" "$(CURRENT_DIRECTORY)\$(NAME_PART).pdf"
However, I have to manually save the file each time before running the script. Is there an additional command that I can insert at the beginning that saves the .tex file to the current directory? I'm not a programmer, so I'm probably missing something very simple. Here's an MWE for testing purposes:
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{lipsum}
\begin{document}
\section{Notepad++ and \LaTeX}
\lipsum[3]
\end{document}
--shell-escapeby default. – David Carlisle Apr 09 '18 at 20:02NPP_SAVEALL... – CarLaTeX Apr 09 '18 at 20:09--shell-escape. Anything else? – Tavaro Evanis Apr 09 '18 at 20:09