emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Austin Frank <austin.frank@gmail.com>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: include value of single table cell in text?
Date: Wed, 28 Jul 2010 14:38:18 -0400	[thread overview]
Message-ID: <m0pqy75u5h.fsf@malibu.rochester.rr.com> (raw)
In-Reply-To: <87lj8xc7dc.fsf@gmail.com> (Eric Schulte's message of "Tue, 27 Jul 2010 08:43:59 -0600")


[-- Attachment #1.1: Type: text/plain, Size: 1234 bytes --]

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=test-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

-- 
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc

[-- Attachment #1.2: Type: application/pgp-signature, Size: 194 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

      reply	other threads:[~2010-07-28 18:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-27  8:45 include value of single table cell in text? Austin Frank
2010-07-27 14:43 ` Eric Schulte
2010-07-28 18:38   ` Austin Frank [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m0pqy75u5h.fsf@malibu.rochester.rr.com \
    --to=austin.frank@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=schulte.eric@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).