From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Rettke Subject: Re: inline constant substitution Date: Sun, 12 Oct 2014 20:00:29 -0500 Message-ID: References: <871tqd1hao.fsf@rudin.co.uk> <8738atpbuk.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XdU0E-0002Q1-F2 for emacs-orgmode@gnu.org; Sun, 12 Oct 2014 21:00:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XdU09-0007ij-DH for emacs-orgmode@gnu.org; Sun, 12 Oct 2014 21:00:46 -0400 Received: from plane.gmane.org ([80.91.229.3]:42136) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XdU08-0007iZ-SO for emacs-orgmode@gnu.org; Sun, 12 Oct 2014 21:00:41 -0400 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XdU07-0005y0-RL for emacs-orgmode@gnu.org; Mon, 13 Oct 2014 03:00:39 +0200 In-Reply-To: <8738atpbuk.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: Paul Rudin , public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org Should a noweb-ref be expanded as imagined inside of a table for this case? Eg pseudo code: ,---- | #+NAME: foo | #+begin_src emacs-lisp | 42 | #+end_src | | | #+NAME: ns | | n | | |-------| | | 1 | | | 2 | | | <> | | | | `---- On Sun, Oct 12, 2014 at 10:05 AM, Nicolas Goaziou wrote: > > > Hello, > > Paul Rudin writes: > >> Suppose I have: >> >> #+CONSTANTS: foo=3D42 >> >> 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 > > --=20 Grant Rettke gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/ =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates ((=CE=BB (x) (x x)) (=CE=BB (x) (x x))) =E2=80=9CLife has become immeasurably better since I have been forced to st= op taking it seriously.=E2=80=9D --Thompson