From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16769 Path: main.gmane.org!not-for-mail From: Maurice Diamantini Newsgroups: gmane.comp.tex.context Subject: Re: Metapost + metaObjet connector label on arcs Date: Tue, 26 Oct 2004 13:34:23 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: References: <426C6168-228F-11D9-9E13-000A9595B57C@ensta.fr> <20041022122446.GC23718@cebitec.uni-bielefeld.de> <717A1C36-2448-11D9-BD8A-000A9595B57C@ensta.fr> <20041024203001.A26260@bar.loria.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1098790626 25818 80.91.229.6 (26 Oct 2004 11:37:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Oct 2004 11:37:06 +0000 (UTC) Cc: Diamantini Maurice , Denis.Roegel@loria.fr Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 26 13:36:51 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 1CMPdD-000363-00 for ; Tue, 26 Oct 2004 13:36:51 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4BFD21277F; Tue, 26 Oct 2004 13:36:51 +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 18431-01-3; Tue, 26 Oct 2004 13:36:49 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4EFCE12784; Tue, 26 Oct 2004 13:36:49 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7C3A912784 for ; Tue, 26 Oct 2004 13:36:47 +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 18431-01-2 for ; Tue, 26 Oct 2004 13:36:46 +0200 (CEST) Original-Received: from ns1.ensta.fr (unknown [147.250.10.1]) by ronja.ntg.nl (Postfix) with ESMTP id 75C8B1277F for ; Tue, 26 Oct 2004 13:36:46 +0200 (CEST) Original-Received: from localhost (unknown [127.0.0.1]) by ns1.ensta.fr (Postfix) with ESMTP id BD2B5313CED; Tue, 26 Oct 2004 13:36:01 +0200 (CEST) Original-Received: from ns1.ensta.fr ([127.0.0.1]) by localhost (ns1.ensta.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 54069-09; Tue, 26 Oct 2004 13:36:00 +0200 (CEST) Original-Received: from ensta.ensta.fr (ensta.ensta.fr [147.250.1.1]) by ns1.ensta.fr (Postfix) with ESMTP id 1B4FC313CCB; Tue, 26 Oct 2004 13:36:00 +0200 (CEST) Original-Received: from [147.250.33.133] (mac-oc1 [147.250.33.133]) by ensta.ensta.fr (8.11.6/9.11.6) with ESMTP id i9QBZj923939; Tue, 26 Oct 2004 13:35:59 +0200 In-Reply-To: <20041024203001.A26260@bar.loria.fr> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.619) 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:16769 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16769 Le 24 oct. 04, =E0 20:30, Denis Roegel a =E9crit : >> A new problem is that the label sep is to big from thes arcs, and >> I'm not able to ajust it. The "labshift" option doesn't seem >> to work with ncarc, althought it works for the nodes. > ... > this was possibly corrected in an unreleased version of metaobj: > http://www.loria.fr/~roegel/metaobj.mp Thank very much!! 1 - firstly, T've know solved my initial problem, and I've been able to build my first non-pstrick figure (thank to this mailing help). So the next points are not criticals for me. See them just as remarks or suggestions (but any help is still welcomme :-) 2 - about the "off topic": As denis is on this list, what is the best mailing for talking about metaObj Denis? 3 - about the metaObj prerelease: I suggest that the last package (metaobj.mp and its pdf doc) are not hidden, but accessible (and refered from Metapost page) from a public directory; The MetaObj package could be as important as Metapost itself for the ex-pstricks users; so it should be easy to get the last version 4 - about ConTeXt and Metapost: What should I put in the "verbatimtex ... etex" header to be able to use ConTexT in btex..etex instead of LaTex? (I don't want use (for now ) the "inside ConTeXt document" method for the sake of environnement robustness, and for reusability) 5 - about metapost: How can I build the string to give to TeX as in string str; str =3D "x^2" btex \large F =3D etex or perhaps somthing like : string str; str =3D "btex \large F =3D " & str =E9 " etex" eval(str) 6 - about Metaobj user class I'd have build two macros (see the end of this mail): - buildActivity(xxx) % buildActivity: % name: the name of the new node % inFig; figuure to put in the circle % botFig; figuure to put under the circle % topFig; figuure to put above the circle % coord : position of the center of the circle % Example : % buildActivity(n0, btex\large 0 etex, btex b0 etex, btex u0=20 etex, z0); from which I think I will be able to build a new more or less generic Node class with some options and default behavior, - buildArc(xxx) % buildArc(nodeSrc, nodeDst, labshift, labangle, labelFig) which was more difficult to tune (for me, as a Metapost beginner) Also I hadn't use it for my application because of the lack of genericity. In fact, Id'like to build a new class (newArc) which could be=20 considere as an object by itself, with its own set of options. (in particular default connector should be ncline, but easy to change to support all the metaObj connector) I think these two macros could serve as a good exemple of the power of metaObj, and would be much more readable than psTricks (i.e. TeX=20 langage) ! Thank you very much for these tools and for any other help, Maurice, -- http://www.ensta.fr/~diam/