emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Daniel Gonzalez <gonvaled@gonvaled.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: Problems with integration between asmyptote and org mode [7.7]
Date: Thu, 11 Aug 2011 16:54:19 +0200	[thread overview]
Message-ID: <87sjp8j8x0.fsf@gmail.com> (raw)
In-Reply-To: <CAAOi-OEicmEgbmyMGKqty86MbvD1sC0veoGT+OA10X9o4Ruffg@mail.gmail.com> (Daniel Gonzalez's message of "Wed, 10 Aug 2011 11:08:05 +0200")

Hello,

Daniel Gonzalez <gonvaled@gonvaled.com> 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

  reply	other threads:[~2011-08-11 14:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-10  9:08 Bug: Problems with integration between asmyptote and org mode [7.7] Daniel Gonzalez
2011-08-11 14:54 ` Nicolas Goaziou [this message]
2011-08-12  7:16   ` Daniel Gonzalez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sjp8j8x0.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=gonvaled@gonvaled.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).