From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/23782 Path: news.gmane.org!not-for-mail From: Fabrice Larribe Newsgroups: gmane.comp.tex.context Subject: Re: How is it possible to include DraTex codein Context? Date: Fri, 25 Nov 2005 13:14:40 -0500 Organization: UQAM, Math Message-ID: <43875490.1060906@uqam.ca> References: <3DA71F8D231E5F40956368B045D89FB4035821D4@calepin.gst.uqam.ca> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1132942602 13293 80.91.229.2 (25 Nov 2005 18:16:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 25 Nov 2005 18:16:42 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 25 19:16:41 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1Efi65-0003VW-85 for gctc-ntg-context-518@m.gmane.org; Fri, 25 Nov 2005 19:14:57 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CEABB12799; Fri, 25 Nov 2005 19:14:56 +0100 (CET) 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 08414-01-3; Fri, 25 Nov 2005 19:14:53 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 554331286C; Fri, 25 Nov 2005 19:14:53 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DE7CA1286C for ; Fri, 25 Nov 2005 19:14:51 +0100 (CET) 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 08414-01-2 for ; Fri, 25 Nov 2005 19:14:50 +0100 (CET) Original-Received: from tomts25-srv.bellnexxia.net (tomts25.bellnexxia.net [209.226.175.188]) by ronja.ntg.nl (Postfix) with ESMTP id 7180412799 for ; Fri, 25 Nov 2005 19:14:50 +0100 (CET) Original-Received: from [192.168.1.4] ([67.68.198.72]) by tomts25-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20051125181448.KUEH28424.tomts25-srv.bellnexxia.net@[192.168.1.4]> for ; Fri, 25 Nov 2005 13:14:48 -0500 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <3DA71F8D231E5F40956368B045D89FB4035821D4@calepin.gst.uqam.ca> X-Originating-IP: [0] X-Virus-Scanned: 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: , 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:23782 Archived-At: Hans Hagen wrote: > Fabrice Larribe wrote > > >> > > Thanks for your help. I have put the two files in context/base, and > > use \usemodule. In the log, > > the system inform that the two modules are loaded. But I have the same > > error, "No room for a new \dimen". > > So this is not working. Unless you have others ideas, I guess I have > > to do my figures in plain tex to obtain > > pdf, and then use the pdf in Context. Of course, a better solution is > > to learn metafun....!! > > Thanks for your help. > > > can you make a small test file that shows the problem? > I'm not sure if I can atatch a file to mailing-list, so I paste here a piece of code, which works with Tex: (between \Draw and \EndDraw of course). \usemodule[dratex] \usemodule[Aldratex] \starttext \Draw \Ragged(1) \MoveTo(0,0)\CircleNode(e0)(--0--)\MarkLoc(e0) \MoveTo(120,0)\CircleNode(e1)(--1--)\MarkLoc(e1) \MoveTo(60,80)\CircleNode(e2)(--2--)\MarkLoc(e2) \ArrowHeads(1) \MoveToLoc(e1)\Rotate(20)\CycleEdgeSpec(40,30)\CycleEdge(e1)\EdgeLabel(--$1-p$--) \CurvedEdgeSpec(15,0.2,345,0.2) \CurvedEdge(e0,e2)\EdgeLabel(--$1$--) \CurvedEdge(e1,e2)\EdgeLabel(--$p$--) \CurvedEdge(e2,e0)\EdgeLabel(--$1-p$--) \CurvedEdge(e2,e1)\EdgeLabel(--$p$--) \EndDraw \stoptext > (when we have it working i'll ask Eitan to fix this, i.e. adapt dratex > to etex usage) > Hans > This would be wonderfull. Dratex is simple and powerfull, and portable between plain tex, latex and perhaps one day context ! Thanks for the help. This is much appreciated. Fabrice.