From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Iverson Subject: [babel] showing image of latex code results produced from an R code block Date: Thu, 13 May 2010 17:10:48 -0500 Message-ID: <4BEC78E8.8010106@ccbr.umn.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=51950 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OCgcK-0001Bl-7M for emacs-orgmode@gnu.org; Thu, 13 May 2010 18:10:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OCgcI-0007Xf-Fa for emacs-orgmode@gnu.org; Thu, 13 May 2010 18:10:56 -0400 Received: from walleye.ccbr.umn.edu ([128.101.116.11]:4850) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OCgcI-0007XU-B5 for emacs-orgmode@gnu.org; Thu, 13 May 2010 18:10:54 -0400 Received: from tadpole.ccbr.umn.edu (tadpole.ccbr.umn.edu [128.101.116.26]) by walleye.ccbr.umn.edu (8.9.3p2/8.9.3) with ESMTP id RAA29715 for ; Thu, 13 May 2010 17:10:52 -0500 (CDT) Received: from iron.ccbr.umn.edu (iron.ccbr.umn.edu [128.101.116.194]) by tadpole.ccbr.umn.edu (8.9.3/8.9.3) with ESMTP id RAA09066 for ; Thu, 13 May 2010 17:10:49 -0500 (CDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode 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]]