From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: inline src_R also in latex src block Date: Wed, 11 Jan 2012 08:54:20 +0100 Message-ID: <80d3aqznbn.fsf@somewhere.org> 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> <4f0cc7e9.e4030e0a.7250.4f65@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Michael, Michael Bach wrote: > 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... That's perfectly correct: as long as your input code block does not change (options on the "meta" line and/or contents), your results will be taken "as is", instead of being recomputed every time. Best regards, Seb -- Sebastien Vauban