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+
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
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.
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
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.
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.
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
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
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