emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] [babel] noweb expansion of LaTeX output from R


From: Dan Davison
Subject: Re: [Orgmode] [babel] noweb expansion of LaTeX output from R
Date: Mon, 02 Nov 2009 01:08:27 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

"Thomas S. Dye" <address@hidden> writes:

> On Nov 1, 2009, at 1:42 PM, Dan Davison wrote:
>
>> "Thomas S. Dye" <address@hidden> writes:
>>
>>> On Nov 1, 2009, at 12:24 PM, Dan Davison wrote:
>>>
>>>> "Thomas S. Dye" <address@hidden> writes:
>>>>
>>>>> Aloha all,
>>>>>
>>>>> Is it possible to use the noweb syntax to pass LaTeX output from R
>>>>> into a latex source block?  I thought this would work, but the
>>>>> noweb
>>>>> expansion yields nil.
<...>
>
> Hi Dan,
>
> This org file reproduces the results I'm seeing.

Hi Tom,

Thanks, I've fixed that, change will be available soon. In the meantime,
I believe that the example does work OK as long as the results of the
r-weight-quantile block are *not* in the org buffer.

Dan

>
> * test R->latex
>
> #+begin_src latex :tangle td2.tex
> Here is the inner block:
> <<inner-block>>
> #+end_src
>
> #+srcname: inner-block
> #+begin_src latex
> Here is the output of the quantile
>  function:
> <<r-weight-quantile()>>.
> #+end_src
>
> #+srcname: r-weight-quantile
> #+begin_src R :session :noweb :results output latex
> library(xtable)
> xtable(data.frame(cbind(a=1:3,b=4:6)))
> #+end_src
>
>
> % generated by org-babel-tangle
>
> % [[file:~/Public/projects/903_adzes/org-babel/test-noweb.org::*test
> %20R%20latex][block-1]]
> Here is the inner block:
>
> Here is the output of the quantile
>  function:
> nil.
> % block-1 ends here
>
> Tom
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode




reply via email to

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