Difference between revisions of "TeXworks"

From Wiki
Jump to navigation Jump to search
Line 1: Line 1:
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
 
By default, choosing the ConTeXt option from the drop-down executes
  
Line 13: Line 11:
 
== Adding an option to use ConTeXt with LuaTeX ==
 
== 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.
+
* In the menu select Edit > Preferences...  
 
+
* Go to the Typesetting tab
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 <code>texmfstart</code> as for the other entries. Then, add the following arguments one at a time, and make sure they are in the specified order:
+
* On the Typesetting tab, the "+" button at the bottom right lets you add new compilation options.
 
+
* To typeset with MkII and the LuaTeX engine:
  texexec
+
**  Program: <code>texmfstart<code/>
  --lua
+
**  Parameters: <code>texexec --lua $fullname</code>
  $fullname
+
* To typeset with MkIV (which always uses LuaTeX):
 
+
**  Program: <code>mtxrun</code>
You can then select LuaConTeXt to run ConTeXt using LuaTeX.
+
**  Parameters: <code>--script context --synctec $fullname</code>

Revision as of 16:30, 20 November 2012

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

  • In the menu select Edit > Preferences...
  • Go to the Typesetting tab
  • On the Typesetting tab, the "+" button at the bottom right lets you add new compilation options.
  • To typeset with MkII and the LuaTeX engine:
    • Program: texmfstart
    • Parameters: texexec --lua $fullname
  • To typeset with MkIV (which always uses LuaTeX):
    • Program: mtxrun
    • Parameters: --script context --synctec $fullname