From mboxrd@z Thu Jan 1 00:00:00 1970 From: Austin Frank Subject: Re: include value of single table cell in text? Date: Wed, 28 Jul 2010 14:38:18 -0400 Message-ID: References: <87lj8xc7dc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1451372372==" Return-path: Received: from [140.186.70.92] (port=51985 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OeBWV-0002Dy-Pf for emacs-orgmode@gnu.org; Wed, 28 Jul 2010 14:38:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OeBWU-0002nl-5X for emacs-orgmode@gnu.org; Wed, 28 Jul 2010 14:38:35 -0400 Received: from mail-qy0-f169.google.com ([209.85.216.169]:39509) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OeBWU-0002nf-3O for emacs-orgmode@gnu.org; Wed, 28 Jul 2010 14:38:34 -0400 Received: by qyk9 with SMTP id 9so4059114qyk.0 for ; Wed, 28 Jul 2010 11:38:32 -0700 (PDT) In-Reply-To: <87lj8xc7dc.fsf@gmail.com> (Eric Schulte's message of "Tue, 27 Jul 2010 08:43:59 -0600") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: emacs-orgmode@gnu.org --===============1451372372== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable On Tue, Jul 27 2010, Eric Schulte wrote: > The following should work. It uses an inline code block > > #+TBLNAME: test-table > | key | value | > |-----+-------| > | a | 1 | > | b | 2 | > > Is there any way to refer to cell @2$2 within the text of an org-mode > document, and have that reference converted to the value > src_emacs-lisp[:var d=3Dtest-table[3,1]]{d} during export? Eric-- This is great! Thanks very much. If you're accepting feature requests, I'd still love to have a way to use org-table reference syntax to embed cell values inline. I don't know whether this is better thought of as a core or babel feature, though. Looking at the source of org-table-fix-formulas and org-table-eval-formula in org-table.el, there may be some room for refactoring the reference resolution procedure into a standalone function. I'm in the middle of wrapping up my thesis and moving, so I definitely won't look at this any time soon. If this itch still needs scratching in September I may revisit it then. If a talented soul addresses it before then, even better! Thanks again, /au =2D-=20 Austin Frank http://aufrank.net GPG Public Key (D7398C2F): http://aufrank.net/personal.asc --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (Darwin) iEYEARECAAYFAkxQeRoACgkQlHMl2/XbR4E1BwCeI7NJpr+jbBFD2XgsQjBowwUO 8K8AoIfAyXP4/vS6CECnAVcuGHpwPpg0 =iK7E -----END PGP SIGNATURE----- --=-=-=-- --===============1451372372== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1451372372==--