From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/41080 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: missing btex ..etex in mp figure Date: Sat, 17 May 2008 17:41:48 +0200 Message-ID: <482EFCBC.2030909@wxs.nl> References: <482D58C7.40003@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 1211038988 16468 80.91.229.12 (17 May 2008 15:43:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 17 May 2008 15:43:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat May 17 17:43:45 2008 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 1JxOZU-0002GP-D7 for gctc-ntg-context-518@m.gmane.org; Sat, 17 May 2008 17:43:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C29121FB49; Sat, 17 May 2008 17:42:54 +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 03392-10-8; Sat, 17 May 2008 17:42:15 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2ED811FBC5; Sat, 17 May 2008 17:42:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 01E461FB49 for ; Sat, 17 May 2008 17:42:08 +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 03392-10-7 for ; Sat, 17 May 2008 17:41:49 +0200 (CEST) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by ronja.ntg.nl (Postfix) with ESMTP id 5AF0D1FBC5 for ; Sat, 17 May 2008 17:41:48 +0200 (CEST) Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-1 (SurgeMail 3.9e) with ESMTP id 6658-1840426 for ; Sat, 17 May 2008 17:41:48 +0200 User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) In-Reply-To: <482D58C7.40003@elvenkind.com> X-Originating-IP: 10.100.1.100 X-Authenticated-User: hagen@controller-1 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:41080 Archived-At: Taco Hoekwater wrote: > > luigi scarso wrote: >> In >> >> \starttext >> \startTEXpage >> \startlua >> metapost.process("metafun",{"beginfig(1);", >> "a=.7in; b=0.5in;", >> "z0=(0,0); z1=(a,0); z2=(0,b);", >> "z0=.5[z1,z3]=.5[z2,z4];", >> "draw z1..z2..z3..z4..cycle;", >> "drawarrow z0..z1;", >> "drawarrow z0..z2;", >> "label.top(btex $a$ etex, .5[z0,z1]);", >> "label.lft(btex $b$ etex, .5[z0,z2]);", >> "endfig;"}) >> \stoplua >> \stopTEXpage >> \stoptext >> >> there are no labels, but I believe that it's wrong. > > The MPlib library embedded in luatex does not actually > support btex .. etex blocks. > > It is planned to intercept such blocks in the mkiv lua > code, but for now, just use textext(). why not use \starttext \startMPpage a=.7in; b=0.5in; z0=(0,0); z1=(a,0); z2=(0,b); z0=.5[z1,z3]=.5[z2,z4]; draw z1..z2..z3..z4..cycle; drawarrow z0..z1; drawarrow z0..z2; label.top(btex $a$ etex, .5[z0,z1]); label.lft(btex $b$ etex, .5[z0,z2]); endfig; \stopMPpage \stoptext this uses: metapost.graphic(mpsformat,str,preamble) which does intercept the btex/etex ----------------------------------------------------------------- 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 ___________________________________________________________________________________