emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] [babel] showing image of latex code results produced from an R


From: Erik Iverson
Subject: [Orgmode] [babel] showing image of latex code results produced from an R code block
Date: Thu, 13 May 2010 17:10:48 -0500
User-agent: Thunderbird 2.0.0.23 (X11/20090812)

Hello, consider the following org-mode file:

=================================================

* R returning LaTeX for display

I have an R function that generates LaTeX code. I would like the resulting LaTeX to be displayed in an inline image in the org-buffer


#+begin_src R
lf <- function() {
    "\\LaTeX"
  }

lf()
#+end_src

#+results:
: \LaTeX

I want the above results to actually be just like below, i.e., process the results as LaTeX and include an image of the results. I think org-babel can do this sort of thing, it's just escaping me how!

* If I just specify LaTeX as the input language, all works as I hope

#+begin_src latex :file latex-logo.png
  \LaTeX
#+end_src[$]

The LaTeX logo is displayed properly below on my screen with the latest inline image functions.

#+results:
[[file:latex-logo.png]]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]