Difference between revisions of "TeXworks"

From Wiki
Jump to navigation Jump to search
(update (most contents were outdated))
 
(7 intermediate revisions by 3 users not shown)
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
+
Download TeXworks from its [https://github.com/TeXworks/texworks/releases Github page].
  
  texmfstart texexec <filename>
+
Change the following preferences:
  
which executes ConTeXt using pdfTeX; the XeConTeXt option executes
+
* General: no changes necessary
 +
* Editor:
 +
** line numbers: yes
 +
** syntax coloring: ConTeXt
 +
** smart quotes mode: None (or Unicode characters)
 +
* Preview: no changes necessary
 +
* Typesetting:
 +
** Paths for TeX...: add the bin path of your ConTeXt installation (that below <tt>tex/</tt>) and move it above the TeX live paths
 +
** Processing tools/Default: ConTeXt (LuaTeX)
 +
** Hide console output: never
 +
* Scripts: no changes necessary
  
  texmfstart texexec --xtx <filename>
+
== [[SyncTeX]] ==
  
which uses XeTeX.
+
Would be nice, but doesn’t work.
  
== 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.
+
[[Category:Text Editors]]
 
 
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:
 
 
 
  texexec
 
  --lua
 
  $fullname
 
 
 
You can then select LuaConTeXt to run ConTeXt using LuaTeX.
 

Latest revision as of 18:06, 5 August 2022

Download TeXworks from its Github page.

Change the following preferences:

  • General: no changes necessary
  • Editor:
    • line numbers: yes
    • syntax coloring: ConTeXt
    • smart quotes mode: None (or Unicode characters)
  • Preview: no changes necessary
  • Typesetting:
    • Paths for TeX...: add the bin path of your ConTeXt installation (that below tex/) and move it above the TeX live paths
    • Processing tools/Default: ConTeXt (LuaTeX)
    • Hide console output: never
  • Scripts: no changes necessary

SyncTeX

Would be nice, but doesn’t work.