From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: org-babel src block generated graphics included twice if CAPTION is added Date: Sun, 17 Mar 2013 19:32:36 -0500 Message-ID: References: <87obei18b9.fsf@nus.edu.sg> <4211.1363558889@alphaville> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHO0F-0003LY-Qj for emacs-orgmode@gnu.org; Sun, 17 Mar 2013 20:32:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UHO0D-0003bs-PZ for emacs-orgmode@gnu.org; Sun, 17 Mar 2013 20:32:39 -0400 Received: from mail-la0-x22f.google.com ([2a00:1450:4010:c03::22f]:61289) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHO0D-0003bf-IK for emacs-orgmode@gnu.org; Sun, 17 Mar 2013 20:32:37 -0400 Received: by mail-la0-f47.google.com with SMTP id fj20so5507337lab.34 for ; Sun, 17 Mar 2013 17:32:36 -0700 (PDT) In-Reply-To: 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: Jay Kerns Cc: Li Bowen , nicholas.dokos@hp.com, emacs-orgmode On Sun, Mar 17, 2013 at 6:20 PM, Jay Kerns wrote: > On Sun, Mar 17, 2013 at 6:21 PM, Nick Dokos wrote: > > [snip] > >> I think the best way to deal with problems like this is to name your code blocks (and results blocks). >> > > [snip] > > I can't speak for Li, but it works on my system and I like Nick's > solution better than mine. This is my preferred syntax as well. This has come up before on the list; essentially any #+options syntax before an un-named #+results block will cause the results to be re-inserted. #+begin_center or any #+attr_backend options result in the same duplicate insertion of results. Also, just in case it's not known, you don't have to manually name the #+results block. Just create your babel block with a #+name: attribute and when you run it with C-c C-c, a named #+result will automatically be created. John > > Cheers, > > -- > Jay >