[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] org-babel src block generated graphics included twice if CAPTION
From: |
Jay Kerns |
Subject: |
Re: [O] org-babel src block generated graphics included twice if CAPTION is added |
Date: |
Sun, 17 Mar 2013 18:08:40 -0400 |
Greetings Li,
On Sun, Mar 17, 2013 at 9:10 AM, Li Bowen <address@hidden> 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