Neuwirth Erich <erich.neuwi...@univie.ac.at> wrote: > Is it possible to assign the results of a babel code block to a > variable? Then the results produce by one language could be > transferred as input to a code block in another language. I studied > the documentation and could not find any hint about this. >
Here's a very simple example: --8<---------------cut here---------------start------------->8--- * chaining calculations #+name: foo #+BEGIN_SRC elisp (+ 3 4) #+END_SRC #+RESULTS: foo : 7 #+BEGIN_SRC elisp :var x=foo (* x x) #+END_SRC #+RESULTS: : 49 --8<---------------cut here---------------end--------------->8--- Nick