From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Problems with integration between asmyptote and org mode [7.7] Date: Thu, 11 Aug 2011 16:54:19 +0200 Message-ID: <87sjp8j8x0.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:52667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrWeo-00059F-Hh for emacs-orgmode@gnu.org; Thu, 11 Aug 2011 10:54:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QrWen-0003hY-BP for emacs-orgmode@gnu.org; Thu, 11 Aug 2011 10:54:50 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:44453) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrWen-0003hU-1R for emacs-orgmode@gnu.org; Thu, 11 Aug 2011 10:54:49 -0400 Received: by wyi11 with SMTP id 11so1759424wyi.0 for ; Thu, 11 Aug 2011 07:54:47 -0700 (PDT) In-Reply-To: (Daniel Gonzalez's message of "Wed, 10 Aug 2011 11:08:05 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Daniel Gonzalez Cc: emacs-orgmode@gnu.org Hello, Daniel Gonzalez writes: > I have this code to activate asymptote: [...] Asymptote is included in Babel. Be sure to load the language: #+begin_src org (org-babel-do-load-languages 'org-babel-load-languages '((asymptote . t) (emacs-lisp . t))) #+end_src Then it's just about doing (when ii/ is created): #+begin_src asymptote :file ii/asy-output.png import graph; size(0,4cm); real f(real t) {return 1+cos(t);} path g=polargraph(f,0,2pi,operator ..)--cycle; filldraw(g,pink); xaxis("$x$",above=true); yaxis("$y$",above=true); dot("$(a,0)$",(1,0),N); dot("$(2a,0)$",(2,0),N+E); #+end_src Regards, -- Nicolas Goaziou