From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gary Oberbrunner Subject: Evaluating simple inline expressions in org-mode Date: Wed, 3 Feb 2016 08:45:33 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e011770cf0bc669052addd5a7 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQxkZ-00035e-VQ for emacs-orgmode@gnu.org; Wed, 03 Feb 2016 08:45:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQxkV-0004vf-W7 for emacs-orgmode@gnu.org; Wed, 03 Feb 2016 08:45:39 -0500 Received: from mail-lb0-x234.google.com ([2a00:1450:4010:c04::234]:35713) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQxkV-0004v9-MZ for emacs-orgmode@gnu.org; Wed, 03 Feb 2016 08:45:35 -0500 Received: by mail-lb0-x234.google.com with SMTP id bc4so12276165lbc.2 for ; Wed, 03 Feb 2016 05:45:34 -0800 (PST) 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: Orgmode Mailing List --089e011770cf0bc669052addd5a7 Content-Type: text/plain; charset=UTF-8 I'd like to just have a few inline formulas evaluated in my org-mode document (I'm exporting to LaTeX if that matters). Something like this: ========================= # a constant: # pi = 3.14159 The value of interest is {{{2*$pi}}}. ========================= I want that to export as: The value of interest is 6.28318. 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.) Possible? -- Gary --089e011770cf0bc669052addd5a7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I'd like to just have a few inline formulas evaluated = in my org-mode document (I'm exporting to LaTeX if that matters). Somet= hing like this:

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
# a constant:
# pi= =3D 3.14159

The value of interest is {{{2*$pi}}}.=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D

I want that to export as:
<= br>
=C2=A0 The value of interest is 6.28318.

=
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 si= mpler, just inline math expression eval. (I'm fine with elisp, calc, wh= atever.)

Possible?

--
Gary
--089e011770cf0bc669052addd5a7--