From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/12347 Path: main.gmane.org!not-for-mail From: Jens-Uwe Morawski Newsgroups: gmane.comp.tex.context Subject: Re: A Metapost question Date: Thu, 22 May 2003 13:19:39 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <20030522131939.69ed98e8.morawski@gmx.net> References: <200305221147.14357.quasar@econ.muni.cz> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1053602301 12833 80.91.224.249 (22 May 2003 11:18:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 22 May 2003 11:18:21 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Thu May 22 13:18:19 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Io5T-0003Kq-00 for ; Thu, 22 May 2003 13:18:19 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 44DAB10B10; Thu, 22 May 2003 13:20:11 +0200 (MEST) Original-Received: from mail.gmx.net (pop.gmx.de [213.165.65.60]) by ref.ntg.nl (Postfix) with SMTP id A953210ACE for ; Thu, 22 May 2003 13:16:46 +0200 (MEST) Original-Received: (qmail 10565 invoked by uid 65534); 22 May 2003 11:16:45 -0000 Original-Received: from port1230.fra.ginko.net (EHLO melior.localdomain) (212.202.66.214) by mail.gmx.net (mp011-rz3) with SMTP; 22 May 2003 13:16:45 +0200 Original-To: ntg-context@ntg.nl In-Reply-To: <200305221147.14357.quasar@econ.muni.cz> X-Mailer: Sylpheed version 0.8.11 (GTK+ 1.2.10; i586-pc-linux-gnu) 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:12347 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:12347 On Thu, 22 May 2003 11:47:14 +0200 Michal Kvasnicka wrote: > I'd like to join two point (E1 and E2) having the same ypart > (ypart(E1)=ypart(E2)) with the TeX underbrace sign. To do it I have to tell > TeX (via btex ... etex?) the horizontal distance of the two points. Do you > know how can I do it? %%% snip--> input TEX ; pair E[] ; numeric XShift ; XShift := 3cm ; E1 := (1,13) ; E2 := E1 shifted (XShift,0) ; beginfig(1); pickup pencircle scaled 2pt ; draw E1 ; label.top("E1",E1); draw E2 ; label.top("E2",E2); labeloffset := 0 ; label.bot( TEX("$\underbrace{\hbox to " & (decimal (xpart (E2-E1))) & "bp{}}$"), 0.5[E1,E2]) ; endfig; end %%%<--snap The example above is plain MP. Embedded in a ConTeXt document you should better use the "textext" macro instead of the "TEX" macro from TEX.mp. Jens