From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: [babel] bug[?] when calling src_R from table? Date: Sat, 10 Nov 2012 17:35:44 +0100 Message-ID: <87k3ttquu7.fsf@pank.iue.private> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48493) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXE2S-0003On-AH for emacs-orgmode@gnu.org; Sat, 10 Nov 2012 11:36:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TXE2P-0005sz-8F for emacs-orgmode@gnu.org; Sat, 10 Nov 2012 11:36:08 -0500 Received: from plane.gmane.org ([80.91.229.3]:52832) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXE2P-0005sk-1D for emacs-orgmode@gnu.org; Sat, 10 Nov 2012 11:36:05 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TXE2R-0001gK-BQ for emacs-orgmode@gnu.org; Sat, 10 Nov 2012 17:36:07 +0100 Received: from 192.167.90.140 ([192.167.90.140]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 10 Nov 2012 17:36:07 +0100 Received: from rasmus by 192.167.90.140 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 10 Nov 2012 17:36:07 +0100 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 Hi, I wanted to combine a table of text and a generated result (in org to LaTaX using the new exporter). It would seem src_R snips would be perfect for this. However, it does not seem to work. I.e. src_R is translated correctly in the text, but not in the table. Is this a feature or a bug? Example below. Thanks, Rasmus Org-mode version 7.9.2 (release_7.9.2-556-g7cdfa6.dirty @ /usr/share/emacs/site-lisp/org/) #+BEGIN_SRC org #+PROPERTY: session *R* #+BEGIN_SRC R :exports none att <- c(1+1, 3) #+END_SRC it's length is src_R[:results raw]{length(att)}. | src_R[:results raw]{length(ate)} | #+END_SRC #+BEGIN_SRC latex it's length is 2. \begin{center} \begin{tabular}{l} \toprule src$_\mathrm{R[}$:results raw]\{length(ate)\}\\ \bottomrule \end{tabular} \end{center} #+END_SRC -- Hooray!