From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: [babel] inline call within table formula? Date: Fri, 08 Jul 2011 16:19:07 +0100 Message-ID: <87wrfs6bro.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:46296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfCpr-0001HZ-G3 for emacs-orgmode@gnu.org; Fri, 08 Jul 2011 11:19:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QfCpp-0003mk-JN for emacs-orgmode@gnu.org; Fri, 08 Jul 2011 11:19:19 -0400 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:40400) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfCpp-0003mL-7z for emacs-orgmode@gnu.org; Fri, 08 Jul 2011 11:19:17 -0400 Received: from [85.210.135.34] (helo=localhost) by vscane-b.ucl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1QfCpf-0001gw-E7 for emacs-orgmode@gnu.org; Fri, 08 Jul 2011 16:19:07 +0100 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@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, Quick question: I'd like to use a babel inline call to calculate something in a table based on other values in the table. Is this possible? Probably using elisp directly? If so, I cannot figure out what the magic incantation should be! I hope somebody can help. For illustration, I'd like to do something like this: --8<---------------cut here---------------start------------->8--- #+source: f #+begin_src octave :var x=[1 3 5] sin(x) #+end_src | x1 | x2 | x3 | f | |----+----+----+--------------------------| | 1 | 3 | 5 | Apply call_f($1..$3) here | --8<---------------cut here---------------end--------------->8--- Thanks, eric -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.6 (release_7.6.4.gf305a)