[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Beginner's question
From: |
Sebastien Vauban |
Subject: |
Re: [O] Beginner's question |
Date: |
Thu, 21 Jun 2012 10:53:37 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1 (windows-nt) |
Hi Erich,
Neuwirth Erich wrote:
> Can anybody explain why my example does not work?
>
> #+TBLNAME: example-table
> |1|
> |2|
> |3|
> |4|
> #+NAME: table-length
> #+BEGIN_SRC emacs-lisp :var table=example-table
> (length table)
> #+END_SRC
>
> #+RESULTS: table-length
> : 4
> #+name: xvar
> 123
> #+name: myblock
> #+begin_src emacs-lisp :var xxx=xvar
> (* xxx xxx)
> #+end_src
>
> I need to pass string constants and numeric values o code segments this way.
Put a `:' in front of your value. That way, Babel can locate and read the
value.
#+name: xvar
: 123
#+name: myblock
#+begin_src emacs-lisp :var xxx=xvar
(* xxx xxx)
#+end_src
#+results: myblock
: 15129
Best regards,
Seb
--
Sebastien Vauban