From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: inline constant substitution Date: Sun, 12 Oct 2014 17:05:39 +0200 Message-ID: <8738atpbuk.fsf@nicolasgoaziou.fr> References: <871tqd1hao.fsf@rudin.co.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XdKiE-0007n2-6z for emacs-orgmode@gnu.org; Sun, 12 Oct 2014 11:05:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XdKi6-0002Dk-Gm for emacs-orgmode@gnu.org; Sun, 12 Oct 2014 11:05:34 -0400 Received: from plane.gmane.org ([80.91.229.3]:42422) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XdKi6-0002DG-9c for emacs-orgmode@gnu.org; Sun, 12 Oct 2014 11:05:26 -0400 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XdKi3-0007Dt-6u for emacs-orgmode@gnu.org; Sun, 12 Oct 2014 17:05:23 +0200 In-Reply-To: <871tqd1hao.fsf@rudin.co.uk> (Paul Rudin's message of "Sun, 12 Oct 2014 15:41:51 +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: Paul Rudin Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org Hello, Paul Rudin writes: > Suppose I have: > > #+CONSTANTS: foo=42 > > How can I make inline references to a constant on export in regular > text, rather than in a table? > > I want to be able to write something like: > > The value of foo is $foo > > in my org file, and then end up with: > > The value of foo is 42 > > when I export to LaTeX. Constants are for tables only. You can use a macro instead: #+MACRO: foo 42 The value of foo is {{{foo}}}. Regards, -- Nicolas Goaziou