From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/54457 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Pstricks and Asymptote Date: Tue, 17 Nov 2009 10:29:59 -0500 (EST) Message-ID: References: <6F6819BC-7FD8-4FE4-8726-BD05F102723F@uni-bonn.de> <200911161543.20151.alan.braslau@cea.fr> <3b4b12310911161457s37d837eic14397ebe823b5a2@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1258471827 22088 80.91.229.12 (17 Nov 2009 15:30:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Nov 2009 15:30:27 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 17 16:30:21 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1NAQ0a-0005fy-HU for gctc-ntg-context-518@m.gmane.org; Tue, 17 Nov 2009 16:30:20 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CCC4EC9AD9; Tue, 17 Nov 2009 16:27:56 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id KTuy7--0Pc02; Tue, 17 Nov 2009 16:27:54 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D540EC9A9C; Tue, 17 Nov 2009 16:27:53 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 33A00C9A9C for ; Tue, 17 Nov 2009 16:27:53 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id iTQhy4JHO-um for ; Tue, 17 Nov 2009 16:27:40 +0100 (CET) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by balder.ntg.nl (Postfix) with ESMTP id 50353C9A70 for ; Tue, 17 Nov 2009 16:27:39 +0100 (CET) Original-Received: FROM dhcp128036205126.central.yale.edu (dhcp128036205126.central.yale.edu [128.36.205.126]) By hackers.mr.itd.umich.edu ID 4B02C177.63A6F.20913 ; Authuser adityam; 17 Nov 2009 10:29:59 EST In-Reply-To: <3b4b12310911161457s37d837eic14397ebe823b5a2@mail.gmail.com> User-Agent: Alpine 2.01 (LNX 1266 2009-07-14) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:54457 Archived-At: On Mon, 16 Nov 2009, Curiouslearn wrote: > Mojca, in case you read this, can you please let me know what the > status on asymptote is. I am not Mojca, but I'll comment on this anyways :) I looked into integrating asymptote this summer (spent around a month going to asymptote macro code). Asymptote works fine with mkiv, if you use asymptote in a stand alone mode. Getting asymptote to run within context is easy or extremely difficult; depending on how you look at it. If one wants to set everything the asymptote way, and simply want \startASYcode ... \stopASYcode to copy its content to its file, create a asymptote figure and insert it in context, that is easy. You just need to tweak three lines of m-r.tex and you are done (m-r.tex is around 15 lines only). But that means that the user is responsible for setting all the fonts on his own (using asymptote syntax). To be at par with metapost, we should have \startASYenvironment to set the fonts, \startASYinclusions to define macros, and then \startASYcode to create figures; maybe also have \defineASYgraphic (need to set OverlayWidth etc.) and \defineASYreusablegraphic. Ideally, we should also have the equivalent of \sometxt, but after going through asymptote code, I gave up on that (establishing a two way communication between asymptote and context is difficult). Most of the above is easy (in terms of implementation); but one needs to understand asymptote and context to implement them. I did not completely understand the low level asymptote code, so after a while, integrating asymptote got low on my priorities. Maybe someone else should look at it seriously. Aditya ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________