From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [BABEL] [BUG] Property ":exports: both" ignored when exporting subtree Date: Sun, 27 Feb 2011 14:24:06 -0700 Message-ID: <87tyfp893d.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=46234 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pto6B-0003LW-9e for emacs-orgmode@gnu.org; Sun, 27 Feb 2011 16:24:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pto69-0008BY-W5 for emacs-orgmode@gnu.org; Sun, 27 Feb 2011 16:24:15 -0500 Received: from mail-px0-f169.google.com ([209.85.212.169]:46686) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pto69-0008Ac-KR for emacs-orgmode@gnu.org; Sun, 27 Feb 2011 16:24:13 -0500 Received: by pxi9 with SMTP id 9so824328pxi.0 for ; Sun, 27 Feb 2011 13:24:12 -0800 (PST) In-Reply-To: (Rainer M. Krug's message of "Fri, 25 Feb 2011 17:15:34 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rainer M Krug Cc: emacs-orgmode 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. > > 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