From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44484 Path: news.gmane.org!not-for-mail From: Olivier Newsgroups: gmane.comp.tex.context Subject: Re: mplib errors Date: Wed, 1 Oct 2008 15:57:12 +0200 Message-ID: <20081001135712.GA17826@blackowl.org> 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> 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 1222869378 11059 80.91.229.12 (1 Oct 2008 13:56:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Oct 2008 13:56:18 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 01 15:57:06 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 1Kl2CA-000539-Jz for gctc-ntg-context-518@m.gmane.org; Wed, 01 Oct 2008 15:56:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D83FF1FEA8; Wed, 1 Oct 2008 15:55:45 +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 26328-02-11; Wed, 1 Oct 2008 15:54:46 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 71DC11FCF4; Wed, 1 Oct 2008 15:54:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3C0B11FCD3 for ; Wed, 1 Oct 2008 15:54:45 +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 26328-02-10 for ; Wed, 1 Oct 2008 15:54:12 +0200 (CEST) Original-Received: from smtp8-g19.free.fr (smtp8-g19.free.fr [212.27.42.65]) by ronja.ntg.nl (Postfix) with ESMTP id 560891FE15 for ; Wed, 1 Oct 2008 15:54:12 +0200 (CEST) Original-Received: from smtp8-g19.free.fr (localhost [127.0.0.1]) by smtp8-g19.free.fr (Postfix) with ESMTP id D399632A7D6 for ; Wed, 1 Oct 2008 15:54:11 +0200 (CEST) Original-Received: from moramora (mic92-7-82-228-122-214.fbx.proxad.net [82.228.122.214]) by smtp8-g19.free.fr (Postfix) with ESMTP id C17AF32A7B4 for ; Wed, 1 Oct 2008 15:54:11 +0200 (CEST) Original-Received: from vony by moramora with local (Exim 4.69) (envelope-from ) id 1Kl2CW-0004dr-G6 for ntg-context@ntg.nl; Wed, 01 Oct 2008 15:57:12 +0200 Mail-Followup-To: mailing list for ConTeXt users Content-Disposition: inline In-Reply-To: <48E33F7A.80708@elvenkind.com> X-Operating-System: "Debian GNU/Linux" User-Agent: Mutt/1.5.18 (2008-05-17) 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:44484 Archived-At: Hi Taco, > Running mplib is easy enough to document, but that is only a part of > the work: you also have to convert the image to pdf literals, and > that is more work than I would like to put in the manual. OK. It could be nice then to simply state this? > Anyway, attached is a bunch of definitions I stripped out of context > that will allow you to run mplib in plain tex provided that you also > have context installed (you need mlib-pdf.lua for the PDF conversion) 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") } * 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. However, the fact that mlib-*.lua are never loaded is more worrying: any idea where this error comes from? Hope this will help Hans as well. Cheers, Olivier ___________________________________________________________________________________ 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 ___________________________________________________________________________________