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: H. Dieter Wilhelm
Subject: Re: [O] Evaluating simple inline expressions in org-mode
Date: Thu, 04 Feb 2016 08:01:32 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Eric S Fraga <address@hidden> 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




reply via email to

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