Hi Rainer, I tried to reproduce this problem, but it seems to have worked as expected on my system, specifically when exporting the "Her it does not work" subtree, I get the following in the resulting .tex file.
#+begin_src latex \section*{Her it does not work} \label{sec-1} \subsection*{R code graph} \label{sec-1_1} \begin{verbatim} pdf("pdf1.pdf") plot(runif(100)) dev.off() cat( "\n|--|--|\n", "|name|[[./pdf1.pdf]]|\n", "|--|--|\n" ) \end{verbatim} \begin{verbatim} null device 1 |--|--| |name|[[./pdf1.pdf]]| |--|--| \end{verbatim} #+end_src Cheers -- Eric Rainer M Krug <r.m.k...@gmail.com> writes: > Hi, > > When exporting this buffer to pdf, the R code becomes evaluated and > the code and the result becomes exported; but when I export only the > "Here it does not work" subtree, the :exports: is ignored and only the > code is exported; if I export only the "Here it works" subtree, the > code and result are exported as ":export both" is used as a header > argument. > > Cheers, > > Rainer > > * Her it does not work > :PROPERTIES: > :tangle: no > :results: output org > :exports: both > :END: > ** R code graph > #+begin_src R > pdf("pdf1.pdf") > plot(runif(100)) > dev.off() > > cat( > "\n|--|--|\n", > "|name|[[./pdf1.pdf]]|\n", > "|--|--|\n" > ) > #+end_src > > > * Here it works > :PROPERTIES: > :tangle: no > :results: output org > :exports: both > :END: > ** R code graph > #+begin_src R :exports both > pdf("pdf1.pdf") > plot(runif(100)) > dev.off() > > cat( > "\n|--|--|\n", > "|name|[[./pdf1.pdf]]|\n", > "|--|--|\n" > ) > #+end_src _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode