emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] including the result of a block in several places?


From: Alan Schmitt
Subject: [O] including the result of a block in several places?
Date: Fri, 07 Dec 2012 17:16:29 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (darwin)

Hello,

I tried including the result of evaluation a block in several slides,
but the second time it was not included. Here is the code I ran:

#+begin_src org
** Prototype-based objects

#+name: object_example
#+begin_src js :results code output :exports both
var f = function(a) {
        this.x = a
}

f.prototype = {y : 1}

var o = new f (42)

console.log("o.x = " + o.x + ", o.y = " + o.y)
#+end_src

Results

#+results: object_example

** Prototype-based objects

#+begin_src js
var f = function(a) {
        this.x = a
}

f.prototype = {y : 1}

var o = new f (42)

console.log("o.x = " + o.x + ", o.y = " + o.y)
#+end_src

Results

#+results: object_example

(Some additional images added)
#+end_src

I cannot do a "\pause" because a slide will be inserted in the middle.

Is it possible to have the results of the evaluation of a block in
several places?

Thanks,

Alan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]