[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] babel, header arguments.
From: |
jenia.ivlev |
Subject: |
[O] babel, header arguments. |
Date: |
Tue, 18 Nov 2014 13:44:22 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Hello. I want to go through the book little schemer and take notes
interlaced with the code from the book. For this I want to use babel.
So lets say there's this function:
#+name: my-plus
#+begin_src scheme
(define my-plus
(lambda (x y) (+ x y)))
#+end_src
And i want to call it from another source block, like so:
#+tblname: addition
| sum |
|--------|
| #ERROR |
#+TBLFM: @2$1='(org-sbe "my-plus" (33 22))
As you can see, I get an error. How do I write these "header-arguments"
(i think they are called) to achieve calling one src-block from another.
Also, second scenario, can I somehow call my-plus from a source-block as
so:
#+begin_src scheme
(my-plus 3 4)
#+end_src
Thanks very much for your help and kind concern.
- [O] babel, header arguments.,
jenia.ivlev <=
- Re: [O] babel, header arguments., Sebastien Vauban, 2014/11/20
- Re: [O] babel, header arguments., jenia.ivlev, 2014/11/21
- Re: [O] babel, header arguments., Thomas S. Dye, 2014/11/21
- Re: [O] babel, header arguments., jenia.ivlev, 2014/11/21
- Re: [O] babel, header arguments., jenia.ivlev, 2014/11/21
- Re: [O] babel, header arguments., Thomas S. Dye, 2014/11/21
- Re: [O] babel, header arguments., jenia.ivlev, 2014/11/21