emacs-orgmode
[Top][All Lists]
Advanced

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

[O] Example not quite right


From: George Jones
Subject: [O] Example not quite right
Date: Fri, 4 Jan 2013 09:43:23 -0500

FYI, 

From http://orgmode.org/worg/org-contrib/babel/intro.html

#+name: square(x)                                                                                              
#+begin_src python                                                                                             
return x*x                                                                                                     
#+end_src                                                                                                      
Now we use the source block:                                                                                   
                                                                                                               
#+call: square(x=6) 

yields

Reference 'square' not found in this buffer .  

It works fine if the parameter name is removed from the #name block:                                                                  

#+name: square                                                                                                 
#+begin_src python                                                                                             
return x*x                                                                                                     
#+end_src                                                                                                      
Now we use the source block:                                                                                   
                                                                                                               
#+call: square(x=6)

#+RESULTS: square(x=6)                                                                                         
: 36                                                                                                           
         
---George Jones

reply via email to

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