ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* texworks with context on linux
@ 2009-08-05  6:46 Alex Lubberts
  2009-08-06 21:02 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Alex Lubberts @ 2009-08-05  6:46 UTC (permalink / raw)
  To: ntg-context

Hi,

Yesterday I wanted to try out texworks for editing and typesetting my
context documents. I installed texworks from the ubuntu launchpad ppa
since '--goodies=texworks' doesn't work on linux-64, yet.

Then I ran into a few problems:

* The script mtx-texworks.lua wasn't able to start texworks because
"unable to locate texworks". In the loop that's searching all the
binpaths I put in 'logs.simple("%s",p)' and found out that binpaths
only consists of one element: the complete PATH variable. I guess it
means that there's something wrong with the function file.split_path,
but I don't understand what's happening there. When I replaced the
loop with 'p="/usr/bin/texworks"' texworks started as expected.

* However the typesetting engines were not correctly set up. Texworks
(at least on linux) seems to be looking for a file TeXworks.ini. The
one in the minimals distribution is called texworks.ini. Renaming this
solved it...

* ... almost. In the TeXworks.ini file I also had to replace all
occurunces of 'mtxrun.cmd' (doesn't work on linux, is this correct for
Windows?) with 'mtxrun'.

I wish I could help solve these points, but since I'm not much of a
programmer I cannot solve the first issue, and the other are just a
matter of renaming/replacing??

Regards,
Alex

-- 
Alex Lubberts <alex@lubberts.org>
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: texworks with context on linux
  2009-08-05  6:46 texworks with context on linux Alex Lubberts
@ 2009-08-06 21:02 ` Hans Hagen
  2009-08-07  7:41   ` Alex Lubberts
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2009-08-06 21:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Alex Lubberts wrote:
> Hi,
> 
> Yesterday I wanted to try out texworks for editing and typesetting my
> context documents. I installed texworks from the ubuntu launchpad ppa
> since '--goodies=texworks' doesn't work on linux-64, yet.
> 
> Then I ran into a few problems:
> 
> * The script mtx-texworks.lua wasn't able to start texworks because
> "unable to locate texworks". In the loop that's searching all the
> binpaths I put in 'logs.simple("%s",p)' and found out that binpaths
> only consists of one element: the complete PATH variable. I guess it
> means that there's something wrong with the function file.split_path,
> but I don't understand what's happening there. When I replaced the
> loop with 'p="/usr/bin/texworks"' texworks started as expected.

hm, strange, but just patching the file.split_path function is kin dof 
dangerous .. mayb  the path separator is not identified well

> * However the typesetting engines were not correctly set up. Texworks
> (at least on linux) seems to be looking for a file TeXworks.ini. The
> one in the minimals distribution is called texworks.ini. Renaming this
> solved it...

has to do with the fact that these are user prefs and stored in a system 
dependent way (only windows can be configured); this will chang ein 
future versions of texworks

> * ... almost. In the TeXworks.ini file I also had to replace all
> occurunces of 'mtxrun.cmd' (doesn't work on linux, is this correct for
> Windows?) with 'mtxrun'.

needs testing

> I wish I could help solve these points, but since I'm not much of a
> programmer I cannot solve the first issue, and the other are just a
> matter of renaming/replacing??

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: texworks with context on linux
  2009-08-06 21:02 ` Hans Hagen
@ 2009-08-07  7:41   ` Alex Lubberts
  0 siblings, 0 replies; 3+ messages in thread
From: Alex Lubberts @ 2009-08-07  7:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On do, 2009-08-06 at 23:02 +0200, Hans Hagen wrote:
> > * ... almost. In the TeXworks.ini file I also had to replace all
> > occurunces of 'mtxrun.cmd' (doesn't work on linux, is this correct for
> > Windows?) with 'mtxrun'.
> 
> needs testing

Well... it works! Except ofcourse starting the server, there I should
replace cmd.exe with bash or something like that. Haven't tried that
yet. But main thing is: typesetting works.

Regards,
Alex

-- 
Alex Lubberts <alex@lubberts.org>

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-08-07  7:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-05  6:46 texworks with context on linux Alex Lubberts
2009-08-06 21:02 ` Hans Hagen
2009-08-07  7:41   ` Alex Lubberts

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).