Browse Source

Merge branch 'master' of orgmode.org:worg

David Arroyo Menendez 7 years ago
parent
commit
adc09e4c0e
1 changed files with 5 additions and 2 deletions
  1. 5 2
      org-contrib/babel/intro.org

+ 5 - 2
org-contrib/babel/intro.org

@@ -464,13 +464,15 @@ value, =(2 + 2)=, 4 does not appear in the results.
      First let's look at a very simple example. The following source
      code block defines a function, using python, that squares its argument.
 
-#+name: square(x=0)
+#+name: square
+#+header: :var x=0
 #+begin_src python
 return x*x
 #+end_src
 
 In the Org-mode file, the function looks like this:
-: #+name: square(x)
+: #+name: square
+: #+header: :var x=0
 : #+begin_src python
 : return x*x
 : #+end_src
@@ -486,6 +488,7 @@ Now we use the source block:
 #+results: square(x=6)
 : 36
 
+
 *** A more complex example using an Org-mode table as input
 
      In this example we define a function called =fibonacci-seq=, using