[Tex/LaTex] Latexing: Using `program` option to change tex engine does not work

sublime-textxetex

I'm using LateXing with Sublime Text 2 for my TeX needs. In the LateXing documentation it says I can choose xelatex as the TeX engine by using the following line at the start of my TeX file:

% -*- program: xelatex -*-

However, it does not work. When I build my pdf using Ctrl-B it still uses pdflatex. Any ideas what the problem might be?

Best Answer

I have to use Cntl+Super+B (perhaps Cntl+Windows+B on PC/Linux?). This brings up a list of possible build systems. I select the Single Quick Build xelatex one, and it works. After building once, from then on I can just do "Super-B" (probably Cntl-B on Windows/Linux).

Related Question