emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: [babel] bug[?] when calling src_R from table?
Date: Sat, 10 Nov 2012 17:35:44 +0100	[thread overview]
Message-ID: <87k3ttquu7.fsf@pank.iue.private> (raw)

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!

             reply	other threads:[~2012-11-10 16:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-10 16:35 Rasmus [this message]
2012-11-10 16:38 ` [babel] bug[?] when calling src_R from table? Nicolas Goaziou

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=87k3ttquu7.fsf@pank.iue.private \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.org \
    /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).