From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/35800 Path: news.gmane.org!not-for-mail From: WN Newsgroups: gmane.comp.tex.context Subject: Re: luac-texluac-luatex-texlua-... Date: Wed, 08 Aug 2007 18:04:09 +0200 Message-ID: <46B9E979.3050505@tiscali.nl> References: <174897200.20070808162624@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1186588891 30444 80.91.229.12 (8 Aug 2007 16:01:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Aug 2007 16:01:31 +0000 (UTC) To: Yatskovsky , mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 08 18:01:28 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1IInyS-00053T-At for gctc-ntg-context-518@m.gmane.org; Wed, 08 Aug 2007 18:01:28 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6844B201FE; Wed, 8 Aug 2007 18:01:27 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05253-02-10; Wed, 8 Aug 2007 18:01:17 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id ABC59201FA; Wed, 8 Aug 2007 18:01:17 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1B73D201F6 for ; Wed, 8 Aug 2007 18:01:16 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05253-02-9 for ; Wed, 8 Aug 2007 18:01:11 +0200 (CEST) Original-Received: from smtp-out1.tiscali.nl (smtp-out1.tiscali.nl [195.241.79.176]) by ronja.ntg.nl (Postfix) with ESMTP id E0616201EC for ; Wed, 8 Aug 2007 18:01:11 +0200 (CEST) Original-Received: from [82.171.74.44] (helo=[192.168.1.36]) by smtp-out1.tiscali.nl with esmtp (Tiscali http://www.tiscali.nl) id 1IInyB-0000JO-IY; Wed, 08 Aug 2007 18:01:11 +0200 User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) In-Reply-To: <174897200.20070808162624@gmail.com> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:35800 Archived-At: Hi, What I did on Ubuntu 7.04 (bash shell) was this downloaded justtex.zip and linuxtex.zip from pragma and unzipped them in my home directory. uncommented all the unset commands in setuptex downloaded luatex and the lua compiler i.e luac (found it via google) I think from www.luatex.org and from www.lua.org. I read on the mailing list that you don't need to download them as everything is self contained in the distro. set the unix variable TMP to /TMP (export TMP=/tmp) set the unix variable TEXMFCACHE to TMP (export TEXMFCACHE=/tmp) I think the last step was not needed because the luatools script will set it to $TMP and rename the lua scripts luatools.lua and mtxrun.lua (from the scripts/lua directory) to their extension less counterparts and moved them to the texmf-linux/bin directory. Also did a chmod 755 on them to make them executable. I also made a copy of luatex and named it texlua and put it in the texmf-linux/bin directory. Then after reading the MyWay on MKIV I did a texexec --make --all --luatex to generate the formats and ran succesfully the following tex script and produced a pdf file. % engine=luatex \starttext Hello from luatex \blank LUA \startlua a = 1.5 b = 1.8 c = a*b tex.print(c) \stoplua \stoptext Could be that I forgot some steps but this is what I remember. Hope it helps Kind regards Wim > Hello, > > It is silly, but luatools urges me to have luac or texluac files, while the magazine tells only about luatex/texlua. It seems like luac not is the same as luatex, so I'm in despair because don't know where to get those additional files. > > // from luatools.lua // > function utils.lua.compile(luafile, lucfile) > -- utils.report("compiling",luafile,"into",lucfile) > os.remove(lucfile) > local command = "-s -o " .. string.quote(lucfile) .. " " .. string.quote(luafile) > if os.execute("texluac " .. command) == 0 then > return true > elseif os.execute("luac " .. command) == 0 then > return true > else > return false > end > end > > ___________________________________________________________________________________ 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 ___________________________________________________________________________________