From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44485 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: mplib errors Date: Wed, 01 Oct 2008 16:08:39 +0200 Message-ID: <48E38467.9080603@elvenkind.com> References: <20080929155515.GA14040@blackowl.org> <5F77D372-1F9A-46D1-BE25-41B05004D9BB@uva.nl> <48E13631.9010802@elvenkind.com> <20080929204600.GA14623@blackowl.org> <48E14827.7030103@elvenkind.com> <20080930094024.GB15220@blackowl.org> <48E1F856.8030501@elvenkind.com> <20080930154528.GA15978@blackowl.org> <48E33F7A.80708@elvenkind.com> <20081001135712.GA17826@blackowl.org> 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 1222870311 14786 80.91.229.12 (1 Oct 2008 14:11:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Oct 2008 14:11:51 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 01 16:12:40 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 1Kl2Py-0002NC-Gk for gctc-ntg-context-518@m.gmane.org; Wed, 01 Oct 2008 16:11:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C68291FE0E; Wed, 1 Oct 2008 16:10:01 +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 26646-02-16; Wed, 1 Oct 2008 16:09:17 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 79BD91FE9B; Wed, 1 Oct 2008 16:09:17 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 50D831FE15 for ; Wed, 1 Oct 2008 16:09: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 26646-02-15 for ; Wed, 1 Oct 2008 16:08:40 +0200 (CEST) Original-Received: from plane.elvenkind.com (elvenknd.xs4all.nl [82.95.203.226]) by ronja.ntg.nl (Postfix) with ESMTP id 1313E1FE9B for ; Wed, 1 Oct 2008 16:08:40 +0200 (CEST) Original-Received: from glenlivet.elvenkind.com (glenlivet.elvenkind.com [10.10.0.6]) by plane.elvenkind.com (Postfix) with ESMTP id F2F21804171D for ; Wed, 1 Oct 2008 16:08:39 +0200 (CEST) User-Agent: Thunderbird 2.0.0.12 (X11/20080305) In-Reply-To: <20081001135712.GA17826@blackowl.org> 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:44485 Archived-At: Hi Olivier and Hans, Olivier wrote: > > Thanks a lot for these. With these hints I am now able to compile > metapost figs from conTeXt through "texexec --luatex" normaly. > To this end, I had to perform two tweaks: > > * the files mlib-run.lua, mlib-ctx.lua, and mlib-pdf.lua were *NEVER* > loaded so I added to my conTeXt source file: > \directlua0 { dofile > ("/usr/share/texmf/tex/context/base/mlib-ctx.lua") } > \directlua0 { dofile > ("/usr/share/texmf/tex/context/base/mlib-run.lua") } > \directlua0 { dofile > ("/usr/share/texmf/tex/context/base/mlib-pdf.lua") } Wouldn't that mean that $ luatools mlib-pdf.lua also fails to find the files? luatools --generate should be able to fix that. > * the format was generated correctly but loaded incorrectly: > I had to add the following line: > ini_version = false, > in the metapost.load function in the mlib-run.lua file. > > Now everything is OK. The second thing (an misfortunate typo) is easy > to fix. This should be fixable by simply updating your context, because that is already fixed in newer contexts. But this could well be the cause of Hans' problems. Best wishes, Taco ___________________________________________________________________________________ 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 ___________________________________________________________________________________