From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Bach Subject: Re: inline src_R also in latex src block Date: Wed, 11 Jan 2012 00:25:46 +0100 Message-ID: <4f0cc7e9.e4030e0a.7250.4f65@mx.google.com> References: <4efdfe43.c9330e0a.78cb.ffff9b12@mx.google.com> <87pqf2c6q7.fsf@gmx.com> <4f0c2d36.812f0e0a.303f.738e@mx.google.com> <877h0z7lwp.fsf@med.uni-goettingen.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rkl0I-0006yQ-Td for emacs-orgmode@gnu.org; Tue, 10 Jan 2012 18:21:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rkl0G-00073a-NA for emacs-orgmode@gnu.org; Tue, 10 Jan 2012 18:21:18 -0500 Received: from mail-ee0-f41.google.com ([74.125.83.41]:48995) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rkl0G-00072m-6V for emacs-orgmode@gnu.org; Tue, 10 Jan 2012 18:21:16 -0500 Received: by eeke53 with SMTP id e53so47525eek.0 for ; Tue, 10 Jan 2012 15:21:15 -0800 (PST) In-Reply-To: <877h0z7lwp.fsf@med.uni-goettingen.de> (Andreas Leha's message of "Tue, 10 Jan 2012 14:00:06 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Andreas Leha Cc: emacs-orgmode@gnu.org Andreas Leha writes: > would this noweb-based approach work for you: > > #+name: inner_test > #+begin_src R > 4 + 4 > #+end_src > > #+name: test > #+begin_src latex :noweb yes > \begin{equation} > <> > \end{equation} > #+end_src > Yes, that works. Thanks for your thoughts on this, Andreas. I am just thinking of another benefit: Is it correct that I can use caching with this approach? So that the call to <> does not evaluate the `inner_test' block but instead takes its results directly from the cached `#+results[6099...]: inner_test' block? This would be speedier than src_R usage...