From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/40249 Path: news.gmane.org!not-for-mail From: John Devereux Newsgroups: gmane.comp.tex.context Subject: Re: Unable to generate luatex formats Date: Tue, 15 Apr 2008 13:52:45 +0100 Message-ID: <87y77fjn4y.fsf@cordelia.devereux.me.uk> References: <87r6d7lfcw.fsf@cordelia.devereux.me.uk> <480475DA.60908@elvenkind.com> <87ej97laff.fsf@cordelia.devereux.me.uk> <48047BB4.8040902@wxs.nl> <87abjvl7z5.fsf@cordelia.devereux.me.uk> <6faad9f00804150346l3b78887drc47e996352df558e@mail.gmail.com> <8763ujl5qc.fsf@cordelia.devereux.me.uk> <6faad9f00804150517s7fe84a08y12231b0601d94ab4@mail.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: ger.gmane.org 1208264079 2005 80.91.229.12 (15 Apr 2008 12:54:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Apr 2008 12:54:39 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 15 14:55:16 2008 connect(): Connection refused 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 1JlkgM-0002pv-FK for gctc-ntg-context-518@m.gmane.org; Tue, 15 Apr 2008 14:54:42 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4D8641FCEC; Tue, 15 Apr 2008 14:54:02 +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 26003-02-3; Tue, 15 Apr 2008 14:53:21 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CBD1C1FCBD; Tue, 15 Apr 2008 14:53:20 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 95A151FCB0 for ; Tue, 15 Apr 2008 14:53:18 +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 26003-02-2 for ; Tue, 15 Apr 2008 14:52:46 +0200 (CEST) Original-Received: from cordelia.devereux.me.uk (cordelia.devereux.me.uk [217.169.15.178]) by ronja.ntg.nl (Postfix) with ESMTP id F0F5C1FCD0 for ; Tue, 15 Apr 2008 14:52:45 +0200 (CEST) Original-Received: from [217.169.15.178] (helo=cordelia.devereux.me.uk ident=jd) by cordelia.devereux.me.uk with esmtp (Exim 4.69) (envelope-from ) id 1JlkeT-0007Gt-Jm for ntg-context@ntg.nl; Tue, 15 Apr 2008 13:52:45 +0100 In-Reply-To: <6faad9f00804150517s7fe84a08y12231b0601d94ab4@mail.gmail.com> (Mojca Miklavec's message of "Tue\, 15 Apr 2008 14\:17\:02 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux) 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:40249 Archived-At: "Mojca Miklavec" writes: > On Tue, Apr 15, 2008 at 1:25 PM, John Devereux wrote: >> >> "Mojca Miklavec" writes: >> >> >> Setting TEXMF was missing from the instructions in debian... Or perhaps I >> >> messed up my configuration in the past. >> >> >> >> luatools --ini --compile cont-en >> >> >> >> works now. >> >> >> >> I will start playing with it. >> >> >> >> A quick try of the example snippet did not work (see dump at end of >> >> message) but I will look into it more and try Mojcas advice re >> >> ctxtools --update. >> > >> > ctxtools --update won't help you as you have some missing fonts (msam7.tfm). >> > http://packages.debian.org/etch/all/texlive-base/filelist claims that >> > the file should be present in texlive-base in Debian, so it's a bit >> > confusing. >> > >> > Mojca >> >> Hi Mojca, >> >> There is a file here: >> >> /usr/share/texmf-texlive/fonts/tfm/public/ams/msam7.tfm >> >> But I don't know what else is needed. > > I would say that the installation might be slightly broken, even if > only a few variables are missing. How exactly did you install LuaTeX > and latest ConTeXt? Mojca, I followed the instructions here, where applicable for debian sid: Then the instruction in the README.MarkIV that appeared in the pckage documentation directory (appended to end of post). However I have been using context for years, and may well have messed something up! It seems to work OK with my "normal" documents. Except I notice \usemodule[gnuplot] does not work. John >> Setting TEXMF was missing from the instructions in debian... > > This should not happen, but once you answer the question about how you > have installed it, it might become clearer. > > Some time ago there was some problem on debian since Hans's lua > scripts were unable to parse TEXMFCNF (texmf.cnf) files properly, but > this might have been resolved in the meantime. ============================================================ README.luatex ============= Mark IV is the name of the LuaTeX-aware part of ConTeXt; that is, when you use ConTeXt over the LuaTeX engine instead of PDFTeX or XeTeX. You run it with texexec --lua. Currently the integration of Mark IV into Debian is not completely done, especially because the details are currently worked out (see the dev-context mailing list). If you want to start using Mark IV the following the following few points should get you started: 1) Right versions: luatex >= 0.20.2 context >= 2007.12.20 2) environment variables and luatex-cache Mark IV ships its own implementation of file searching and doesn't use the ls-R databases, but luatex-cache. You have to tell luatools where to find texmf.cnf, and then generate the cache: export TEXMFCNF=/usr/share/texmf/web2c luatools --generate --verbose This will generate the luatex-cache in $HOME. If you want to put it somewhere else set (and export) the TEXMFCACHE variable (like export TEXMFCACHE=/tmp) 3) Generate a Mark IV format This is not integrated into the usual format building process, and probably will need some time to be worked out completely as the current fmtutil cannot cope with Mark IV formats. Call luatools --ini --compile cont-en 4) Now you can try some simple document like (thanks to Arthur Reutenauer) \starttext \ctxlua{a = 1.5 ; b = 1.8 ; c = a*b ; tex.print(c) ;} or the equivalent: \startlua a = 1.5 b = 1.8 c = a*b tex.print(c) \stoplua You can also do more elaborate calculations with the lua math library: \ctxlua{tex.print("$\string\\sqrt{2} = " .. math.sqrt(2) .. "$")} \stoptext and run it with texexec --lua filename.tex -- John Devereux ___________________________________________________________________________________ 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 ___________________________________________________________________________________