From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16731 Path: main.gmane.org!not-for-mail From: Eckhart =?iso-8859-1?Q?Guth=F6hrlein?= Newsgroups: gmane.comp.tex.context Subject: Re: Metapost + metaObjet connector label on arcs Date: Fri, 22 Oct 2004 14:24:46 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <20041022122446.GC23718@cebitec.uni-bielefeld.de> References: <426C6168-228F-11D9-9E13-000A9595B57C@ensta.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1098448009 12754 80.91.229.6 (22 Oct 2004 12:26:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 22 Oct 2004 12:26:49 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 22 14:26:37 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CKyVA-0002lS-00 for ; Fri, 22 Oct 2004 14:26:36 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8FB6E126F8; Fri, 22 Oct 2004 14:26:36 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17731-03; Fri, 22 Oct 2004 14:26:36 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C315A12772; Fri, 22 Oct 2004 14:24:51 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 21AC412772 for ; Fri, 22 Oct 2004 14:24:49 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17561-04 for ; Fri, 22 Oct 2004 14:24:48 +0200 (CEST) Original-Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE (unknown [129.70.160.28]) by ronja.ntg.nl (Postfix) with ESMTP id 6BAD1126F8 for ; Fri, 22 Oct 2004 14:24:48 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 0A9F82D608 for ; Fri, 22 Oct 2004 14:24:48 +0200 (MEST) Original-Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (sauron [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 11819-01-6 for ; Fri, 22 Oct 2004 14:24:47 +0200 (MEST) Original-Received: from mowgli.Genetik.Uni-Bielefeld.DE (mowgli.CeBiTec.Uni-Bielefeld.DE [129.70.160.61]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id ECC8E2D606 for ; Fri, 22 Oct 2004 14:24:46 +0200 (MEST) Original-Received: by mowgli.Genetik.Uni-Bielefeld.DE (Postfix, from userid 13119) id C35C71254; Fri, 22 Oct 2004 14:24:46 +0200 (MEST) Original-To: mailing list for ConTeXt users Mail-Followup-To: mailing list for ConTeXt users Content-Disposition: inline In-Reply-To: <426C6168-228F-11D9-9E13-000A9595B57C@ensta.fr> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at cebitec.uni-bielefeld.de X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:16731 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16731 On Wed, Oct 20, 2004 at 01:57:47PM +0200, Maurice Diamantini wrote: > I hope I'm not too much out of topic, but I'm trying > to put a metapost figure in a context file. > I use a separate file for the figure to keep it > independant, (and to avoid cumul of problems :-) > > The objectif is to build a graph by positionning some > node (for now, it is just a circle) > connecting them bu some ncarc connector (using metaObj) > and the put label onto these arc. > > I know that one can do that using tree or matrix mataObj > feature, but I'd want to be flexible on the node positions, You can attach named paths to objects and then labels these. Here is my first try, seems to work: \startMPinclusions input metaobj; \stopMPinclusions \startreusableMPgraphic{labeltest} newCircle.a(btex A etex); newCircle.b(btex B etex); a.c=origin; b.c=a.c+(1cm,2cm); ncline.b(a)(b) "name(ab)"; ObjLabel.b(btex $a\rightarrow b$ etex) "labpathname(ab)", "labangle(0)"; drawObj(a,b); \stopreusableMPgraphic \starttext \reuseMPgraphic{labeltest} \stoptext For more options for labels, see page 54ff of the metaobj manual. Greetings, Eckhart