On Sun, Feb 27, 2011 at 10:24 PM, Eric Schulte wrote: > 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 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. OK - further test: after an update this morning to Org-mode version 7.4 (release_7.4.553.g83b7) even the export of the whole document top pdf, does not include the graphs. In contrast, when using 7.01g with the same emacs.org file, the export of the complete document includes the graphs, although on 7.01g, no subtree export does include an graph. With Org-mode version 7.4 (release_7.4.553.g83b7), no export of any subtree included any graph. I attach my (longish) emacs.org file ant the init.el, but I do not think there is a problem in there. Cheers, Rainer >> >> 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 > -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell:           +27 - (0)83 9479 042 Fax:            +27 - (0)86 516 2782 Fax:            +49 - (0)321 2125 2244 email:          Rainer@krugs.de Skype:          RMkrug Google:         R.M.Krug@gmail.com