From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: org-babel, position and indentation of resname Date: Tue, 22 Sep 2009 19:57:59 -0600 Message-ID: References: <87k4zqg9a7.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MqHLN-0004qs-D2 for emacs-orgmode@gnu.org; Tue, 22 Sep 2009 22:12:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MqHLI-0004kJ-6c for emacs-orgmode@gnu.org; Tue, 22 Sep 2009 22:12:32 -0400 Received: from [199.232.76.173] (port=53587 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqHLH-0004k1-UT for emacs-orgmode@gnu.org; Tue, 22 Sep 2009 22:12:27 -0400 Received: from mail-pz0-f181.google.com ([209.85.222.181]:33128) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MqHEq-0000YP-9d for emacs-orgmode@gnu.org; Tue, 22 Sep 2009 22:05:48 -0400 Received: by pzk11 with SMTP id 11so233310pzk.14 for ; Tue, 22 Sep 2009 19:05:47 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org-mode list --=-=-= Nicolas Goaziou writes: > Hello, > > I would like to put all my asymptote code in the header of the org file, > and then, display the result later. I tried to move #+resname: but it is > recreated just beneath the corresponding code at each export. I tried to > use #+srcname: without success either. > Ah! You have found a bug in the existing code. The mechanism for replacing results was overly complex and I have now cleaned it up somewhat. After grabbing the latest version of Org-mode the attached file insert the asymptote results in the appropriate place. --=-=-= Content-Disposition: inline; filename=resname.org * demonstrating use of =#+srcname:= with =#+resname:= #+srcname: circles #+begin_src asymptote :file circles.png import graph; size(0,4cm); real f(real t) {return cos(t);} path g=polargraph(f,0,2pi,operator ..)--cycle; filldraw(g,pink); for(int i=0; i < 8; ++i) { real j = 0.125 + 0.125*i; real h(real t) {return j;}; path k=polargraph(h, -(acos(j)), acos(j), operator ..); draw(k,blue); } xaxis("$x$",above=true); yaxis("$y$",above=true); dot("$(pi,0)$",(1,0),N); #+end_src ** a sub-header sub-stuff ** another sub-header and finally the results #+resname: circles --=-=-= > > Is it possible to achieve this ? If I can't put #+resname: anywhere but > beneath the block, is it possible to get the #+resname: and the name of > the file indented like the corresponding block ? > I believe that in the current setup the block can be indented but #+resname: lines can _not_ be indented. Best -- Eric > > Regards, > > -- > Nicolas Goaziou > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --=-=-=--