From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jay Kerns Subject: Re: org-babel src block generated graphics included twice if CAPTION is added Date: Sun, 17 Mar 2013 18:08:40 -0400 Message-ID: References: <87obei18b9.fsf@nus.edu.sg> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53222) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHLlK-0008He-0k for emacs-orgmode@gnu.org; Sun, 17 Mar 2013 18:09:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UHLlF-0002UO-Ez for emacs-orgmode@gnu.org; Sun, 17 Mar 2013 18:09:05 -0400 Received: from mail-qa0-f52.google.com ([209.85.216.52]:56479) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHLlF-0002UA-Be for emacs-orgmode@gnu.org; Sun, 17 Mar 2013 18:09:01 -0400 Received: by mail-qa0-f52.google.com with SMTP id bs12so1311475qab.11 for ; Sun, 17 Mar 2013 15:09:01 -0700 (PDT) In-Reply-To: <87obei18b9.fsf@nus.edu.sg> 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: Li Bowen Cc: emacs-orgmode Greetings Li, On Sun, Mar 17, 2013 at 9:10 AM, Li Bowen wrote: > Hi, > > If #+CAPTION is added, the figure will be included in the exported pdf > file twice. > > #+begin_src R :exports both :results graphics :file img.pdf > hist(rnorm(100)) > #+end_src > > #+CAPTION: Some description > #+RESULTS: > [[file:img.pdf] > For that particular example maybe the quickest way to get rid of the extra figure (that is caption-less) would be to use ":exports code" instead of ":exports both". I hope this helps, -- Jay