From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: Re: [babel] noweb expansion of LaTeX output from R Date: Mon, 02 Nov 2009 01:08:27 -0500 Message-ID: <87639tjw6c.fsf@stats.ox.ac.uk> References: <059A4FD8-DD27-4438-8032-C93988BCAB65@tsdye.com> <878wepg9xw.fsf@stats.ox.ac.uk> <4A5A0920-3560-40A2-BC17-67198796720D@tsdye.com> <87aaz5q0c5.fsf@stats.ox.ac.uk> <55F86F16-4D06-4D32-93C6-AD9BD59F9645@tsdye.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N4q5i-0000xt-Up for emacs-orgmode@gnu.org; Mon, 02 Nov 2009 01:08:34 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N4q5f-0000vH-1e for emacs-orgmode@gnu.org; Mon, 02 Nov 2009 01:08:34 -0500 Received: from [199.232.76.173] (port=48175 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4q5e-0000v9-Ms for emacs-orgmode@gnu.org; Mon, 02 Nov 2009 01:08:30 -0500 Received: from markov.stats.ox.ac.uk ([163.1.210.1]:60188) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N4q5e-00018k-8b for emacs-orgmode@gnu.org; Mon, 02 Nov 2009 01:08:30 -0500 In-Reply-To: <55F86F16-4D06-4D32-93C6-AD9BD59F9645@tsdye.com> (Thomas S. Dye's message of "Sun, 1 Nov 2009 17:36:18 -1000") 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: "Thomas S. Dye" Cc: emacs-orgmode@gnu.org "Thomas S. Dye" writes: > On Nov 1, 2009, at 1:42 PM, Dan Davison wrote: > >> "Thomas S. Dye" writes: >> >>> On Nov 1, 2009, at 12:24 PM, Dan Davison wrote: >>> >>>> "Thomas S. Dye" 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: > <> > #+end_src > > #+srcname: inner-block > #+begin_src latex > Here is the output of the quantile > function: > <>. > #+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