From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: Using #+NAME for single value, not table? Date: Mon, 30 Jun 2014 09:03:57 +0200 Message-ID: References: <87fviq9rsd.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1VdM-000492-I4 for emacs-orgmode@gnu.org; Mon, 30 Jun 2014 03:04:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X1VdG-000539-AK for emacs-orgmode@gnu.org; Mon, 30 Jun 2014 03:04:12 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:62155) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1VdG-000525-23 for emacs-orgmode@gnu.org; Mon, 30 Jun 2014 03:04:06 -0400 Received: by mail-wi0-f175.google.com with SMTP id r20so5467182wiv.14 for ; Mon, 30 Jun 2014 00:04:05 -0700 (PDT) Received: from Rainers-MacBook-Pro-3.local (arn78-1-88-186-171-7.fbx.proxad.net. [88.186.171.7]) by mx.google.com with ESMTPSA id m3sm39368766wjr.49.2014.06.30.00.04.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Jun 2014 00:04:03 -0700 (PDT) In-Reply-To: <87fviq9rsd.fsf@gmail.com> (Aaron Ecay's message of "Fri, 27 Jun 2014 13:38:26 -0400") 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: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Aaron Ecay writes: > Hi Rainer, > > 2014ko ekainak 26an, Rainer M Krug-ek idatzi zuen: >>=20 >> Hi >>=20 >> 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: >>=20 >> --8<---------------cut here---------------start------------->8--- >> *** Species names and iespece codes >> #+NAME: SPECIES >> | | fullName | shortName | iespece | IFNName | co= lor | >> |---------+-----------------+-----------+---------+-----------------+---= ----| >> | fagus | Fagus sylvatica | fagus | 4 | fagus_sylvatica | re= d | >> | quercus | Quercus robur | quercus | 3 | quercus_robur | gr= een | >>=20 >> *** Random Number Definition >> Defines random number generator kind, normal.kind and seed (see set.seed= help in R for details) >> #+NAME: RNGSEED=20 >> 13 >> --8<---------------cut here---------------end--------------->8--- >>=20 >> SPECIES works, but how do I get RNGSEED to be 13? > > You can use a verbatim block: > > ,---- > | #+name: xyz > | : hi > |=20 > | #+begin_src emacs-lisp :var abc=3Dxyz > | (concat "*" abc "*") > | #+end_src > |=20 > | #+RESULTS: > | : *hi* > `---- Perfect - this is exactly what I was looking for. Thanks, Rainer > > HTH, =2D-=20 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,= UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBAgAGBQJTsQvhAAoJENvXNx4PUvmC0YAH+wRObj66xqsaYykVrWWObHZE 7+8fZTGvoWd4/IGgTX+uJ8+3McgHvvo+Bfmw5DTlShg6RA19zBJtb/H6xKBmUlYd 07n7vrr8Emc7ft6Tb0DJCYRyMQDQi1KFTWVWY6DEbMw3iGsR03o6nfpNkvXUY1Ct h9sOlDlKAPDqoiM09391rOZlYfh5fSVysQEtnTEZpAzoF1200s2lhQT0D5Vm50Z1 lAD+kSe87iqE9cOLvGMCWYpc6HrLNvksla9IZUE1XQqo/+Ir9WxzpigadrhASRy3 Wsl5Q2L3ju1oZZ0K49ZKRTV0Tg4Gz1SgrTmfXyhSLygh0uDzK0T7lDH53j33aJY= =PqCZ -----END PGP SIGNATURE----- --=-=-=--