Difference between revisions of "TeXworks"

From Wiki
Jump to navigation Jump to search
(merge mac hints)
(update (most contents were outdated))
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
= TeXworks =
 
  
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 ==
 
 
 
* 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: <code>texmfstart</code>
 
**  Parameters: <code>texexec --lua $fullname</code>
 
* To typeset with MkIV (which always uses LuaTeX):
 
**  Program: <code>mtxrun</code>
 
**  Parameters: <code>--script context --synctec $fullname</code>
 
 
 
== Mac hints ==
 
 
 
If you install ConTeXt in your Applications Folder, you have to create a new engine.
 
 
 
Go to your preferences inside TeXworks.
 
 
 
In Typesetting Menu, in Processing tools, add a new engine.
 
In Name, type what you want.
 
In Program : /Applications/ConText/tex/texmf-osx-64/bin/texmfstart
 
In Arguments :
 
*texexec as the first argument
 
*$fullname as the second argument
 
*$synctexoption as the third argument.
 
  
  
 
[[Category:Text Editors]]
 
[[Category:Text Editors]]

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.