Greetings Li, On Sun, Mar 17, 2013 at 9:10 AM, Li Bowen <a0050...@nus.edu.sg> 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