Re: [O] org-babel src block generated graphics included twice if CAPTION is added

2013-03-18 Thread Achim Gratz
Eric Schulte writes: I just pushed up a patch which should allow code blocks to find un-named results even when there are comment lines (such as #+options or #+attr_backend) between the code block and the results. Shouldn't babel use org-element for things like this? Regards, Achim. -- +[Q+

Re: [O] org-babel src block generated graphics included twice if CAPTION is added

2013-03-18 Thread Eric Schulte
Achim Gratz strom...@nexgo.de writes: Eric Schulte writes: I just pushed up a patch which should allow code blocks to find un-named results even when there are comment lines (such as #+options or #+attr_backend) between the code block and the results. Shouldn't babel use org-element for

[O] org-babel src block generated graphics included twice if CAPTION is added

2013-03-17 Thread Li Bowen
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] Many thanks. -- Sincerely, Li Bowen.

Re: [O] org-babel src block generated graphics included twice if CAPTION is added

2013-03-17 Thread Jay Kerns
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

Re: [O] org-babel src block generated graphics included twice if CAPTION is added

2013-03-17 Thread Nick Dokos
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] Many thanks.

Re: [O] org-babel src block generated graphics included twice if CAPTION is added

2013-03-17 Thread Jay Kerns
On Sun, Mar 17, 2013 at 6:21 PM, Nick Dokos nicholas.do...@hp.com 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.

Re: [O] org-babel src block generated graphics included twice if CAPTION is added

2013-03-17 Thread John Hendy
On Sun, Mar 17, 2013 at 6:20 PM, Jay Kerns gjkerns...@gmail.com wrote: On Sun, Mar 17, 2013 at 6:21 PM, Nick Dokos nicholas.do...@hp.com 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

Re: [O] org-babel src block generated graphics included twice if CAPTION is added

2013-03-17 Thread Eric Schulte
I just pushed up a patch which should allow code blocks to find un-named results even when there are comment lines (such as #+options or #+attr_backend) between the code block and the results. Hope this helps, John Hendy jw.he...@gmail.com writes: On Sun, Mar 17, 2013 at 6:20 PM, Jay Kerns

Re: [O] org-babel src block generated graphics included twice if CAPTION is added

2013-03-17 Thread John Hendy
On Sun, Mar 17, 2013 at 8:15 PM, Li Bowen a0050...@nus.edu.sg wrote: Thanks, John. I also noticed that #+options can lead to re-insertion. Your piece of instruction should go to the online documentation. It will save people hours of time from trouble-shooting. I suppose any one who writes a