From mboxrd@z Thu Jan 1 00:00:00 1970 From: dieter@duenenhof-wilhelm.de (H. Dieter Wilhelm) Subject: Re: Evaluating simple inline expressions in org-mode Date: Thu, 04 Feb 2016 08:01:32 +0100 Message-ID: <87wpqlyn5f.fsf@duenenhof-wilhelm.de> References: <87twlpwzbw.fsf@delle7240.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRE2A-0002uq-W9 for emacs-orgmode@gnu.org; Thu, 04 Feb 2016 02:08:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aRE27-0002hn-Qj for emacs-orgmode@gnu.org; Thu, 04 Feb 2016 02:08:54 -0500 Received: from plane.gmane.org ([80.91.229.3]:60159) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRE27-0002hi-Jo for emacs-orgmode@gnu.org; Thu, 04 Feb 2016 02:08:51 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aRE26-0000jN-6K for emacs-orgmode@gnu.org; Thu, 04 Feb 2016 08:08:50 +0100 Received: from p57ace535.dip0.t-ipconnect.de ([87.172.229.53]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Feb 2016 08:08:50 +0100 Received: from dieter by p57ace535.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Feb 2016 08:08:50 +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 Eric S Fraga writes: > On Wednesday, 3 Feb 2016 at 08:45, Gary Oberbrunner wrote: > > [...] > >> Of course I made up that {{{}}} syntax, that's not a real thing. I've seen >> org-mode tables with calc, but I'm hoping for something simpler, just >> inline math expression eval. (I'm fine with elisp, calc, whatever.) > > As Ken has shown¸ you can use babel for inline evaluation. Note that > Emacs calc is one of the languages supported by babel so src_calc(2*pi) It must be src_calc{2*pi} though. > works as well. I'm not sure how you define variables in calc however... You could write something like src_calc[:var x=3.41]{2*x} :-) Dieter -- Best wishes H. Dieter Wilhelm Darmstadt, Germany