emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] babel, header arguments.


From: Thomas S. Dye
Subject: Re: [O] babel, header arguments.
Date: Fri, 21 Nov 2014 09:49:55 -1000

Aloha,

address@hidden (jenia.ivlev) writes:

> Also, what if I want to import the actual function defintion into another src
> block:
>
>     #+begin_src scheme
>         (+ (my-plus 3 4) 1)
>     #+end_src
>     something here that import the previous function definitions
>
> Is that possible?

Yes, see section 14.10 Noweb reference syntax in the manual.

You'll have something that looks like this:

#+header: :noweb yes
#+begin_src scheme
  <<previous-function-definition>>
  (+ (previous-function 3 4) 1)
#+end_src

hth,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com



reply via email to

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