[Top][All Lists]

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

Re: [O] org-babel-R: export R graphics to LaTeX

From: Nick Dokos
Subject: Re: [O] org-babel-R: export R graphics to LaTeX
Date: Tue, 07 Feb 2012 12:39:04 -0500

Gary Oberbrunner <address@hidden> wrote:

> I have the following org-mode test file:
> ===========
> #+TITLE:    tester.org
> #+PROPERTY: session *R*
> #+PROPERTY: results output
> #+LaTeX_HEADER: \usepackage{hyperref}
> * Headline here
> Here is some text.
> #+begin_src R :exports both :results graphics :file img.jpg
> hist(rnorm(100))
> #+end_src
> =============
> and exporting it to LaTeX with C-C C-e d gives a PDF with only a link
> to the graphics file, not inlined as a figure.  How do I include the
> actual R graph?

I cannot reproduce this: the image is produced properly and the
.tex file contains the proper \includegraphics invocation. What version
of org are you using?  What does the .tex file look like? There might be
some option setting that causes this but I'm not sure. I append the
.tex file I get for comparison. 


Org-mode version 7.8.03 (release_7.8.03.292.gec677)

--8<---------------cut here---------------start------------->8---
% Created 2012-02-07 Tue 12:33

\author{Nick Dokos}
  pdfcreator={Emacs Org-mode version 7.8.03}}




\section{Headline here}

Here is some text.



--8<---------------cut here---------------end--------------->8---

reply via email to

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