emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* babel, header arguments.
@ 2014-11-18 18:44 jenia.ivlev
  2014-11-20  9:36 ` Sebastien Vauban
  0 siblings, 1 reply; 8+ messages in thread
From: jenia.ivlev @ 2014-11-18 18:44 UTC (permalink / raw)
  To: emacs-orgmode

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.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-11-21 20:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-18 18:44 babel, header arguments jenia.ivlev
2014-11-20  9:36 ` Sebastien Vauban
2014-11-21 19:35   ` jenia.ivlev
2014-11-21 19:49     ` Thomas S. Dye
2014-11-21 20:09       ` jenia.ivlev
2014-11-21 20:32         ` jenia.ivlev
2014-11-21 20:36         ` Thomas S. Dye
2014-11-21 20:55           ` jenia.ivlev

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).