[Tex/LaTex] How to use LuaTex in MikTeX

luatexmiktextexworks

I am using MikTeX 2.9 version and although the manual says I can use LuaTeX, there is nothing in the TeXworks menu. I can see all the other members of the TeX family but none for LuaTeX.

Can someone point me as to how to configure it? I am using Windows Vista.

Best Answer

Open TeXworks, choose Edit -> Preferences... in the menu and go to the Typesetting tab. In the Processing tools section, click on the little + button to add a new entry. In the dialog window, you have to type in the following values:

enter image description here

Repeat this step to add LuaLaTeX:

enter image description here

Now, you will be able to choose LuaTeX/LuaLaTeX from the dropdown box next to the green button.

UPDATE
In some cases, the argument -synctex=1 may cause trouble. Try replacing it by $synctexoption in this case or leave it out completely.