From mboxrd@z Thu Jan 1 00:00:00 1970 From: wlharvey4 via Emacs-orgmode Subject: Inject value of macro into code using a variable Date: Tue, 15 Oct 2019 09:37:18 -0700 Message-ID: Reply-To: wlharvey4@mac.com Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:42879) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iKPp8-0002SB-Hc for emacs-orgmode@gnu.org; Tue, 15 Oct 2019 12:37:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iKPp7-0001SE-JB for emacs-orgmode@gnu.org; Tue, 15 Oct 2019 12:37:26 -0400 Received: from pv50p00im-zteg10011501.me.com ([17.58.6.42]:45452) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iKPp7-0001Qu-D0 for emacs-orgmode@gnu.org; Tue, 15 Oct 2019 12:37:25 -0400 Received: from [192.168.0.7] (c-73-157-240-124.hsd1.wa.comcast.net [73.157.240.124]) by pv50p00im-zteg10011501.me.com (Postfix) with ESMTPSA id 42989B004D3 for ; Tue, 15 Oct 2019 16:37:19 +0000 (UTC) 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" To: emacs-orgmode@gnu.org Is it possible to inject the value of a macro into code using a = variable? I set a macro called =E2=80=98version=E2=80=99 with a version number at = the top of my .org file. I would like to do something like this: #+macro:version Version 0.2.5 #+name:code-name #+begin_src js :tangle some-file.js :var ver=3D{{{version}}} :exports = both :results output const version =3D ver; #+end_src When this code is evaluated during export, there is an error: org-babel-ref-resolve: Reference =E2=80=98{{{version}}}=E2=80=99 not = found in this buffer Regards, Wesley