From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jay Kerns Subject: Re: inline Babel calls in math environments and table cells Date: Mon, 11 Mar 2013 19:10:29 -0400 Message-ID: References: <8738w1fx1o.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFBro-0005sD-OK for emacs-orgmode@gnu.org; Mon, 11 Mar 2013 19:10:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UFBrm-00018R-6Z for emacs-orgmode@gnu.org; Mon, 11 Mar 2013 19:10:52 -0400 Received: from mail-qe0-f44.google.com ([209.85.128.44]:38323) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFBrm-00018N-2i for emacs-orgmode@gnu.org; Mon, 11 Mar 2013 19:10:50 -0400 Received: by mail-qe0-f44.google.com with SMTP id x7so2649808qeu.31 for ; Mon, 11 Mar 2013 16:10:49 -0700 (PDT) In-Reply-To: <8738w1fx1o.fsf@gmail.com> 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: Eric Schulte Cc: Org Mode List Hello there, On Mon, Mar 11, 2013 at 5:26 PM, Eric Schulte 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