From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15062 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: texexec and TEX Date: Wed, 28 Apr 2004 19:56:13 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <6.0.1.1.2.20040428195405.01eb5ec0@server-1> References: <40854CC0.3040807@econ.muni.cz> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: sea.gmane.org 1083176779 14994 80.91.224.253 (28 Apr 2004 18:26:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Apr 2004 18:26:19 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Wed Apr 28 20:26:09 2004 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BItl3-0008I7-00 for ; Wed, 28 Apr 2004 20:26:09 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 4677A10B6C; Wed, 28 Apr 2004 20:22:14 +0200 (MEST) Original-Received: from mailrelay01.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ref.ntg.nl (Postfix) with ESMTP id 9DE8610B69 for ; Wed, 28 Apr 2004 20:20:53 +0200 (MEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id i3SIMx1s029430 for ; Wed, 28 Apr 2004 20:22:59 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 8816D23819; Wed, 28 Apr 2004 20:24:43 +0200 (CEST) Original-Received: from laptop-3.wxs.nl (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 0374823815 for ; Wed, 28 Apr 2004 18:24:41 +0000 (UTC) X-Sender: hagen-mail@server-1 X-Mailer: QUALCOMM Windows Eudora Version 6.0.1.1 Original-To: ntg-context@ntg.nl In-Reply-To: <40854CC0.3040807@econ.muni.cz> Original-References: <40854CC0.3040807@econ.muni.cz> X-Virus-Scanned: clamd / ClamAV version devel-20040415, clamav-milter version 0.70i Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:15062 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15062 At 18:16 20/04/2004, Michal Kvasnicka wrote: >Good evening. > >Is there some restriction to Metapost macros when compiled by texexec >--mptex? I'd like to compile a file like this: i can't see what goes wrong there (this tex in mp stuff is such a mess) from within context the following works ok: \starttext \startMPpage[offset=4cm] z1=(0,1cm); z2=(3cm,1cm); dotlabel.top(btex $z_1$ etex,z1); dotlabel.top(btex $z_2$ etex,z2); draw textext("$\string\underbrace{\hbox to "&decimal(xpart(z2)-xpart(z1))&"pt{\hss}}$") shifted .5[z1,z2]; \stopMPpage \stoptext or: \starttext \let\normalunderbrace\underbrace \unexpanded\def\underbrace{\normalunderbrace} % hm, i need to make these unexpanded \startMPpage[offset=4cm] z1=(0,1cm); z2=(3cm,1cm); dotlabel.top(btex $z_1$ etex,z1); dotlabel.top(btex $z_2$ etex,z2); draw textext("$\underbrace{\hbox to "&decimal(xpart(z2)-xpart(z1))&"pt{\hss}}$") shifted .5[z1,z2]; \stopMPpage \stoptext Hans