From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: Beginner's question Date: Thu, 21 Jun 2012 10:53:37 +0200 Message-ID: <808vfh3v1q.fsf@somewhere.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org 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