I use winedt to edit tex, and xelatex to compile. It works fine for a long time. But for some unknow reasons, I recently found that winedt often get stuck when I click the xelatex compilation button. This is really annoying. But I just don't know why.
So I looks for other method that is to use winedt marco to directly call xelatex. This is the macro I used now
SaveDoc(1); Run('xelatex.exe --shell-escape --synctex=-1 "%N%T"','%P',0,0,'LaTeX ...',0,0,1); Run('"C:\Program Files (x86)\SumatraPDF\SumatraPDF.exe" "%P\%N.pdf"','%P')
Run command is basically calling windows CMD.exe to run command. It works fine except that the forward pdf search is not working. Does anyone know how to make forward pdf search in CMD command?