emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Evaluating simple inline expressions in org-mode


From: Gary Oberbrunner
Subject: Re: [O] Evaluating simple inline expressions in org-mode
Date: Wed, 3 Feb 2016 11:14:44 -0500

Thanks Ken, that works great! With session as a file property (#+PROPERTY: header-args:python :session foo) the inline expressions aren't even _all_ that verbose. And I can use arbitrary python, not just math. Very nice!

On Wed, Feb 3, 2016 at 11:09 AM, Eric S Fraga <address@hidden> wrote:
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)
works as well.  I'm not sure how you define variables in calc however...
--
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.90.1, Org release_8.3.3-535-g7213aa



--
Gary

reply via email to

[Prev in Thread] Current Thread [Next in Thread]