TeXworks

From Wiki
Revision as of 14:46, 20 November 2012 by Esteis (talk | contribs) (moved Setting up TeXworks to TeXworks)
Jump to navigation Jump to search

As of early 2011, TeXworks does not come with support for running ConTeXt using LuaTeX.

By default, choosing the ConTeXt option from the drop-down executes

 texmfstart texexec <filename>

which executes ConTeXt using pdfTeX; the XeConTeXt option executes

 texmfstart texexec --xtx <filename>

which uses XeTeX.

Adding an option to use ConTeXt with LuaTeX

Selecting Edit / Preferences... from the menu will bring up the preference dialog for TeXworks. The Typesetting tab lets you add additional options.

At the bottom right of the Typesetting tab list of processing tools is the + button to add a new entry. Name the new entry LuaConTeXt. For Program, use texmfstart as for the other entries. Then, add the following arguments one at a time, and make sure they are in the specified order:

 texexec
 --lua
 $fullname

You can then select LuaConTeXt to run ConTeXt using LuaTeX.