From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/94673 Path: news.gmane.org!not-for-mail From: "L.S.-Soc&Gam" Newsgroups: gmane.comp.tex.context Subject: Re: Setting up TeXworks Date: Fri, 6 May 2016 13:39:10 +0200 Message-ID: <572C825E.90900@gmail.com> References: <5715D9D5.5000403@fehige.de> <57161F10.3010901@gmail.com> <57178C3D.4090008@fehige.de> <57179143.1070009@gmail.com> <571A0C65.1020808@fehige.de> <571A8972.4010004@wxs.nl> <571E1204.2000707@fehige.de> <571E5E0A.10805@fehige.de> <571E81C0.2070103@gmail.com> <5720CC4B.90602@fehige.de> <1cad4caa-38f3-a38a-9b09-1492dd6b2129@wxs.nl> <57231D6F.8040207@fehige.de> <572323DF.4070102@gmail.com> <57286DD6.8050603@fehige.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3012216651919847681==" X-Trace: ger.gmane.org 1462534794 4844 80.91.229.3 (6 May 2016 11:39:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 May 2016 11:39:54 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri May 06 13:39:41 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aye6e-0002jZ-66 for gctc-ntg-context-518@m.gmane.org; Fri, 06 May 2016 13:39:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 77C2DBEE2; Fri, 6 May 2016 13:39:22 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7IyzpAxbtrbC; Fri, 6 May 2016 13:39:21 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 95260BEE4; Fri, 6 May 2016 13:39:21 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CEB80BEDA for ; Fri, 6 May 2016 13:39:20 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ub8FWb-Crqqn for ; Fri, 6 May 2016 13:39:19 +0200 (CEST) Original-Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 764DDBECB for ; Fri, 6 May 2016 13:39:09 +0200 (CEST) Original-Received: by mail-wm0-f52.google.com with SMTP id g17so73288418wme.1 for ; Fri, 06 May 2016 04:39:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to; bh=rOy9WGNofuwimNEHw67XWZPqgebd/LwD0tuNbONZEqU=; b=pu3IPYlzsXcsJ00u4Ec9LeP/lGu+L6cS88NvgNheO2RvYUEGlmHnGEBPSO8JFFa9JJ aCSyuX4kGTsxwmdJ2xzk0YPrOViWa2UyOFE0SP6zltvOYFnFWQQ4BX80lO8hYotm3zm1 GQMAATFibtbgLifXlrL9q8b6cd/ST9R7KcUJZ/ieDpp1Rk23U3z7XC/LoON1P/9dycdC YT+eCGbOdwVj1JWS+eXACTqQWi7TLgCzL6o5LziCN/DN43juzVegoIkS1pybJfZrJCIP lV0bnpWjOq/wRgleElM0pdNwzysv600orKJfC1K1BhNg+/a68t6+3fty21WJn4bOv17x jlvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=rOy9WGNofuwimNEHw67XWZPqgebd/LwD0tuNbONZEqU=; b=kPKN2OiBfLYpm3KZFAaHMA0TRb7h92/DqE/jxQUczQlUbMOGbUEpj+Z0m4gLTQm/tj cXU9TmbcFDAX3dwc5fzX+tlNqpzoTXoWQmd1vjMCVb8hyYYhxJLqUhzY7hgQC4bhq8W2 FH3KlJNqDB0nNSkiaZC9U/6Yt+NEQA88TsLpUt1a8tQxzukuXuBFeLqiLbpZuajEvsz7 93zH1rJaT8tSirVYy9z3tDM1WBL0oA2/0iRXPx09JZKpVFV7utfG7JdwnHefMZpdV+Fz pstZGHQMX8Xt+N4UySzwwbXPrLonMq8LqCRMXvTS9GAHtHP5riByD5ntsmMCt3vfallJ yljw== X-Gm-Message-State: AOPr4FVXvVvfJYNBHudQZh6qMlwWeVc4CXKMBw4tU7NZh4CRjlXWxyNUgm4Nsr1iYcqefQ== X-Received: by 10.28.153.213 with SMTP id b204mr9360974wme.102.1462534749129; Fri, 06 May 2016 04:39:09 -0700 (PDT) Original-Received: from [192.168.1.2] (port-92-201-10-105.dynamic.qsc.de. [92.201.10.105]) by smtp.googlemail.com with ESMTPSA id t206sm7981323wmt.21.2016.05.06.04.39.08 for (version=TLSv1/SSLv3 cipher=OTHER); Fri, 06 May 2016 04:39:08 -0700 (PDT) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:94673 Archived-At: This is a multi-part message in MIME format. --===============3012216651919847681== Content-Type: multipart/alternative; boundary="------------040107060104020608070603" This is a multi-part message in MIME format. --------------040107060104020608070603 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Am 06.05.2016 um 10:04 schrieb Mojca Miklavec: > On 3 May 2016 at 11:22, Thomas Fehige wrote: >> OK, that helps. Everything is fine from the command line. I seem to be >> overlooking something as to the setup of TeXworks, though. I copied the >> programme calls from the tools.ini that came with the ConTeXt standalone >> version into the present tools.ini that lives in my personal TeXworks config >> folder. Now TW starts mtxrun allright, but the run crashes with >> >> mtxrun | unknown script 'context.lua' or 'mtx-context.lua' > Can you check the paths in the fourth tab (= Typesetting) of > Preferences/Settings? > > It is possible that you have more than one version of ConTeXt > installed and that you see different paths in the Terminal than in the > GUI. > > Mojca > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ I've searched through the mailing list, what the initial post to this topic was, but i couldn't find it. If you're having trouble to make context compile a document, try this: - TeXworks tools.ini doesn't need to be edited manually. It's the file where TW saves the settings from " Edit -> Preferences -> Typesetting ". - First of all make sure, that you downloaded ConTeXt by using "first-setup.exe" - Then, you should add the folder where context.exe (and all executables) are stored to your system paths: Use your browser to navigate to the said folder, click on the address bar and copy the full path. For me it looks like this: " F:\Sandbox\ConTeXt\tex\texmf-win64\bin " - Then add this path to your windows system paths: go to your windows control panel, double click " System "-> advanced settings -> environment variables (or something like this), in the lower halfth there is a window with a point " Path ". Double click it and paste your CTX folder pretty much at the top of the section or if there is only one line, add it at the beginning, and use semikolon ( ; ) to seperate it from the rest. Save your settings and you should be good to go. - to test if you did it correctly open your command line and simply enter " context.exe --version ". If command line tells you, that no context.exe was found, then you might try to add the context \bin folder to your system paths again - if command line tells you the version of context, then you can proceed: - start TW, " Edit -> Preferences -> Typesetting ". There check the upper halfth for the context folder you added to your system paths. If you've added it at the beginning, it should be at the top here as well. Alternatively use the arrows to push context\bin it to the very top NOTE: this is important. if you have MikTeX installed for example and if its folder is listed above your context folder, TW will try to use exe files from the MikTeX folder. so make sure that context\bin is above anything related to tex, context or lua. - then in the lower halfth create a new processing tool by clikcking on the plus: - call it CTX mkiv or something - in the program field either search for your context.exe, or if added to the system paths correctly, simply enter context.exe in the Program field - for arguments add: $fullname (this parses the filename to context compiler) - if you want to use the sync code <-> pdf feature, also add another argument: --synctex=-1 that's it. there is the option to make this the default profile at the bottom of the Typesetting window. Now you can test it: paste \starttext Hello World! \stoptext into a new file and save it somewhere. then use your freshly set up processing tool. after compilation the pdf viewer should pop up. I hope that helps, Seba --------------040107060104020608070603 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

Am 06.05.2016 um 10:04 schrieb Mojca Miklavec:
On 3 May 2016 at 11:22, Thomas Fehige wrote:
OK, that helps. Everything is fine from the command line. I seem to be
overlooking something as to the setup of TeXworks, though. I copied the
programme calls from the tools.ini that came with the ConTeXt standalone
version into the present tools.ini that lives in my personal TeXworks con=
fig
folder. Now TW starts mtxrun allright, but the run crashes with

mtxrun | unknown script 'context.lua' or 'mtx-context.lua'
Can you check the paths in the fourth tab (=3D Typesetting) of
Preferences/Settings?

It is possible that you have more than one version of ConTeXt
installed and that you see different paths in the Terminal than in the
GUI.

Mojca
_________________________________________________________________________=
__________
If your question is of interest to others as well, please add an entry to=
 the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/m=
ailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextre=
v/
wiki     : http://contextgarden.net
_________________________________________________________________________=
__________

I've searched through the mailing list, what the initial post to this topic was, but i couldn't find it. If you're having trouble to make context compile a document, try this:

- TeXworks tools.ini doesn't need to be edited manually. It's the file where TW saves the settings from " Edit -> Preferences -> Typesetting ".
- First of all make sure, that you downloaded ConTeXt by using "first-setup.exe"

- Then, you should add the folder where context.exe (and all executables) are stored to your system paths: Use your browser to navigate to the said folder, click on the address bar and copy the full path. For me it looks like this: " F:\Sandbox\ConTeXt\tex\texmf-win64\bin "
- Then add this path to your windows system paths: go to your windows control panel, double click " System "-> advanced settings -> environment variables (or something like this), in the lower halfth there is a window with a point " Path ". Double click it and paste your CTX folder pretty much at the top of the section or if there is only one line, add it at the beginning, and use semikolon ( ; ) to seperate it from the rest. Save your settings and you should be good to go.
- to test if you did it correctly open your command line and simply enter " context.exe --version ". If command line tells you, that no context.exe was found, then you might try to add the context \bin folder to your system paths again
- if command line tells you the version of context, then you can proceed:

- start TW, " Edit -> Preferences -> Typesetting ". There check the upper halfth for the context folder you added to your system paths. If you've added it at the beginning, it should be at the top here as well. Alternatively use the arrows to push context\bin it to the very top

NOTE: this is important. if you have MikTeX installed for example and if its folder is listed above your context folder, TW will try to use exe files from the MikTeX folder. so make sure that context\bin is above anything related to tex, context or lua.

- then in the lower halfth create a new processing tool by clikcking on the plus:

- call it CTX mkiv or something
- in the program field either search for your context.exe, or if added to the system paths correctly, simply enter context.exe in the Program field
- for arguments add:=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 $fullname=C2= =A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 = (this parses the filename to context compiler)
- if you want to use the sync code <-> pdf feature, also add another argument:=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 --synctex=3D-1=

that's it. there is the option to make this the default profile at the bottom of the Typesetting window.

Now you can test it: paste

\starttext
Hello World!
\stoptext

into a new file and save it somewhere. then use your freshly set up=C2= =A0 processing tool. after compilation the pdf viewer should pop up.


I hope that helps, Seba
--------------040107060104020608070603-- --===============3012216651919847681== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============3012216651919847681==--