emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jay Kerns <gjkernsysu@gmail.com>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: inline Babel calls in math environments and table cells
Date: Mon, 11 Mar 2013 19:10:29 -0400	[thread overview]
Message-ID: <CAFiLVrak=ffFjSNNn6o-J6odzQpc_Nj78fuj5Op6Dh2yvu2M5g@mail.gmail.com> (raw)
In-Reply-To: <8738w1fx1o.fsf@gmail.com>

Hello there,

On Mon, Mar 11, 2013 at 5:26 PM, Eric Schulte <schulte.eric@gmail.com> wrote:

> Hi Jay,
>
> This sounds like a question about the new exporter which is beyond my
> ken.
>
> However, code blocks may be called from Org-mode tables, using the `sbe'
> [1] macro.
>
> Hope this helps,


Thank you.  Yes, it definitely helps; I hadn't heard about sbe - very
cool!  I played with your suggestion and here is a working example
(for the archives):

#+BEGIN_SRC R :session *R*
A <- matrix(sample(100, size = 6), nrow = 2)
#+END_SRC

#+RESULTS:
| 51 | 77 | 63 |
| 65 | 20 | 56 |

#+name: foo
#+BEGIN_SRC R :session *R*
A[m,n]
#+END_SRC

|   |    | 63 |
|   |    |    |
#+TBLFM: @1$3='(sbe foo (m "1") (n "3"))

Now I can frame my question better about the new exporter: what I am
asking about is whether it is planned to ever be possible to do
something like this (and get the same exported results):

#PROPERTY: :exports results
#PROPERTY: :results output

|   |    | SRC_R{A[1,3]} |
|   |    |                       |


-- 
Jay

  reply	other threads:[~2013-03-11 23:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-11 20:54 inline Babel calls in math environments and table cells Jay Kerns
2013-03-11 21:08 ` Jay Kerns
2013-03-11 21:26 ` Eric Schulte
2013-03-11 23:10   ` Jay Kerns [this message]
2013-03-12 15:35     ` Jay Kerns
2013-03-13  2:31       ` Charles Berry
2013-03-13  3:02         ` Jay Kerns

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='CAFiLVrak=ffFjSNNn6o-J6odzQpc_Nj78fuj5Op6Dh2yvu2M5g@mail.gmail.com' \
    --to=gjkernsysu@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).