From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Ecay Subject: Re: Using #+NAME for single value, not table? Date: Fri, 27 Jun 2014 13:38:26 -0400 Message-ID: <87fviq9rsd.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44928) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0a6Y-000706-Sj for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 13:38:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X0a6Y-0002RI-59 for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 13:38:30 -0400 Received: from mail-qc0-x229.google.com ([2607:f8b0:400d:c01::229]:57069) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0a6Y-0002RE-0r for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 13:38:30 -0400 Received: by mail-qc0-f169.google.com with SMTP id c9so4835641qcz.14 for ; Fri, 27 Jun 2014 10:38:29 -0700 (PDT) In-Reply-To: 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: Rainer M Krug , emacs-orgmode@gnu.org Hi Rainer, 2014ko ekainak 26an, Rainer M Krug-ek idatzi zuen: > > Hi > > 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* `---- HTH, -- Aaron Ecay