From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastien Vauban Subject: Re: Using #+NAME for single value, not table? Date: Fri, 25 Jul 2014 16:48:00 +0200 Message-ID: <864my57avz.fsf@somewhere.org> References: <87fviq9rsd.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Rainer M Krug wrote: > Aaron Ecay writes: >> 2014ko ekainak 26an, Rainer M Krug-ek idatzi zuen: >>> >>> I use #+NAME to define some parameters for my analysis, which works >>> quite nice for tables. but I would now like to use the same apprioach >>> for values, e.g. a single number, but I don't manage. Is this possible? >>> For illustration a short example: >>> >>> --8<---------------cut here---------------start------------->8--- >>> *** Species names and iespece codes >>> #+NAME: SPECIES >>> | | fullName | shortName | iespece | IFNName | color | >>> |---------+-----------------+-----------+---------+-----------------+-------| >>> | fagus | Fagus sylvatica | fagus | 4 | fagus_sylvatica | red | >>> | quercus | Quercus robur | quercus | 3 | quercus_robur | green | >>> >>> *** Random Number Definition >>> Defines random number generator kind, normal.kind and seed (see set.seed help in R for details) >>> #+NAME: RNGSEED >>> 13 >>> --8<---------------cut here---------------end--------------->8--- >>> >>> SPECIES works, but how do I get RNGSEED to be 13? >> >> You can use a verbatim block: >> >> ,---- >> | #+name: xyz >> | : hi >> | >> | #+begin_src emacs-lisp :var abc=xyz >> | (concat "*" abc "*") >> | #+end_src >> | >> | #+RESULTS: >> | : *hi* >> `---- > > Perfect - this is exactly what I was looking for. If I'm not mistaken, I see two solutions for you: #+name: RNGSEED : 13 or #+PROPERTY: var RNGSEED=13 Best regards, Seb -- Sebastien Vauban