From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: including the result of a block in several places? Date: Sat, 08 Dec 2012 11:13:51 +0100 Message-ID: References: <8038zh3eil.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThHPy-0002dk-P4 for emacs-orgmode@gnu.org; Sat, 08 Dec 2012 05:13:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ThHPu-0001Vu-Tt for emacs-orgmode@gnu.org; Sat, 08 Dec 2012 05:13:58 -0500 Received: from mail1-relais-roc.national.inria.fr ([192.134.164.82]:1681) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThHPu-0001Vp-NW for emacs-orgmode@gnu.org; Sat, 08 Dec 2012 05:13:54 -0500 In-Reply-To: <8038zh3eil.fsf@somewhere.org> (Sebastien Vauban's message of "Fri, 07 Dec 2012 19:26:10 +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: emacs-orgmode@gnu.org "Sebastien Vauban" writes: > Hi Alan, > > Alan Schmitt wrote: >> I tried including the result of evaluation a block in several slides, >> but the second time it was not included. >> >> Is it possible to have the results of the evaluation of a block in >> several places? > > OOTB, I don't think so. However, you could have a code block which simply > copies the results. > > See `echo' in the `library-of-babel.org'. Nice suggestion, thanks a lot. According to the documentation, I can "call" functions from the library of babel from anywhere, but when I try this: #+begin_src org #+name: test #+begin_src perl for (my $i = 0; $i != 10; ++i) { print "hello, world!\n"; } #+end_src #+call: echo(test) #+end_src I get a "org-babel-ref-resolve: Reference 'echo' not found in this buffer". Do I need to do something special to load the library? Alan