emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: [BABEL] [BUG] Property ":exports: both" ignored when expor


From: Eric Schulte
Subject: [Orgmode] Re: [BABEL] [BUG] Property ":exports: both" ignored when exporting subtree
Date: Sun, 27 Feb 2011 14:24:06 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

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 <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]