From: Dan Davison <davison@stats.ox.ac.uk>
To: "Thomas S. Dye" <tsd@tsdye.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [babel] noweb expansion of LaTeX output from R
Date: Mon, 02 Nov 2009 01:08:27 -0500 [thread overview]
Message-ID: <87639tjw6c.fsf@stats.ox.ac.uk> (raw)
In-Reply-To: <55F86F16-4D06-4D32-93C6-AD9BD59F9645@tsdye.com> (Thomas S. Dye's message of "Sun, 1 Nov 2009 17:36:18 -1000")
"Thomas S. Dye" <tsd@tsdye.com> writes:
> On Nov 1, 2009, at 1:42 PM, Dan Davison wrote:
>
>> "Thomas S. Dye" <tsd@tsdye.com> writes:
>>
>>> On Nov 1, 2009, at 12:24 PM, Dan Davison wrote:
>>>
>>>> "Thomas S. Dye" <tsd@tsdye.com> 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.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
prev parent reply other threads:[~2009-11-02 6:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-01 21:45 [babel] noweb expansion of LaTeX output from R Thomas S. Dye
2009-11-01 22:24 ` Dan Davison
[not found] ` <4A5A0920-3560-40A2-BC17-67198796720D@tsdye.com>
[not found] ` <87aaz5q0c5.fsf@stats.ox.ac.uk>
2009-11-02 2:59 ` Thomas S. Dye
2009-11-02 3:36 ` Thomas S. Dye
2009-11-02 6:08 ` Dan Davison [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87639tjw6c.fsf@stats.ox.ac.uk \
--to=davison@stats.ox.ac.uk \
--cc=emacs-orgmode@gnu.org \
--cc=tsd@tsdye.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).