From: Erik Iverson <eriki@ccbr.umn.edu>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: [babel] showing image of latex code results produced from an R code block
Date: Thu, 13 May 2010 17:10:48 -0500 [thread overview]
Message-ID: <4BEC78E8.8010106@ccbr.umn.edu> (raw)
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]]
next reply other threads:[~2010-05-13 22:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-13 22:10 Erik Iverson [this message]
2010-05-14 19:23 ` [babel] showing image of latex code results produced from an R code block Erik Iverson
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=4BEC78E8.8010106@ccbr.umn.edu \
--to=eriki@ccbr.umn.edu \
--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).